Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-07-21 08:40:03


Author: johnmaddock
Date: 2008-07-21 08:40:03 EDT (Mon, 21 Jul 2008)
New Revision: 47656
URL: http://svn.boost.org/trac/boost/changeset/47656

Log:
Disable definitions of function bodies for functions that are already compiler intrinsics.
Text files modified:
   trunk/libs/math/src/tr1/copysign.cpp | 4 ++++
   trunk/libs/math/src/tr1/copysignf.cpp | 4 ++++
   trunk/libs/math/src/tr1/fmaxf.cpp | 4 ++++
   trunk/libs/math/src/tr1/fminf.cpp | 4 ++++
   4 files changed, 16 insertions(+), 0 deletions(-)

Modified: trunk/libs/math/src/tr1/copysign.cpp
==============================================================================
--- trunk/libs/math/src/tr1/copysign.cpp (original)
+++ trunk/libs/math/src/tr1/copysign.cpp 2008-07-21 08:40:03 EDT (Mon, 21 Jul 2008)
@@ -8,7 +8,11 @@
 #include <boost/math/special_functions/sign.hpp>
 #include "c_policy.hpp"
 
+#if !(defined(__HP_aCC) && (__HP_aCC >= 61400))
+
 extern "C" double BOOST_MATH_TR1_DECL copysign(double x, double y)
 {
    return boost::math::copysign(x, y);
 }
+
+#endif

Modified: trunk/libs/math/src/tr1/copysignf.cpp
==============================================================================
--- trunk/libs/math/src/tr1/copysignf.cpp (original)
+++ trunk/libs/math/src/tr1/copysignf.cpp 2008-07-21 08:40:03 EDT (Mon, 21 Jul 2008)
@@ -8,7 +8,11 @@
 #include <boost/math/special_functions/sign.hpp>
 #include "c_policy.hpp"
 
+#if !(defined(__HP_aCC) && (__HP_aCC >= 61400))
+
 extern "C" float BOOST_MATH_TR1_DECL copysignf(float x, float y)
 {
    return boost::math::copysign(x, y);
 }
+
+#endif

Modified: trunk/libs/math/src/tr1/fmaxf.cpp
==============================================================================
--- trunk/libs/math/src/tr1/fmaxf.cpp (original)
+++ trunk/libs/math/src/tr1/fmaxf.cpp 2008-07-21 08:40:03 EDT (Mon, 21 Jul 2008)
@@ -8,6 +8,8 @@
 #include <boost/math/special_functions/fpclassify.hpp>
 #include "c_policy.hpp"
 
+#if !(defined(__HP_aCC) && (__HP_aCC >= 61400))
+
 extern "C" float BOOST_MATH_TR1_DECL fmaxf(float x, float y)
 {
    if((boost::math::isnan)(x))
@@ -16,3 +18,5 @@
       return x;
    return (std::max)(x, y);
 }
+
+#endif

Modified: trunk/libs/math/src/tr1/fminf.cpp
==============================================================================
--- trunk/libs/math/src/tr1/fminf.cpp (original)
+++ trunk/libs/math/src/tr1/fminf.cpp 2008-07-21 08:40:03 EDT (Mon, 21 Jul 2008)
@@ -8,6 +8,8 @@
 #include <boost/math/special_functions/fpclassify.hpp>
 #include "c_policy.hpp"
 
+#if !(defined(__HP_aCC) && (__HP_aCC >= 61400))
+
 extern "C" float BOOST_MATH_TR1_DECL fminf(float x, float y)
 {
    if((boost::math::isnan)(x))
@@ -16,3 +18,5 @@
       return x;
    return (std::min)(x, y);
 }
+
+#endif


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