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 parse!real for systems with 64bit reals #1862

Merged
merged 2 commits into from
Feb 1, 2014

Conversation

jpf91
Copy link
Contributor

@jpf91 jpf91 commented Jan 14, 2014

Implement parse!real for systems where real==double.
This solution is probably not pretty, especially as it does not help on systems with 128bit reals or other sizes. However, it works fine and makes parse!real useable on ARM.

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.

@jpf91
Copy link
Contributor Author

jpf91 commented Jan 25, 2014

Ping @donc and @ibuclaw our phobos math experts ;-)

I know this solution is not exactly pretty but we need some kind of solution for ARM and as this is only a internal change it could be replaced with a better, more generic, solution at any time.

BTW: The whitespace-ignoring diff is easier to read: https://github.com/D-Programming-Language/phobos/pull/1862/files?w=0

@alexrp
Copy link
Member

alexrp commented Jan 25, 2014

This seems an OK solution for now to me, but I'll defer merging to @donc or @ibuclaw.

@jpf91
Copy link
Contributor Author

jpf91 commented Jan 31, 2014

ping

// left justify mantissa
while (msdec >= 0)
{ msdec <<= 1;
e2--;
Copy link
Member

Choose a reason for hiding this comment

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

Format nit pick (curly brace and statement on separate lines). Other than that, lgtm.

@jpf91
Copy link
Contributor Author

jpf91 commented Feb 1, 2014

Update: Made formatting in std.conv.parse!real consistent with rest of the module / phobos rules.

@ibuclaw
Copy link
Member

ibuclaw commented Feb 1, 2014

Auto-merge toggled on

@braddr
Copy link
Member

braddr commented Feb 1, 2014

Pull updated, auto_merge toggled off

ibuclaw added a commit that referenced this pull request Feb 1, 2014
[ARM] Implement parse!real for systems with 64bit reals
@ibuclaw ibuclaw merged commit 8fa9990 into dlang:master Feb 1, 2014
@jpf91 jpf91 deleted the arm-4 branch February 1, 2014 17:37
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