summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/rsp/vand.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/rsp/vand.h')
-rw-r--r--src/emu/cpu/rsp/vand.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/emu/cpu/rsp/vand.h b/src/emu/cpu/rsp/vand.h
new file mode 100644
index 00000000000..4349227fdd3
--- /dev/null
+++ b/src/emu/cpu/rsp/vand.h
@@ -0,0 +1,9 @@
+// license:BSD-3-Clause
+// copyright-holders:Tyler J. Stachecki,Ryan Holtz
+
+inline rsp_vec_t vec_vand_vnand(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_and_si128(vs, vt);
+ return _mm_xor_si128(vd, vmask);
+}