Differences From Artifact [830442e230]:
- File
src/OFMacros.h
— part of check-in
[2ff4ae177d]
at
2009-08-31 00:19:41
on branch trunk
— Optimize OF_BSWAP64.
If we have a native OF_BSWAP32, it is still faster to shift and use
OF_BSWAP32 twice rather than having our own OF_BSWAP64. If we don't
have OF_BSWAP32 either, this generates exactly the same code as it did
before, but is much shorter. (user: js, size: 2998) [annotate] [blame] [check-ins using]
To Artifact [266458e29f]:
- File src/OFMacros.h — part of check-in [3f9c30abc0] at 2009-11-02 11:15:36 on branch trunk — Add #ifdef construct to allow building universal binaries on OS X. (user: js, size: 3266) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #define OF_LIKELY(cond) __builtin_expect(!!(cond), 1) #define OF_UNLIKELY(cond) __builtin_expect(!!(cond), 0) #else #define OF_INLINE inline #define OF_LIKELY(cond) cond #define OF_UNLIKELY(cond) cond #endif #ifdef __GNUC__ #if defined(__amd64__) || defined(__x86_64__) #define OF_AMD64_ASM #elif defined(__i386__) #define OF_X86_ASM #elif defined(__ppc__) || defined(__PPC__) | > > > > > > > > > > > | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #define OF_LIKELY(cond) __builtin_expect(!!(cond), 1) #define OF_UNLIKELY(cond) __builtin_expect(!!(cond), 0) #else #define OF_INLINE inline #define OF_LIKELY(cond) cond #define OF_UNLIKELY(cond) cond #endif /* Required to build universal binaries on OS X */ #if __BIG_ENDIAN__ || __LITTLE_ENDIAN__ #if __BIG_ENDIAN__ && __LITTLE_ENDIAN__ #error __BIG_ENDIAN__ and __LITTLE_ENDIAN__ defined! #endif #undef OF_BIG_ENDIAN #if __BIG_ENDIAN__ #define OF_BIG_ENDIAN #endif #endif #ifdef __GNUC__ #if defined(__amd64__) || defined(__x86_64__) #define OF_AMD64_ASM #elif defined(__i386__) #define OF_X86_ASM #elif defined(__ppc__) || defined(__PPC__) |
︙ | ︙ |