Overview
Comment: | Extra parentheses for OF_BSWAP{16,32,64}_CONST. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8fa3b3b73745ec1db31943354899b732 |
User & Date: | js on 2010-04-08 21:22:20 |
Other Links: | manifest | tags |
Context
2010-04-08
| ||
21:23 | Add -[writeDataArray:] to OFStream. check-in: 967a5e6a40 user: js tags: trunk | |
21:22 | Extra parentheses for OF_BSWAP{16,32,64}_CONST. check-in: 8fa3b3b737 user: js tags: trunk | |
21:14 | Make TableGenerator an OFApplicationDelegate. check-in: db6e3205fd user: js tags: trunk | |
Changes
Modified src/macros.h from [869ffd926c] to [92c862e4a0].
︙ | ︙ | |||
44 45 46 47 48 49 50 | # define OF_PPC_ASM # elif defined(__arm__) || defined(__ARM__) # define OF_ARM_ASM # endif #endif #define OF_BSWAP16_CONST(i) \ | | | | | | | | | | | | | | | | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | # define OF_PPC_ASM # elif defined(__arm__) || defined(__ARM__) # define OF_ARM_ASM # endif #endif #define OF_BSWAP16_CONST(i) \ (((uint16_t)(i) & UINT16_C(0xFF00)) >> 8 | \ ((uint16_t)(i) & UINT16_C(0x00FF)) << 8) #define OF_BSWAP32_CONST(i) \ (((uint32_t)(i) & UINT32_C(0xFF000000)) >> 24 | \ ((uint32_t)(i) & UINT32_C(0x00FF0000)) >> 8 | \ ((uint32_t)(i) & UINT32_C(0x0000FF00)) << 8 | \ ((uint32_t)(i) & UINT32_C(0x000000FF)) << 24) #define OF_BSWAP64_CONST(i) \ (((uint64_t)(i) & UINT64_C(0xFF00000000000000)) >> 56 | \ ((uint64_t)(i) & UINT64_C(0x00FF000000000000)) >> 40 | \ ((uint64_t)(i) & UINT64_C(0x0000FF0000000000)) >> 24 | \ ((uint64_t)(i) & UINT64_C(0x000000FF00000000)) >> 8 | \ ((uint64_t)(i) & UINT64_C(0x00000000FF000000)) << 8 | \ ((uint64_t)(i) & UINT64_C(0x0000000000FF0000)) << 24 | \ ((uint64_t)(i) & UINT64_C(0x000000000000FF00)) << 40 | \ ((uint64_t)(i) & UINT64_C(0x00000000000000FF)) << 56) static OF_INLINE uint16_t OF_BSWAP16_NONCONST(uint16_t i) { #if defined(OF_X86_ASM) || defined(OF_AMD64_ASM) __asm__ ("xchgb %h0, %b0" : "=Q"(i) : "0"(i)); #elif defined(OF_PPC_ASM) |
︙ | ︙ |