-
-
Notifications
You must be signed in to change notification settings - Fork 741
[ARM] Implement remaining std.math stuff #1863
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
Conversation
@@ -2071,7 +2071,7 @@ real frexp(real value, out int exp) @trusted pure nothrow | |||
else | |||
{ | |||
exp = (ex - F.EXPBIAS) >> 4; | |||
vu[F.EXPPOS_SHORT] = cast(ushort)((0x8000 & vu[F.EXPPOS_SHORT]) | 0x3FE0); | |||
vu[F.EXPPOS_SHORT] = cast(ushort)((0x800F & vu[F.EXPPOS_SHORT]) | 0x3FE0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vaguely remember some discussion about this – but what was the issue here again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That change should really be a stand alone commit rather than be mixed in to a larger, only barely related, set of changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, done.
Auto-merge toggled on |
Should be fine, but of course master is broken right now. -.- |
[ARM] Implement remaining std.math stuff
thanks |
The pleasure was all mine (although ideally, you would have included a link to that frexp discussion in the commit message). |
Implement ARM support in std.math. This pull request only contains the compiler-independent parts. Some inline-asm is necessary to make std.math work 100% but we won't upstream this code. The gdc implementation is here, for reference:
jpf91/GDC@017d7aa
Note: This is part of a set of changes which are required to get test suite & unit tests passing on ARM GDC. All necessary changes for GDC are here for reference:
https://github.com/jpf91/GDC/commits/arm-old
Once these pull requests are merged upstream I'll merge them into GDC as well.