]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
hash_bytes.cc: Compile load_bytes and shift_mix only when __SIZEOF_SIZE_T__ == 8.
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 19 Sep 2010 08:52:50 +0000 (08:52 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 19 Sep 2010 08:52:50 +0000 (08:52 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/src/hash_bytes.cc

index f74e54f02ed2d72650a5db47f5e5f4b87e1ebd29..d50afd3c0c82367fdd8bccf51a68d848dba8303b 100644 (file)
@@ -1,3 +1,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.
+
 2010-09-17  Luc Hermitte  <hermitte@free.fr>
            Paolo Carlini  <paolo.carlini@oracle.com>
 
index 5dfa1eec1d66e45d93ae665d27eee2d2f7206daf..d14ad41a9fd96c2ee55f1cd0f282b2c6753305ee 100644 (file)
@@ -45,6 +45,7 @@ namespace
     return result;
   }
 
+#if __SIZEOF_SIZE_T__ == 8
   // Loads n bytes, where 1 <= n < 8.
   inline std::size_t
   load_bytes(const char* p, int n)
@@ -60,6 +61,7 @@ namespace
   inline std::size_t
   shift_mix(std::size_t v)
   { return v ^ (v >> 47);}
+#endif
 }
 
 namespace std