Differences From Artifact [6d59233a09]:
- File
src/OFMacros.h
— part of check-in
[f8b652cc27]
at
2009-06-01 20:36:25
on branch trunk
— Add objfw.h which includes everything.
Only importing what you really need is preferred, though. (user: js, size: 1328) [annotate] [blame] [check-ins using]
To Artifact [9f9852ff63]:
- File src/OFMacros.h — part of check-in [15a5433649] at 2009-07-23 15:39:27 on branch trunk — Include stdint.h in OFMacros.h. (user: js, size: 1349) [annotate] [blame] [check-ins using]
| ︙ | |||
16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | + + |
#else
#define OF_INLINE inline
#define OF_LIKELY(cond) cond
#define OF_UNLIKELY(cond) cond
#endif
#if defined(OF_BIG_ENDIAN)
#include <stdint.h>
static OF_INLINE void
OF_BSWAP_V(uint8_t *buf, size_t len)
{
uint32_t t;
while (len--) {
t = (uint32_t)((uint32_t)buf[3] << 8 | buf[2]) << 16 |
|
| ︙ |