Changeset 52731 in webkit


Ignore:
Timestamp:
Jan 4, 2010 5:18:51 AM (14 years ago)
Author:
mjs@apple.com
Message:

2010-01-04 Maciej Stachowiak <mjs@apple.com>

Reviewed by Simon Hausmann.

Fix some PLATFORM(*_ENDIAN) uses to CPU()
https://bugs.webkit.org/show_bug.cgi?id=33148

  • runtime/JSCell.cpp: (JSC::):
  • runtime/JSValue.h: (JSC::JSValue::):

2010-01-04 Maciej Stachowiak <mjs@apple.com>

Reviewed by Simon Hausmann.

Fix some PLATFORM(*_ENDIAN) uses to CPU()
https://bugs.webkit.org/show_bug.cgi?id=33148

  • platform/image-decoders/bmp/BMPImageReader.h: (WebCore::BMPImageReader::readUint16): (WebCore::BMPImageReader::readUint32): (WebCore::BMPImageReader::readCurrentPixel):
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r52730 r52731  
     12010-01-04  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        Fix some PLATFORM(*_ENDIAN) uses to CPU()
     6        https://bugs.webkit.org/show_bug.cgi?id=33148
     7
     8        * runtime/JSCell.cpp:
     9        (JSC::):
     10        * runtime/JSValue.h:
     11        (JSC::JSValue::):
     12
    1132010-01-04  Maciej Stachowiak  <mjs@apple.com>
    214
  • trunk/JavaScriptCore/runtime/JSCell.cpp

    r52178 r52731  
    6060   
    6161} NaNInf = { {
    62 #if PLATFORM(BIG_ENDIAN)
     62#if CPU(BIG_ENDIAN)
    6363    { 0x7f, 0xf8, 0, 0, 0, 0, 0, 0 },
    6464    { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }
    65 #elif PLATFORM(MIDDLE_ENDIAN)
     65#elif CPU(MIDDLE_ENDIAN)
    6666    { 0, 0, 0xf8, 0x7f, 0, 0, 0, 0 },
    6767    { 0, 0, 0xf0, 0x7f, 0, 0, 0, 0 }
  • trunk/JavaScriptCore/runtime/JSValue.h

    r52026 r52731  
    236236            EncodedJSValue asEncodedJSValue;
    237237            double asDouble;
    238 #if PLATFORM(BIG_ENDIAN)
     238#if CPU(BIG_ENDIAN)
    239239            struct {
    240240                int32_t tag;
  • trunk/WebCore/ChangeLog

    r52729 r52731  
     12010-01-04  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        Fix some PLATFORM(*_ENDIAN) uses to CPU()
     6        https://bugs.webkit.org/show_bug.cgi?id=33148
     7
     8        * platform/image-decoders/bmp/BMPImageReader.h:
     9        (WebCore::BMPImageReader::readUint16):
     10        (WebCore::BMPImageReader::readUint32):
     11        (WebCore::BMPImageReader::readCurrentPixel):
     12
    1132010-01-04  Maciej Stachowiak  <mjs@apple.com>
    214
  • trunk/WebCore/platform/image-decoders/bmp/BMPImageReader.h

    r44874 r52731  
    4747            uint16_t result;
    4848            memcpy(&result, &data->data()[offset], 2);
    49         #if PLATFORM(BIG_ENDIAN)
     49        #if CPU(BIG_ENDIAN)
    5050            result = ((result & 0xff) << 8) | ((result & 0xff00) >> 8);
    5151        #endif
     
    5757            uint32_t result;
    5858            memcpy(&result, &data->data()[offset], 4);
    59         #if PLATFORM(BIG_ENDIAN)
     59        #if CPU(BIG_ENDIAN)
    6060            result = ((result & 0xff) << 24) | ((result & 0xff00) << 8) |
    6161                ((result & 0xff0000) >> 8) | ((result & 0xff000000) >> 24);
     
    203203                uint32_t pixel;
    204204                memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3);
    205         #if PLATFORM(BIG_ENDIAN)
     205        #if CPU(BIG_ENDIAN)
    206206                pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) |
    207207                    ((pixel & 0xff000000) >> 24);
Note: See TracChangeset for help on using the changeset viewer.