summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Random.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-05-26 18:53:19 -0400
committerLioncash <mathew1800@gmail.com>2018-05-28 13:28:44 -0400
commit0125d9b0999834dc2de4e526fe9823722a00877a (patch)
tree97232d18d12f801081d11270df8d6271c8b8f620 /Source/Core/Common/Random.cpp
parentbda668925a25000c197764ceac678fe345e59ada (diff)
Interpreter_FloatingPoint: Factor out common code from fctiw and fctiwz
fctiwz functions in the same manner as fctiw, with the difference being that fctiwz always assumes the rounding mode being towards zero. Because of this, we can implement fctiwz in terms of fctiw's code, but modify it to accept a rounding mode, allowing us to preserve proper behavior for both instructions. We also move Helper_UpdateCR1 to a temporary home in Interpreter_FPUtils.h for the time being. It would be more desirable to move it to a new common header for all the helpers, so that even JITs can use them if they so wish, however, this and the following changes are intended to only touch the interpreter to keep changes minimal for fixing instruction behavior. JitCommon already duplicates the Helper_Mask function within JitBase.cpp/.h, and the ARM JIT includes the Interpreter header in order to call Helper_Carry. So a follow up is best suited here, as this touches two other CPU backends.
Diffstat (limited to 'Source/Core/Common/Random.cpp')
0 files changed, 0 insertions, 0 deletions