Thank you for your reply. I've already thought of an algorithm to perform this operation:
Divide the double by 2 to the 32nd power
Convert to an integer and place the result in register r1
Multiply this integer by 2 to the 32nd power
Subtract this integer from the original double
Convert the result to an integer and place it in register r0
r1 r0 contains the result.
Divide the double by 2 to the 32nd power
Convert to an integer and place the result in register r1
Multiply this integer by 2 to the 32nd power
Subtract this integer from the original double
Convert the result to an integer and place it in register r0
r1 r0 contains the result.
Statistics: Posted by VincentARM — Wed Apr 02, 2025 3:49 pm