@hackage fp-ieee0.1.0.6
IEEE 754-2019 compliant operations
Categories
License
BSD-3-Clause
Maintainer
minorinoki@gmail.com
Links
Versions
Installation
Dependencies (6)
- base >=4.12 && <4.23
- float128 >=0.1 && <0.2
- ghc-bignum >=1.0 && <1.4
- half >=0.3 && <0.4
- integer-gmp >=1.0 && <1.1
- integer-logarithms >=1 && <1.1 Show all…
Dependents (3)
@hackage/rounded-hw, @hackage/brush-strokes, @hackage/copilot-bluespec
Package Flags
pure-hs
(off by default)
Disable FFI
sse4_1
(off by default)
Use SSE4.1 instructions on x86
fma3
(off by default)
Use FMA3 instructions on x86. On GHC 9.8 or later, this flag enables use of FMA primitives.
f16c
(off by default)
Use F16C instructions on x86
float128
(off by default)
Support Float128 via float128 package
half
(off by default)
Support Half (float16) via half package
integer-gmp
(on by default)
Use integer-gmp package on GHC 8.x
ghc-bignum
(on by default)
Use ghc-bignum package on GHC 9.x
fp-ieee: IEEE 754 operations for floating-point types
This library provides IEEE 754-compliant operations, including
fusedMultiplyAdd.- correctly-rounding versions of
fromInteger. realFloatToFrac, which correctly handles signed zeros, infinities, and NaNs (unlikerealToFrac).
Some operations (e.g. fusedMultiplyAdd) can make use of the native instruction in the architecture via C FFI, or GHC 9.8's FMA primitives.
For non-native targets, "Pure Haskell" mode is supported via a package flag.
Most operations require only RealFloat constraint, but RealFloatNaN is needed by some operations that access the sign and payload of NaNs.