Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-07-21 08:54:43


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

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

Modified: branches/release/libs/math/src/tr1/copysign.cpp
==============================================================================
--- branches/release/libs/math/src/tr1/copysign.cpp (original)
+++ branches/release/libs/math/src/tr1/copysign.cpp 2008-07-21 08:54:43 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: branches/release/libs/math/src/tr1/copysignf.cpp
==============================================================================
--- branches/release/libs/math/src/tr1/copysignf.cpp (original)
+++ branches/release/libs/math/src/tr1/copysignf.cpp 2008-07-21 08:54:43 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: branches/release/libs/math/src/tr1/fmaxf.cpp
==============================================================================
--- branches/release/libs/math/src/tr1/fmaxf.cpp (original)
+++ branches/release/libs/math/src/tr1/fmaxf.cpp 2008-07-21 08:54:43 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: branches/release/libs/math/src/tr1/fminf.cpp
==============================================================================
--- branches/release/libs/math/src/tr1/fminf.cpp (original)
+++ branches/release/libs/math/src/tr1/fminf.cpp 2008-07-21 08:54:43 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