summaryrefslogtreecommitdiffstats
path: root/src/core/arm
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-12-20 21:30:06 +0100
committerLioncash <mathew1800@gmail.com>2014-12-20 21:34:14 +0100
commit2a097f09908bff63037b56d1b1c46ea6c3e76a2b (patch)
tree0d914e29724943b8cee1017fa800ad873161cf35 /src/core/arm
parentMerge pull request #311 from lioncash/usada (diff)
downloadyuzu-2a097f09908bff63037b56d1b1c46ea6c3e76a2b.tar
yuzu-2a097f09908bff63037b56d1b1c46ea6c3e76a2b.tar.gz
yuzu-2a097f09908bff63037b56d1b1c46ea6c3e76a2b.tar.bz2
yuzu-2a097f09908bff63037b56d1b1c46ea6c3e76a2b.tar.lz
yuzu-2a097f09908bff63037b56d1b1c46ea6c3e76a2b.tar.xz
yuzu-2a097f09908bff63037b56d1b1c46ea6c3e76a2b.tar.zst
yuzu-2a097f09908bff63037b56d1b1c46ea6c3e76a2b.zip
Diffstat (limited to 'src/core/arm')
-rw-r--r--src/core/arm/interpreter/armemu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/arm/interpreter/armemu.cpp b/src/core/arm/interpreter/armemu.cpp
index 7408b6f08..06439b73c 100644
--- a/src/core/arm/interpreter/armemu.cpp
+++ b/src/core/arm/interpreter/armemu.cpp
@@ -6383,10 +6383,10 @@ L_stm_s_takeabort:
const u32 rm_val = state->Reg[rm_idx];
const u32 rn_val = state->Reg[rn_idx];
- const u8 diff1 = (u8)::abs((rn_val & 0xFF) - (rm_val & 0xFF));
- const u8 diff2 = (u8)::abs(((rn_val >> 8) & 0xFF) - ((rm_val >> 8) & 0xFF));
- const u8 diff3 = (u8)::abs(((rn_val >> 16) & 0xFF) - ((rm_val >> 16) & 0xFF));
- const u8 diff4 = (u8)::abs(((rn_val >> 24) & 0xFF) - ((rm_val >> 24) & 0xFF));
+ const u8 diff1 = (u8)std::labs((rn_val & 0xFF) - (rm_val & 0xFF));
+ const u8 diff2 = (u8)std::labs(((rn_val >> 8) & 0xFF) - ((rm_val >> 8) & 0xFF));
+ const u8 diff3 = (u8)std::labs(((rn_val >> 16) & 0xFF) - ((rm_val >> 16) & 0xFF));
+ const u8 diff4 = (u8)std::labs(((rn_val >> 24) & 0xFF) - ((rm_val >> 24) & 0xFF));
u32 finalDif = (diff1 + diff2 + diff3 + diff4);