block-sha1: factor out get_be and put_be wrappers
commit802b123366b5b3b6e18ee9e25a240815d1c97aae
authorJeff King <peff@peff.net>
Thu, 23 Jan 2014 21:23:09 +0000 (23 16:23 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Jan 2014 22:03:21 +0000 (23 14:03 -0800)
treee0f885c82a00ed16d40987cca97bddac9b02881a
parent1a6d8b91489ad4a7b7d267b46a3e838b004157f1
block-sha1: factor out get_be and put_be wrappers

The BLK_SHA1 code has optimized wrappers for doing endian
conversions on memory that may not be aligned. Let's pull
them out so that we can use them elsewhere, especially the
time-tested list of platforms that prefer each strategy.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
block-sha1/sha1.c
compat/bswap.h