blob: bc7d49002e8b5250f4f7929e6e6cf805cd79f923 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include <endian.h>
uint32_t be32toh(uint32_t big_endian_32bits)
{
#if __BYTE_ORDER == __LITTLE_ENDIAN
return __builtin_bswap32(big_endian_32bits);
#else
return big_endian_32bits;
#endif
}
|