]> git.ipfire.org Git - thirdparty/git.git/commit - compat/bswap.h
bswap: add 64 bit endianness helper get_be64
authorBen Peart <benpeart@microsoft.com>
Fri, 22 Sep 2017 16:35:37 +0000 (12:35 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Sep 2017 01:39:37 +0000 (10:39 +0900)
commitb2e39d0067240e262d77f6c2ac133b77c56bcf1c
tree6dc8d87b31837a36bae88ece2c4f1a61e612169e
parent6867272d5b5615bd74ec97bf35b4c4a8d9fe3a51
bswap: add 64 bit endianness helper get_be64

Add a new get_be64 macro to enable 64 bit endian conversions on memory
that may or may not be aligned.

Signed-off-by: Ben Peart <benpeart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/bswap.h