Use faster byte swapping when compiling with MSVC
authorSebastian Schuberth <sschuberth@gmail.com>
Mon, 19 Oct 2009 16:37:05 +0000 (18:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 Oct 2009 16:37:48 +0000 (09:37 -0700)
commit0fcabdeb52b79775173d009ccc179db104dfbb66
tree14fc7689c760602132f22e5988dd096e70d136a6
parentcd0f8e6d63d3e2744d7d3b2329238be7d064a8ea
Use faster byte swapping when compiling with MSVC

When compiling with MSVC on x86-compatible, use an intrinsic for byte swapping.
In contrast to the GCC path, we do not prefer inline assembly here as it is not
supported for the x64 platform.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/bswap.h