summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/scudsp/scudsp.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-09-25 22:28:50 -0400
committer AJR <ajrhacker@users.noreply.github.com>2022-09-25 22:37:29 -0400
commit5dc22ca8fd325315c5d24b6ed6a037cc38e86527 (patch)
tree3b0810f803ef2e9dff52c203510825f7c0b79a9b /src/devices/cpu/scudsp/scudsp.cpp
parenta61cb4cb61c544241712dfb039817e7c7b72e3c0 (diff)
eminline.h: Additions
- Add mul_16x16 inline function to perform a signed 16x16-bit multiplication with 32-bit result. This was moved from cpu/e132xs to unite it with the analogous 32x32 operations. - Add rotl_32, rotr_32, rotl_64 and rotr_64 inline functions to perform 32-bit and 64-bit circular shifts in either direction by the specified number of places, modulo 32 or 64. It is anticipated that these will eventually be replaced by standard functions in C++20's <bit> header, and so they have been given similar signatures and semantics (which are also validity-checked). - Remove LSL, LSR, ROL and ROR macros from cpu/arm and cpu/arm7 to ameliorate unnecessary obfuscation.
Diffstat (limited to 'src/devices/cpu/scudsp/scudsp.cpp')
-rw-r--r--src/devices/cpu/scudsp/scudsp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/scudsp/scudsp.cpp b/src/devices/cpu/scudsp/scudsp.cpp
index 517688c226b..4f4d697a900 100644
--- a/src/devices/cpu/scudsp/scudsp.cpp
+++ b/src/devices/cpu/scudsp/scudsp.cpp
@@ -498,7 +498,7 @@ void scudsp_cpu_device::scudsp_operation(uint32_t opcode)
/* Unrecognized opcode */
break;
case 0xF: /* RL8 */
- i3 = ((m_acl.si << 8) & 0xffffff00) | ((m_acl.si >> 24) & 0xff);
+ i3 = rotl_32(m_acl.si, 8);
m_alu = i3;
SET_Z( i3 == 0 );
SET_S( i3 < 0 );