-
Notifications
You must be signed in to change notification settings - Fork 100
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
Improve fmin/fmax #51
Conversation
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.
Rebase the latest "master" branch which checks C/C++ source files for consistent style.
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.
You should explain the IEEE754-201x semantics of fmin/fmax in git commit messages.
8476893
to
686d398
Compare
I think I can pack the code into a function, since the code of fmin and the one of fmax is similar. |
You can introduce some macros as what SoftFP does. |
Fix the conflicts caused by recent directory structure changes. |
Passed 2 more test in riscv-arch-test. Supports of fmin and fmax is complete. In IEEE 754-201x, fmin(x,y)/fmax(x,y) is defined as: - min(x,y)/max(x,y) if both x and y are numbers - if one is NAN and another is a number, return the number - if both are NAN, return NAN This operation raises invalid_operation when receiving SNAN.
Passed 2 more tests in riscv-arch-test.
Support of fmin and fmax is complete.