aboutsummaryrefslogtreecommitdiff
path: root/crypto/bn/asm/x86_64-gcc.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-11-14 16:40:37 +0000
committerAndy Polyakov <appro@openssl.org>2008-11-14 16:40:37 +0000
commit93c4ba07d715fc8e3bad982ef4ea33e90d6a344e (patch)
tree2b03f4c8c66004f46214db4e5511b04040370b50 /crypto/bn/asm/x86_64-gcc.c
parent36d46234c77f11d246309332d08eebe37eb4458f (diff)
downloadopenssl-93c4ba07d715fc8e3bad982ef4ea33e90d6a344e.zip
openssl-93c4ba07d715fc8e3bad982ef4ea33e90d6a344e.tar.gz
openssl-93c4ba07d715fc8e3bad982ef4ea33e90d6a344e.tar.bz2
x86_64-xlate.pl update, engage x86_64 assembler in mingw64.
Diffstat (limited to 'crypto/bn/asm/x86_64-gcc.c')
-rw-r--r--crypto/bn/asm/x86_64-gcc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/bn/asm/x86_64-gcc.c b/crypto/bn/asm/x86_64-gcc.c
index c4d941d..825f947 100644
--- a/crypto/bn/asm/x86_64-gcc.c
+++ b/crypto/bn/asm/x86_64-gcc.c
@@ -1,4 +1,4 @@
-#ifdef __SUNPRO_C
+#if !(defined(__GNUC__) && __GNUC__>=2)
# include "../bn_asm.c" /* kind of dirty hack for Sun Studio */
#else
/*
@@ -54,7 +54,11 @@
* machine.
*/
+#ifdef _WIN64
+#define BN_ULONG unsigned long long
+#else
#define BN_ULONG unsigned long
+#endif
/*
* "m"(a), "+m"(r) is the way to favor DirectPath µ-code;