Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssl/dist/crypto/bn/asm PR/51569: And...
details: https://anonhg.NetBSD.org/src/rev/372ff8832766
branches: trunk
changeset: 350231:372ff8832766
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 08 01:55:49 2017 +0000
description:
PR/51569: Andreas Gustafsson: Check the right bit for pclmulqdq:
Perform a Carry-Less Multiplication of Quadword instruction
(accelerator for GCM)
diffstat:
crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-gf2m.pl | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r a92e847e555f -r 372ff8832766 crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-gf2m.pl
--- a/crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-gf2m.pl Sat Jan 07 23:05:35 2017 +0000
+++ b/crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-gf2m.pl Sun Jan 08 01:55:49 2017 +0000
@@ -167,8 +167,9 @@
.type bn_GF2m_mul_2x2,\@abi-omnipotent
.align 16
bn_GF2m_mul_2x2:
- mov OPENSSL_ia32cap_P(%rip),%rax
- bt \$33,%rax
+ mov OPENSSL_ia32cap_P+4(%rip),%rax
+ bt \$1,%rax # check PCLMULQDQ bit
+
jnc .Lvanilla_mul_2x2
movq $a1,%xmm0
Home |
Main Index |
Thread Index |
Old Index