[squeak-dev] COG-VM Float endianness problems
nicolas.cellier.aka.nice at gmail.com
Mon Jun 21 17:46:37 UTC 2010
I'm using windows COG VM + image provided by Andreas.
I note a few problems related to the change of endianness of Float.
One of it is Float negativeZero sign = 1, instead of -1.
"Answer 1 if the receiver is greater than 0, -1 if less than 0, else 0.
Handle IEEE-754 negative-zero by reporting a sign of -1"
self > 0 ifTrue: [^ 1].
(self < 0 or: [((self at: 1) bitShift: -31) = 1]) ifTrue: [^ -1].
Does the image miss a few changes ?
More information about the Squeak-dev