]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
gosthash2012: Properly ifdef '_mm_empty' call
authorVitaly Chikunov <vt@altlinux.org>
Mon, 10 Feb 2020 04:53:56 +0000 (07:53 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Mon, 10 Feb 2020 08:28:23 +0000 (11:28 +0300)
There is other architectures besides __x86_64__, so EMMS should be
issued on IA-32 only where we are using MMX.

gosthash2012.c

index c4307e7213972e99d4f9aaa1991134b639ea19ba..5ec8ec76f96757499bf3d8b80bd90043b9cdb46d 100644 (file)
@@ -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();