Skip to content

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
Contributor

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
Contributor

Auto-merge toggled on

@dnadlinger
Copy link
Contributor

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
Contributor

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