Skip to content

Commit

Permalink
clear mmx state after mmx procedures, fix #94
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Apr 21, 2024
1 parent 852125a commit 840184b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruapu.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static int ruapu_detect_isa(ruapu_some_inst some_inst)
#endif // defined _WIN32

#if defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)
RUAPU_INSTCODE(mmx, 0x0f, 0xdb, 0xc0) // pand mm0,mm0
RUAPU_INSTCODE(mmx, 0x0f, 0xdb, 0xc0, 0x0f, 0x77) // pand mm0,mm0 + emms
RUAPU_INSTCODE(sse, 0x0f, 0x54, 0xc0) // andps xmm0,xmm0
RUAPU_INSTCODE(sse2, 0x66, 0x0f, 0xfe, 0xc0) // paddd xmm0,xmm0
RUAPU_INSTCODE(sse3, 0xf2, 0x0f, 0x7c, 0xc0) // haddps xmm0,xmm0
Expand Down

0 comments on commit 840184b

Please sign in to comment.