fast-math

Non IEEE-754 compliant compile-time floating-point optimisations

LTS Haskell 22.14:1.0.2
Stackage Nightly 2024-03-28:1.0.2
Latest on Hackage:1.0.2

See all snapshots fast-math appears in

BSD-3-Clause licensed by Liyang HU and Mike Izbicki
Maintained by [email protected]
This version can be pinned in stack with:fast-math-1.0.2@sha256:91181eb836e54413cc5a841e797c42b2264954e893ea530b6fc4da0dccf6a8b7,1387
Depends on 1 package(full list with versions):
Used by 1 package in lts-20.21(full list with versions):

The Numeric.FastMath module brings into scope many unsafe RULES for Floats and Doubles that can greatly improve run time performance. It is roughly equivalent to gcc's -ffast-math compiler flag. Optimisation (at least -O1) must be enabled for any RULES to take effect.

These rules are unsafe because they don't strictly adhere to the IEEE-754 regulations and may subtly change the results of your numeric computations. See the README on github for more details.