Skip to content
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

More encoding negative zero #4

Closed
wants to merge 2 commits into from
Closed

More encoding negative zero #4

wants to merge 2 commits into from

Conversation

rpav
Copy link
Contributor

@rpav rpav commented Jun 24, 2014

I discovered that the last change alone did not work correctly on CCL:

(decode-float32 (encode-float32 -0s0)) ;; => -0.5 ?!

Apparently, DECODE-FLOAT can return any value for the exponent when the float is zero; in this case I simply preserve the exponent, because it appears the sign is the most important factor. This causes it to work identically in SBCL and CCL.

@rpav
Copy link
Contributor Author

rpav commented Jun 24, 2014

Also, github appears confused about what has or has not been merged.

@marijnh
Copy link
Owner

marijnh commented Jun 24, 2014

Thanks, merged. Next time, rebase your branch on top of my master branch before creating a pull request, that'll cause only the new commits to show up.

@marijnh marijnh closed this Jun 24, 2014
@rpav
Copy link
Contributor Author

rpav commented Jun 24, 2014

Ahhh, got it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants