Commit 61e60481 by Paolo Carlini Committed by Paolo Carlini

hash_bytes.cc: Compile load_bytes and shift_mix only when __SIZEOF_SIZE_T__ == 8.

2010-09-19  Paolo Carlini  <paolo.carlini@oracle.com>

	* src/hash_bytes.cc: Compile load_bytes and shift_mix only when
	__SIZEOF_SIZE_T__ == 8.

From-SVN: r164410
parent 1f774594
2010-09-19 Paolo Carlini <paolo.carlini@oracle.com>
* src/hash_bytes.cc: Compile load_bytes and shift_mix only when
__SIZEOF_SIZE_T__ == 8.
2010-09-17 Luc Hermitte <hermitte@free.fr> 2010-09-17 Luc Hermitte <hermitte@free.fr>
Paolo Carlini <paolo.carlini@oracle.com> Paolo Carlini <paolo.carlini@oracle.com>
......
...@@ -45,6 +45,7 @@ namespace ...@@ -45,6 +45,7 @@ namespace
return result; return result;
} }
#if __SIZEOF_SIZE_T__ == 8
// Loads n bytes, where 1 <= n < 8. // Loads n bytes, where 1 <= n < 8.
inline std::size_t inline std::size_t
load_bytes(const char* p, int n) load_bytes(const char* p, int n)
...@@ -60,6 +61,7 @@ namespace ...@@ -60,6 +61,7 @@ namespace
inline std::size_t inline std::size_t
shift_mix(std::size_t v) shift_mix(std::size_t v)
{ return v ^ (v >> 47);} { return v ^ (v >> 47);}
#endif
} }
namespace std namespace std
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment