target-alpha: Fix float32_to_s vs zero exponent.
commitd0af544555473e2cbac58903577e042ed5c50fa9
authorRichard Henderson <rth@twiddle.net>
Mon, 14 Dec 2009 01:50:46 +0000 (13 17:50 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 17 Dec 2009 17:12:04 +0000 (17 18:12 +0100)
tree372025cda3263d1b33695028279d76af82bbdde1
parent68bd052ee124d127bb8b39cda23ae71a8e526825
target-alpha: Fix float32_to_s vs zero exponent.

There was a bug in float32_to_s that incorrectly mapped a zero exponent
to 0x38.  This meant 0.0f != 0.  At the same time, fix a generic type
punning bug in helper_memory_to_s and helper_s_to_memory.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-alpha/op_helper.c