x86: intervals lose containment when linking with -ffast-math

オープン
#74 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 の本文から書いたものです。

説明

godbolt

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時間
マージ済み PR(30日)
7

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

boostorg/interval のほかの issue

boostorg/interval の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。