1#include <stdint.h>
2
3#include "byteorder.h"
4
5uint16_t
6byteorder_swaps(uint16_t v)
7{
8 return __builtin_bswap16(v);
9}
10
11uint32_t
12byteorder_swapl(uint32_t v)
13{
14 return __builtin_bswap32(v);
15}
16
17uint64_t
18byteorder_swapll(uint64_t v)
19{
20 return __builtin_bswap64(v);
21}