bswap: convert get_be16, get_be32 and put_be32 to inline functions
commit5b114f3bb0820c1f57fb4a9cd14b62b55aa30d31
authorRené Scharfe <l.s.r@web.de>
Sat, 15 Jul 2017 19:22:50 +0000 (15 21:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Jul 2017 21:54:15 +0000 (17 14:54 -0700)
treed25d178ba9b7e81860f61dd656732ff13d96de7f
parent7780af1e8edf158f503794dbdb87787999daa086
bswap: convert get_be16, get_be32 and put_be32 to inline functions

Simplify the implementation and allow callers to use expressions with
side-effects by turning the macros get_be16, get_be32 and put_be32 into
inline functions.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/bswap.h