2011-03-24 Ben Taylor <bentaylor.solx86@gmail.com>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=20302
        Correct implementation of signbit on Solaris

        * wtf/MathExtras.h:
        (signbit):

git-svn-id: svn://svn.chromium.org/blink/trunk@81882 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 8ad5a664
2011-03-24 Ben Taylor <bentaylor.solx86@gmail.com>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=20302
Correct implementation of signbit on Solaris
* wtf/MathExtras.h:
(signbit):
2011-03-23 Mark Rowe <mrowe@apple.com> 2011-03-23 Mark Rowe <mrowe@apple.com>
Reviewed by Darin Adler. Reviewed by Darin Adler.
......
...@@ -90,7 +90,7 @@ inline bool isfinite(double x) { return finite(x) && !isnand(x); } ...@@ -90,7 +90,7 @@ inline bool isfinite(double x) { return finite(x) && !isnand(x); }
inline bool isinf(double x) { return !finite(x) && !isnand(x); } inline bool isinf(double x) { return !finite(x) && !isnand(x); }
#endif #endif
#ifndef signbit #ifndef signbit
inline bool signbit(double x) { return x < 0.0; } // FIXME: Wrong for negative 0. inline bool signbit(double x) { return copysign(1.0, x) < 0; }
#endif #endif
#endif #endif
......
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