Changeset 13089 in webkit for trunk/JavaScriptCore/kxmlcore/FastMalloc.cpp
- Timestamp:
- Mar 2, 2006, 1:12:06 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kxmlcore/FastMalloc.cpp
r13017 r13089 68 68 #ifndef NDEBUG 69 69 #define USE_SYSTEM_MALLOC 1 70 #else 71 #define USE_SYSTEM_MALLOC 0 70 72 #endif 71 73 … … 96 98 } 97 99 98 #if !WIN32100 #if PLATFORM(WIN_OS) 99 101 void fastMallocRegisterThread(pthread_t) 100 102 { … … 106 108 #else 107 109 108 #if HAVE _STDINT_H110 #if HAVE(STDINT_H) 109 111 #include <stdint.h> 110 #elif HAVE _INTTYPES_H112 #elif HAVE(INTTYPES_H) 111 113 #include <inttypes.h> 112 114 #else … … 141 143 #endif 142 144 143 #if defined HAVE_INTTYPES_H145 #if HAVE(INTTYPES_H) 144 146 #define __STDC_FORMAT_MACROS 145 147 #include <inttypes.h> … … 221 223 222 224 // Return floor(log2(n)) for n > 0. 223 #if defined __i386__ && defined __GNUC__225 #if PLATFORM(X86) && COMPILER(GCC) 224 226 static inline int LgFloor(size_t n) { 225 227 // "ro" for the input spec means the input can come from either a … … 234 236 } 235 237 236 #elif defined __ppc__ && defined __GNUC__238 #elif PLATFORM(PPC) && COMPILER(GCC) 237 239 static inline int LgFloor(size_t n) { 238 240 // "r" for the input spec means the input must come from a … … 2281 2283 2282 2284 extern "C" { 2283 #if defined(__GNUC__) && defined(HAVE___ATTRIBUTE__)2285 #if COMPILER(GCC) && HAVE(__ATTRIBUTE__) 2284 2286 // Potentially faster variants that use the gcc alias extension 2285 2287 #define ALIAS(x) __attribute__ ((weak, alias (x)))
Note:
See TracChangeset
for help on using the changeset viewer.