This package supplies half-precision floating point values w/ 1 bit of sign, 5 bits of exponent, 11 bits of mantissa trailing a leading 1 bit with proper underflow.
These arise commonly in GPU applications.
Contributions and bug reports are welcome!
Please feel free to contact me through github or on the #haskell IRC channel on irc.freenode.net.
Avoid the new warnings for missing pattern synonym signatures on GHC 8
Fixed an issue with
Storablethat was causing crashing for some users.
Added support for older GHCs still.
unsafeShiftRwas only added in 7.4.
- Added support for older GHCs. On GHC < 7.8 the pattern synonyms are disabled.
Removed need for
Fixed source repository location
fromHalffor easier unqualified use.
- Added a
CTYPEto the Half declaration so that it can be used with
CApiFFIas an unsigned short.