Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
This module was written based on http://hackage.haskell.org/package/reinterpret-cast-0.1.0/docs/src/Data-ReinterpretCast-Internal-ImplArray.html.
Implements casting via a 1-elemnt STUArray, as described in http://stackoverflow.com/a/7002812/263061.
- floatToWord :: Float -> Word32
- wordToFloat :: Word32 -> Float
- doubleToWord :: Double -> Word64
- wordToDouble :: Word64 -> Double