emit_x64_floating_point: ZeroIfNaN: pxor -> xorps

xorps is shorter and more appropriate here.
This commit is contained in:
MerryMage 2018-09-05 22:00:36 +01:00
parent 3415828fb4
commit 1abf82ac4a

View file

@ -103,7 +103,7 @@ void DenormalsAreZero(BlockOfCode& code, Xbyak::Xmm xmm_value, Xbyak::Reg64 gpr_
template<size_t fsize>
void ZeroIfNaN(BlockOfCode& code, Xbyak::Xmm xmm_value, Xbyak::Xmm xmm_scratch) {
code.pxor(xmm_scratch, xmm_scratch);
code.xorps(xmm_scratch, xmm_scratch);
FCODE(cmpords)(xmm_scratch, xmm_value); // true mask when ordered (i.e.: when not an NaN)
code.pand(xmm_value, xmm_scratch);
}