-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Recalculate lerp if we got infinity. Eliminates some overflows. #1918
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
f762d9d
Recalculate lerp if we got infinity. Eliminates some overflows.
fsb4000 96ef790
rename test method and change INFINITY to numeric_limits<_Ty>::infini…
fsb4000 337fc81
fix more tests
fsb4000 4cb06ef
remove unneeded _STD
fsb4000 1d4c290
stl already has constexpr isinf
fsb4000 bbfb060
Clear FE_OVERFLOW exception flag
fsb4000 13c578f
include <cfenv> instead of <fenv.h>
fsb4000 3e7ab76
Check different rounding modes
fsb4000 7384454
add some comments
fsb4000 18fd0ed
Exception flags could have already been set before calling lerp
fsb4000 c06a9d3
use default ctor and dtor
fsb4000 c5404ee
use existing code for constexpr signbit
fsb4000 d82177b
use _Pretty variable names
fsb4000 6bc971e
use fma
fsb4000 c202089
use named functions instead of lambdas to reduce duplication between …
fsb4000 66c6818
Move logic into _Linear_for_lerp. Don't overflow in constant expression.
fsb4000 6e18a9d
fix collision with macro 'max'
fsb4000 30b4a68
add missing `#include <limits>`
fsb4000 672b380
we don't use _Signbit anymore
fsb4000 e71e883
we don't use <type_traits> anymore
fsb4000 b2b1b2b
use `<climits>` instead of `<limits>`
fsb4000 43584bf
use remove_cv_t and actual header is `<cfloat>`
fsb4000 b288a58
use variable templates
fsb4000 b541901
Merge branch 'microsoft:main' into fix1917
fsb4000 7a9ad12
Merge branch 'main' into fix1917
fsb4000 5b1f373
Merge branch 'main' into fix1917
fsb4000 76d0fe0
Merge branch 'microsoft:main' into fix1917
fsb4000 8ded82a
Merge branch 'main' into fix1917
fsb4000 be88a0d
add short description for test
fsb4000 aa3cb96
Merge branch 'microsoft:main' into fix1917
fsb4000 19bd20e
Merge branch 'main' into fix1917 and fix conflicts
fsb4000 838cf8f
change test name
fsb4000 9f2d248
add a test for `float` and improve the estimate of the inequality
fsb4000 26ed8e2
Merge branch 'main' into fix1917
fsb4000 f986102
simplify the condition
fsb4000 77adb6c
Move comment within the branch it describes.
StephanTLavavej 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
There are no files selected for viewing
This file contains hidden or 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 hidden or 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.
We need to find that Twitter thread mocking our huge implementation of
lerp
to let them know we've added another 25 lines. (No change requested.)