diff options
author | Johanna Aijala <johanna.aijala@digia.com> | 2013-02-21 09:34:08 +0200 |
---|---|---|
committer | Johanna Aijala <johanna.aijala@digia.com> | 2013-02-21 09:34:53 +0200 |
commit | e6c484102e2e447f9171d9eb6799a0470910fd99 (patch) | |
tree | 7fbeb840709b78863b4ed3b4f0a66f479984caa0 /Source/JavaScriptCore/runtime/MathObject.cpp | |
parent | 30400131a4c18e9a0e0895d517c620b599aaddee (diff) | |
parent | 08322b49d440e36a8c1a8b2f250a641ea1886ae3 (diff) | |
download | qtwebkit-e6c484102e2e447f9171d9eb6799a0470910fd99.tar.gz |
Merge branch 'stable' into release
Change-Id: I5f9488665e344d270d876075e4a78d472e12a66f
Diffstat (limited to 'Source/JavaScriptCore/runtime/MathObject.cpp')
-rw-r--r-- | Source/JavaScriptCore/runtime/MathObject.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Source/JavaScriptCore/runtime/MathObject.cpp b/Source/JavaScriptCore/runtime/MathObject.cpp index f939b8dd4..7634487ad 100644 --- a/Source/JavaScriptCore/runtime/MathObject.cpp +++ b/Source/JavaScriptCore/runtime/MathObject.cpp @@ -232,22 +232,6 @@ static ALWAYS_INLINE double mathPow(double x, double y) ALWAYS_INLINE double mathPow(double x, double y) { -#if COMPILER(MINGW64) - // MinGW-w64 has a custom implementation for pow. - // This handles certain special cases that are different. - if ((x == 0.0 || isinf(x)) && isfinite(y)) { - double f; - if (modf(y, &f) != 0.0) - return ((x == 0.0) ^ (y > 0.0)) ? std::numeric_limits<double>::infinity() : 0.0; - } - - if (x == 2.0) { - int yInt = static_cast<int>(y); - if (y == yInt) - return ldexp(1.0, yInt); - } -#endif - return pow(x, y); } |