fast-math-1.0.2: Non IEEE-754 compliant compile-time floating-point optimisations

Safe HaskellNone
LanguageHaskell2010

Numeric.FastMath.Approximation

Description

This module contains rewrite rules that may change the lowest order bits of a computation. They take advantage of:

  • distributivity
  • repeated addition/multiplication
  • exponentiation rules

All of these RULES should be safe in the presence of NaN and Infinity

Importing this module is similar to compiling with gcc's -funsafe-math-operations.