about summary refs log tree commit diff
path: root/src/misc/bswap_64.c
blob: 961300b5b4c6f72faa4a43ddc927314ef3c04355 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <endian.h>
#include <stdint.h>

uint32_t bswap_32(uint32_t);

uint64_t bswap_64(uint64_t x)
{
	return bswap_32(x)+0LL<<32 | bswap_32(x>>32);
}