提交 98909c1d 编写于 作者: A Andy Polyakov

ghash-x86.pl: engage original MMX version in no-sse2 builds.

上级 ccd395cb
......@@ -331,7 +331,7 @@ if (!$x86only) {{{
&static_label("rem_4bit");
if (0) {{ # "May" MMX version is kept for reference...
if (!$sse2) {{ # pure-MMX "May" version...
$S=12; # shift factor for rem_4bit
......
......@@ -726,7 +726,11 @@ void CRYPTO_gcm128_init(GCM128_CONTEXT *ctx,void *key,block128_f block)
# endif
gcm_init_4bit(ctx->Htable,ctx->H.u);
# if defined(GHASH_ASM_X86) /* x86 only */
# if defined(OPENSSL_IA32_SSE2)
if (OPENSSL_ia32cap_P[0]&(1<<25)) { /* check SSE bit */
# else
if (OPENSSL_ia32cap_P[0]&(1<<23)) { /* check MMX bit */
# endif
ctx->gmult = gcm_gmult_4bit_mmx;
ctx->ghash = gcm_ghash_4bit_mmx;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册