summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 492b107)
raw | patch | inline | side by side (parent: 492b107)
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | |
Wed, 23 Jun 2010 19:47:02 +0000 (20:47 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 28 Jun 2010 04:59:32 +0000 (21:59 -0700) |
On Intel machines, the msvc compiler defines the CPU architecture
macros _M_IX86 and _M_X64 (equivalent to __i386__ and __x86_64__
respectively). Use these macros in the pre-processor expression
to select the "fast" definition of the {get,put}_be32() macros.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
macros _M_IX86 and _M_X64 (equivalent to __i386__ and __x86_64__
respectively). Use these macros in the pre-processor expression
to select the "fast" definition of the {get,put}_be32() macros.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
block-sha1/sha1.c | patch | blob | history |
diff --git a/block-sha1/sha1.c b/block-sha1/sha1.c
index d880a5336ecbee175162a86a3336a783c79b0eb0..c0054a0b0a441090184a141ee73954a94a2904d5 100644 (file)
--- a/block-sha1/sha1.c
+++ b/block-sha1/sha1.c
*/
#if defined(__i386__) || defined(__x86_64__) || \
+ defined(_M_IX86) || defined(_M_X64) || \
defined(__ppc__) || defined(__ppc64__) || \
defined(__powerpc__) || defined(__powerpc64__) || \
defined(__s390__) || defined(__s390x__)