Skip to contentSkip to conversation

qemu/target-mips op_helper.c

Qemu-devel Thiemo Seufer 2 participants 4 messages Jun 27, 2007 – Jun 28, 2007

lore
Share & tools
lore
#2 lore raw
Quoted 1 line · Fabrice Bellard

IMHO, calling floatX_round_to_int before floatX_to_intY is not useful...

I don't understand. floatX_round_to_int does round/ceil/floor but keeps the floating point representation. floatX_to_intY converts the adjusted value to integer representation.

Doing this in two steps may have its own problems like spurious inexact signalling, but at least the calculated values appear to be correct.

Thiemo

#3 lore raw

floatX_to_intY should already do the rounding according to the current rounding direction.

Fabrice.

Quoted 17 lines · Thiemo Seufer
Quoted 1 line · Fabrice Bellard

IMHO, calling floatX_round_to_int before floatX_to_intY is not useful...

I don't understand. floatX_round_to_int does round/ceil/floor but keeps the floating point representation. floatX_to_intY converts the adjusted value to integer representation.

Doing this in two steps may have its own problems like spurious inexact signalling, but at least the calculated values appear to be correct.

Thiemo