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

[ARM] Implement remaining std.math stuff #1863

Merged
merged 4 commits into from
Jan 16, 2014
Merged

Conversation

jpf91
Copy link
Contributor

@jpf91 jpf91 commented Jan 14, 2014

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.

@@ -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);
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, done.

@dnadlinger
Copy link
Member

Auto-merge toggled on

@dnadlinger
Copy link
Member

Should be fine, but of course master is broken right now. -.-

dnadlinger added a commit that referenced this pull request Jan 16, 2014
[ARM] Implement remaining std.math stuff
@dnadlinger dnadlinger merged commit d092ff3 into dlang:master Jan 16, 2014
@jpf91 jpf91 deleted the arm-5 branch January 16, 2014 08:22
@jpf91
Copy link
Contributor Author

jpf91 commented Jan 16, 2014

thanks

@dnadlinger
Copy link
Member

The pleasure was all mine (although ideally, you would have included a link to that frexp discussion in the commit message).

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.

4 participants