Ignore:
Timestamp:
Jul 3, 2011, 8:54:36 PM (14 years ago)
Author:
[email protected]
Message:

2011-07-03 Sheriff Bot <[email protected]>

Unreviewed, rolling out r90347.
http://trac.webkit.org/changeset/90347
https://bugs.webkit.org/show_bug.cgi?id=63886

Build breaks on Leopard, Chromium-win, WinCairo, and WinCE.
(Requested by tkent on #webkit).

  • fast/js/number-toString-expected.txt:

2011-07-03 Sheriff Bot <[email protected]>

Unreviewed, rolling out r90347.
http://trac.webkit.org/changeset/90347
https://bugs.webkit.org/show_bug.cgi?id=63886

Build breaks on Leopard, Chromium-win, WinCairo, and WinCE.
(Requested by tkent on #webkit).

  • JavaScriptCore.xcodeproj/project.pbxproj:
  • runtime/BigInteger.h: Removed.
  • runtime/NumberPrototype.cpp: (JSC::numberProtoFuncToPrecision): (JSC::numberProtoFuncToString):
  • runtime/Uint16WithFraction.h: Removed.
  • wtf/MathExtras.h:

2011-07-03 Sheriff Bot <[email protected]>

Unreviewed, rolling out r90347.
http://trac.webkit.org/changeset/90347
https://bugs.webkit.org/show_bug.cgi?id=63886

Build breaks on Leopard, Chromium-win, WinCairo, and WinCE.
(Requested by tkent on #webkit).

  • DumpRenderTree/ForwardingHeaders/wtf/StdLibExtras.h: Removed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/MathExtras.h

    r90347 r90349  
    3232#include <limits>
    3333#include <stdlib.h>
    34 #include <wtf/StdLibExtras.h>
    3534
    3635#if OS(SOLARIS)
     
    261260#endif
    262261
    263 // decompose 'number' to its sign, exponent, and mantissa components.
    264 // The result is interpreted as:
    265 //     (sign ? -1 : 1) * pow(2, exponent) * (mantissa / (1 << 52))
    266 inline void decomposeDouble(double number, bool& sign, int32_t& exponent, uint64_t& mantissa)
    267 {
    268     ASSERT(isfinite(number));
    269 
    270     sign = signbit(number);
    271 
    272     uint64_t bits = WTF::bitwise_cast<uint64_t>(number);
    273     exponent = (static_cast<int32_t>(bits >> 52) & 0x7ff) - 0x3ff;
    274     mantissa = bits & 0xFFFFFFFFFFFFFull;
    275 
    276     // Check for zero/denormal values; if so, adjust the exponent,
    277     // if not insert the implicit, omitted leading 1 bit.
    278     if (exponent == -0x3ff)
    279         exponent = mantissa ? -0x3fe : 0;
    280     else
    281         mantissa |= 0x10000000000000ull;
    282 }
    283 
    284262#endif // #ifndef WTF_MathExtras_h
Note: See TracChangeset for help on using the changeset viewer.