-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with <double-float> on 64-bit #1254
Comments
I see it is possible to just directly use a 64 bit number on 64 bit platforms
so we just need to check |
housel@e20f211 has a fix for this, consistently splitting |
That looks like a good change, would it be worth cherry-picking from your branch? (I don't think your corba-tuneup branch has been merged?) |
While investigating floating point things on 64-bit, C back end.
There are failing tests in common-dylan/tests/functions.dylan, one example is on line 1002
Should create a float from the raw data 0x7FF0000000000000
Calling
opendylan/sources/common-dylan/tests/functions.dylan
Lines 982 to 986 in 9f9ab34
Calling
opendylan/sources/dylan/float.dylan
Lines 287 to 292 in 30b4a91
Calling
opendylan/sources/lib/run-time/c-primitives-math.c
Lines 120 to 129 in 6f60c21
For X64,
NO_LONGLONG
is defined so this is not going to work as it is assuming all 64 bits are in the low machine-word and nothing useful is in the high MW.Hence in this case, the test fails as the number appears to be zero rather than infinite (I think
classify-float
itself is OK)The text was updated successfully, but these errors were encountered: