diff options
Diffstat (limited to 'src/emu/cpu/rsp/vxor.h')
-rw-r--r-- | src/emu/cpu/rsp/vxor.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emu/cpu/rsp/vxor.h b/src/emu/cpu/rsp/vxor.h new file mode 100644 index 00000000000..b11e1b96bc1 --- /dev/null +++ b/src/emu/cpu/rsp/vxor.h @@ -0,0 +1,10 @@ +// license:BSD-3-Clause +// copyright-holders:Tyler J. Stachecki,Ryan Holtz + +inline rsp_vec_t vec_vxor_vnxor(UINT32 iw, rsp_vec_t vs, rsp_vec_t vt) +{ + rsp_vec_t vmask = _mm_load_si128((rsp_vec_t *) m_vec_helpers.logic_mask[iw & 0x1]); + + rsp_vec_t vd = _mm_xor_si128(vs, vt); + return _mm_xor_si128(vd, vmask); +} |