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

Aperta
#74 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
performance

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
30
Fork
49
Merge medio
2g 15h
PR unite (30g)
7

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di boostorg/interval

Tutte le issue di boostorg/interval

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.