From 0755b6e5faa6f32ed64357a78f1b5408e4d710e8 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Mon, 10 Feb 2020 07:53:56 +0300 Subject: [PATCH] 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. --- gosthash2012.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2