Changeset 52731 in webkit
- Timestamp:
- Jan 4, 2010 5:18:51 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r52730 r52731 1 2010-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 1 13 2010-01-04 Maciej Stachowiak <mjs@apple.com> 2 14 -
trunk/JavaScriptCore/runtime/JSCell.cpp
r52178 r52731 60 60 61 61 } NaNInf = { { 62 #if PLATFORM(BIG_ENDIAN)62 #if CPU(BIG_ENDIAN) 63 63 { 0x7f, 0xf8, 0, 0, 0, 0, 0, 0 }, 64 64 { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } 65 #elif PLATFORM(MIDDLE_ENDIAN)65 #elif CPU(MIDDLE_ENDIAN) 66 66 { 0, 0, 0xf8, 0x7f, 0, 0, 0, 0 }, 67 67 { 0, 0, 0xf0, 0x7f, 0, 0, 0, 0 } -
trunk/JavaScriptCore/runtime/JSValue.h
r52026 r52731 236 236 EncodedJSValue asEncodedJSValue; 237 237 double asDouble; 238 #if PLATFORM(BIG_ENDIAN)238 #if CPU(BIG_ENDIAN) 239 239 struct { 240 240 int32_t tag; -
trunk/WebCore/ChangeLog
r52729 r52731 1 2010-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 1 13 2010-01-04 Maciej Stachowiak <mjs@apple.com> 2 14 -
trunk/WebCore/platform/image-decoders/bmp/BMPImageReader.h
r44874 r52731 47 47 uint16_t result; 48 48 memcpy(&result, &data->data()[offset], 2); 49 #if PLATFORM(BIG_ENDIAN)49 #if CPU(BIG_ENDIAN) 50 50 result = ((result & 0xff) << 8) | ((result & 0xff00) >> 8); 51 51 #endif … … 57 57 uint32_t result; 58 58 memcpy(&result, &data->data()[offset], 4); 59 #if PLATFORM(BIG_ENDIAN)59 #if CPU(BIG_ENDIAN) 60 60 result = ((result & 0xff) << 24) | ((result & 0xff00) << 8) | 61 61 ((result & 0xff0000) >> 8) | ((result & 0xff000000) >> 24); … … 203 203 uint32_t pixel; 204 204 memcpy(&pixel, &m_data->data()[m_decodedOffset + offset], 3); 205 #if PLATFORM(BIG_ENDIAN)205 #if CPU(BIG_ENDIAN) 206 206 pixel = ((pixel & 0xff00) << 8) | ((pixel & 0xff0000) >> 8) | 207 207 ((pixel & 0xff000000) >> 24);
Note: See TracChangeset
for help on using the changeset viewer.