summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/bn/asm
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2014-10-15 19:59:43 +0000
committerjkim <jkim@FreeBSD.org>2014-10-15 19:59:43 +0000
commit0b5b22505e1ef2430c5c6add5faa65f35be97ad4 (patch)
tree97eced83822374c92f4921f85ffbe3d7a5208843 /crypto/openssl/crypto/bn/asm
parent44cc4e9f2029f7ca83413a801230adbf8e00915d (diff)
downloadFreeBSD-src-0b5b22505e1ef2430c5c6add5faa65f35be97ad4.zip
FreeBSD-src-0b5b22505e1ef2430c5c6add5faa65f35be97ad4.tar.gz
MFC: r273144, r273146
Merge OpenSSL 1.0.1j. Relnotes: yes
Diffstat (limited to 'crypto/openssl/crypto/bn/asm')
-rw-r--r--crypto/openssl/crypto/bn/asm/x86_64-gcc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/openssl/crypto/bn/asm/x86_64-gcc.c b/crypto/openssl/crypto/bn/asm/x86_64-gcc.c
index acb0b40..31476ab 100644
--- a/crypto/openssl/crypto/bn/asm/x86_64-gcc.c
+++ b/crypto/openssl/crypto/bn/asm/x86_64-gcc.c
@@ -189,7 +189,7 @@ BN_ULONG bn_add_words (BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int
if (n <= 0) return 0;
- asm (
+ asm volatile (
" subq %2,%2 \n"
".p2align 4 \n"
"1: movq (%4,%2,8),%0 \n"
@@ -200,7 +200,7 @@ BN_ULONG bn_add_words (BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int
" sbbq %0,%0 \n"
: "=&a"(ret),"+c"(n),"=&r"(i)
: "r"(rp),"r"(ap),"r"(bp)
- : "cc"
+ : "cc", "memory"
);
return ret&1;
@@ -212,7 +212,7 @@ BN_ULONG bn_sub_words (BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int
if (n <= 0) return 0;
- asm (
+ asm volatile (
" subq %2,%2 \n"
".p2align 4 \n"
"1: movq (%4,%2,8),%0 \n"
@@ -223,7 +223,7 @@ BN_ULONG bn_sub_words (BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int
" sbbq %0,%0 \n"
: "=&a"(ret),"+c"(n),"=&r"(i)
: "r"(rp),"r"(ap),"r"(bp)
- : "cc"
+ : "cc", "memory"
);
return ret&1;
OpenPOWER on IntegriCloud