André Braga wrote:
On 10/16/06, Tom Marn wrote:
cast test 1 - float: 85.745110 [0x42ab7d7f] -> integer: 85 [0x0055]
cast test 2 - float: 85.745110 [0x42ab7d7f] -> integer: 57005
[0xdead] <-- 85 is correct
Am I the only one who found this result EXTREMELY amusing? :D
Thanks André
T
On 10/16/06, Tom Marn <[EMAIL PROTECTED]> wrote:
cast test 1 - float: 85.745110 [0x42ab7d7f] -> integer: 85 [0x0055]
cast test 2 - float: 85.745110 [0x42ab7d7f] -> integer: 57005 [0xdead] <--
85 is correct
Am I the only one who found this result EXTREMELY amusing? :D
Please use last attached patch for stfiwx implementation and demonstration of
cast problem. Instruction stfiwx is used when casting from float point to
integer is needed.
I'm having problems with proper evaluation of values at the line (in cast_ftoi.c) where
casting from float to integer accur