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

Handle NAN in fp_from_exten() #131

Closed
PandTomB opened this issue Jan 31, 2018 · 1 comment
Closed

Handle NAN in fp_from_exten() #131

PandTomB opened this issue Jan 31, 2018 · 1 comment

Comments

@PandTomB
Copy link

For systems without long double and if SOFTFLOAT_CONVERSIONS is not an option, I would like to extend the function
fp_from_exten(...) to handle NAN:

if(v == 0.0) {
...
} else if (fp_is_nan(v)) {
*wrd1 = 0x7fff0000;
*wrd2 = 0xffffffff;
*wrd3 = 0xffffffff;
return;
}

@tonioni
Copy link
Owner

tonioni commented Jan 31, 2018

Done.

@tonioni tonioni closed this as completed Jan 31, 2018
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

No branches or pull requests

2 participants