-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
RFC: Ability to change rounding mode for all floats (cf. #2976) #3149
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
95dbacb
Add rounding modes to normal floating point arithmetic
andrioni 823b017
Add Float32 rounding mode tests
andrioni 1a13239
Integrate the new rounding modes with BigFloats
andrioni 451f21e
Export RoundAwayZero too (even though it only works for BigFloats)
andrioni 4f6ee0f
Stop hardcoding the `fenv.h` constants
andrioni 454f61a
Fix bug while parsing fenv_constants.h
andrioni 5a064b7
Renaming of the rounding modes
andrioni 54a4055
Fixes post-rebase
andrioni e314eba
Remove fenv_constants.jl, as it is auto-generated
andrioni 285b238
Documentation for the rounding modes (manual + stdlib)
andrioni 773b60e
Fix issue with fenv.h and Ubuntu 12.04
andrioni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixes post-rebase
- Loading branch information
commit 54a4055b6dd7ed93531552d25c083a0a25033ba6
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const JL_FE_UNDERFLOW = 0x0010 | ||
const JL_FE_OVERFLOW = 0x0008 | ||
const JL_FE_DIVBYZERO = 0x0004 | ||
const JL_FE_INVALID = 0x0001 | ||
const JL_FE_TONEAREST = 0x0000 | ||
const JL_FE_UPWARD = 0x0800 | ||
const JL_FE_DOWNWARD = 0x0400 | ||
const JL_FE_TOWARDZERO = 0x0c00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this file shouldn't be part of the commit
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.
Hm, I thought I removed it, but now I see I just added the file to
.gitignore
. Done, thanks.