summaryrefslogtreecommitdiff
path: root/ewah/ewok.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-11-14 12:43:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-11-18 18:57:42 (GMT)
commit7e3dae494370b5596a6ea76af1191829ce11bce2 (patch)
tree36f658bc1630dc150ec2f51f69881fb416759b4e /ewah/ewok.h
parentec73f5807cd6e6f6d55e716cde80637a1019d67d (diff)
downloadgit-7e3dae494370b5596a6ea76af1191829ce11bce2.zip
git-7e3dae494370b5596a6ea76af1191829ce11bce2.tar.gz
git-7e3dae494370b5596a6ea76af1191829ce11bce2.tar.bz2
compat: add endianness helpers
The POSIX standard doesn't currently define a `ntohll`/`htonll` function pair to perform network-to-host and host-to-network swaps of 64-bit data. These 64-bit swaps are necessary for the on-disk storage of EWAH bitmaps if they are not in native byte order. Many thanks to Ramsay Jones <ramsay@ramsay1.demon.co.uk> and Torsten Bögershausen <tboegi@web.de> for cygwin/mingw/msvc portability fixes. Signed-off-by: Vicent Marti <tanoku@gmail.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ewah/ewok.h')
0 files changed, 0 insertions, 0 deletions