2 typedef __INT32_TYPE__
int32_t;
8 typedef __UINT32_TYPE__
uint32_t;
10 typedef unsigned uint32_t;
13 #define __fake_const_swab32(x) ((uint32_t)( \
14 (((uint32_t)(x) & (uint32_t)0x000000ffUL) << 24) | \
15 (((uint32_t)(x) & (uint32_t)0x0000ff00UL) << 8) | \
16 (((uint32_t)(x) & (uint32_t)0x00ff0000UL) >> 8) | \
17 (( (int32_t)(x) & (int32_t)0xff000000UL) >> 24)))
19 /* Previous version of bswap optimization failed to consider sign extension
20 and as a result would replace an expression *not* doing a bswap by a
23 __attribute__ ((noinline
, noclone
)) uint32_t
24 fake_bswap32 (uint32_t in
)
26 return __fake_const_swab32 (in
);
32 if (sizeof (int32_t) * __CHAR_BIT__
!= 32)
34 if (sizeof (uint32_t) * __CHAR_BIT__
!= 32)
36 if (fake_bswap32 (0x87654321) != 0xffffff87)