x86: intervals lose containment when linking with -ffast-math
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cpp
- Domain
- performance
Research direction
Start with the Godbolt example linked in the issue and compare the intervals with and without linking using -ffast-math. The issue shows that the upper bounds become 0 and 1, below the true values, so the fix is complete when those intervals contain the true values under that link setting. The payload does not name repository files or tests.
Written by the indexing model from the issue text.
Description
DBL_MIN/4 in [0x0.4p-1022, 0x0.4p-1022]
1+DBL_MIN/4 in [0x1p+0, 0x1.0000000000001p+0]
with -ffast-math on
DBL_MIN/4 in [0x0p+0, 0x0p+0]
1+DBL_MIN/4 in [0x1p+0, 0x1p+0]
The true values are 2^-1024 (0x0.4p-1022, about 5.6e-309) and 1 + 2^-1024. With the fast-math link, the upper bounds 0 and 1 are below them, so neither interval contains the true value.
- Dominant language
- C++
- Stars
- 30
- Forks
- 49
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 7
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/interval
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 4/5 3-5 days Newbie friendliness 44/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Code behaves differently if compiled with MSVC vs GCCPossibly taken @reach2sayan claimed this 35 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in boostorg/interval
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
psi29a/d2decomped#691 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CachyOS/packageinstaller#144 ·
Maintainers usually reply within 1 day
-
prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NatronGitHub/Natron#1638 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 82/100
TomerAberbach/profiler-md#951 ·
Maintainers usually reply within 1 day
-
area:readers low-priority
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
NatronGitHub/openfx-arena#214 ·
Maintainers usually reply within 1 day