Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2007-10-03 19:38:30


Author: danieljames
Date: 2007-10-03 19:38:29 EDT (Wed, 03 Oct 2007)
New Revision: 39679
URL: http://svn.boost.org/trac/boost/changeset/39679

Log:
For now, just use the binary hash function for floats on cygwin.
Text files modified:
   branches/hash/boost/functional/detail/hash_float.hpp | 8 ++++++--
   1 files changed, 6 insertions(+), 2 deletions(-)

Modified: branches/hash/boost/functional/detail/hash_float.hpp
==============================================================================
--- branches/hash/boost/functional/detail/hash_float.hpp (original)
+++ branches/hash/boost/functional/detail/hash_float.hpp 2007-10-03 19:38:29 EDT (Wed, 03 Oct 2007)
@@ -20,8 +20,11 @@
 #include <boost/limits.hpp>
 #include <boost/assert.hpp>
 
-#if (defined(__i386__) || defined(_M_IX86)) && !defined(BOOST_HASH_CROSS_PLATFORM)
-# define BOOST_HASH_USE_X86
+// Cygwin
+#if defined(__CYGWIN__)
+# if defined(__i386__) || defined(_M_IX86)
+# define BOOST_HASH_USE_X86
+# endif
 
 // STLport
 #elif defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
@@ -39,6 +42,7 @@
 # if defined(BOOST_MSVC)
 # define BOOST_HASH_USE_FPCLASS
 # endif
+
 #endif
 
 // On OpenBSD, numeric_limits is not reliable for long doubles, but


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk