X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gosthash2012.c;h=5ec8ec76f96757499bf3d8b80bd90043b9cdb46d;hb=7e6ed644cf97385a95544fcc889e2eb16bcc93ed;hp=5a4c64e488d0830beefa34c36c7192114d8ba99f;hpb=ed0f8fbedf438e0ed1f6da9e829a932881695175;p=openssl-gost%2Fengine.git diff --git a/gosthash2012.c b/gosthash2012.c index 5a4c64e..5ec8ec7 100644 --- a/gosthash2012.c +++ b/gosthash2012.c @@ -135,6 +135,11 @@ 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 __i386__ + /* Restore the Floating-point status on the CPU */ + /* This is only required on MMX, but EXTRACT32 is using MMX */ + _mm_empty(); +# endif #else union uint512_u Ki, data; unsigned int i;