From: Vitaly Chikunov Date: Mon, 10 Feb 2020 04:53:56 +0000 (+0300) Subject: gosthash2012: Properly ifdef '_mm_empty' call X-Git-Tag: v3.0.0~201 X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=openssl-gost%2Fengine.git;a=commitdiff_plain;h=0755b6e5faa6f32ed64357a78f1b5408e4d710e8 gosthash2012: Properly ifdef '_mm_empty' call There is other architectures besides __x86_64__, so EMMS should be issued on IA-32 only where we are using MMX. --- diff --git a/gosthash2012.c b/gosthash2012.c index c4307e7..5ec8ec7 100644 --- a/gosthash2012.c +++ b/gosthash2012.c @@ -135,7 +135,7 @@ static void g(union uint512_u *h, const union uint512_u * RESTRICT N, X128R(xmm0, xmm2, xmm4, xmm6, xmm1, xmm3, xmm5, xmm7); STORE(h, xmm0, xmm2, xmm4, xmm6); -# ifndef __x86_64__ +# ifndef __i386__ /* Restore the Floating-point status on the CPU */ /* This is only required on MMX, but EXTRACT32 is using MMX */ _mm_empty();