x86 32-bit: an unmasked FP exception traps after interval code has returned
还没有人认领这个 Issue。
评估
调研方向
Start with the x87 exception masking and control-word restoration paths described in the issue, then compare the Clang and GCC behavior in the linked Godbolt example. Check related issue #35 for context. Done when an unmasked overflow exception no longer traps after interval code returns on 32-bit x86.
由索引模型根据 Issue 内容生成。
描述
On 32-bit x86, where double arithmetic runs on the x87 unit, the rounding control masks every exception while interval code runs, so the overflow below doesn't trap inside it.
But the overflow flag stays pending, and restoring the caller's control word unmasks it again, so the trap fires afterwards: in Boost's own restore (Clang), or at the caller's next x87 instruction, which has nothing to do with the interval (GCC).
Related: #35.
- 主要语言
- 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 天 新手友好度 48/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 天内回复