half

Half-precision floating-point http://github.com/ekmett/half

Latest on Hackage:0.3

See all snapshots half appears in

BSD-3-Clause licensed by Edward A. Kmett
Maintained by Edward A. Kmett

Module documentation for 0.2.0.1

This version can be pinned in stack with:[email protected]:cfadc0b87a5d9c4cc9a3ab5d7a5524221ae88e962f812eb41beba7b39111ccce,904

half

Build Status

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.

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the #haskell IRC channel on irc.freenode.net.

-Edward Kmett

Changes

0.2.0.1

  • Fixed source repository location

0.2

  • Renamed toFloat to fromHalf for easier unqualified use.
  • Added a Read instance.

0.1.1

  • Added a CTYPE to the Half declaration so that it can be used with CApiFFI as an unsigned short.

0.1

  • Initial release
Depends on 1 package(full list with versions):
Used by 1 package in lts-2.22(full list with versions):