JuliaLang/julia

Granular `@fastmath` flags

Open

#49.890 aperta il 19 mag 2023

Vedi su GitHub
 (3 commenti) (6 reazioni) (0 assegnatari)Julia (5773 fork)batch import
featuregood first issuehelp wanted

Metriche repository

Star
 (48.709 star)
Metriche merge PR
 (Merge medio 20g 6h) (157 PR mergiate in 30 g)

Descrizione

@fastmath is currently an all-or-nothing construct: one opts into every available flag (which is subject to change with new LLVM versions) by using this macro. There is no syntax to invoke a specific subset of the available flags.

A syntax for opt-in flags like @fastmath (;reassoc=true,contract=true,nsz=true) EXPR would be welcome for a more controlled @fastmath experience.

Guida contributor