x86: intervals lose containment when linking with -ffast-math
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- cpp
- 领域
- performance
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- C++
- 星标
- 30
- 派生
- 49
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 7
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
boostorg/interval 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 4/5 3-5 天 新手友好度 44/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 10/100
-
Code behaves differently if compiled with MSVC vs GCC可能已有人在做 @reach2sayan 于 35 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 25/100
查看 boostorg/interval 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 82/100
psi29a/d2decomped#691 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
CachyOS/packageinstaller#144 ·
维护者通常 1 天内回复
-
prio:low type:bug
难度 2/5 1-3 小时 新手友好度 72/100
NatronGitHub/Natron#1638 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 82/100
TomerAberbach/profiler-md#951 ·
维护者通常 1 天内回复
-
area:readers low-priority
难度 2/5 1-3 小时 新手友好度 62/100
NatronGitHub/openfx-arena#214 ·
维护者通常 1 天内回复