summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/rsp/vadd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/rsp/vadd.h')
-rw-r--r--src/devices/cpu/rsp/vadd.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/devices/cpu/rsp/vadd.h b/src/devices/cpu/rsp/vadd.h
deleted file mode 100644
index 16009e53287..00000000000
--- a/src/devices/cpu/rsp/vadd.h
+++ /dev/null
@@ -1,16 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tyler J. Stachecki,Ryan Holtz
-
-inline rsp_vec_t vec_vadd(rsp_vec_t vs, rsp_vec_t vt, rsp_vec_t carry, rsp_vec_t *acc_lo)
-{
- // VCC uses unsaturated arithmetic.
- rsp_vec_t vd = _mm_add_epi16(vs, vt);
- *acc_lo = _mm_sub_epi16(vd, carry);
-
- // VD is the signed sum of the two sources and the carry. Since we
- // have to saturate the sum of all three, we have to be clever.
- rsp_vec_t minimum = _mm_min_epi16(vs, vt);
- rsp_vec_t maximum = _mm_max_epi16(vs, vt);
- minimum = _mm_subs_epi16(minimum, carry);
- return _mm_adds_epi16(minimum, maximum);
-}