std.halffloat

Implement IEEE 754 half-precision binary floating point format binary16.

This a 16 bit type, and consists of a sign bit, a 5 bit exponent, and a 10 bit significand. All operations on HalfFloat are CTFE'able.

References: Wikipedia

Members

Structs

HalfFloat
struct HalfFloat

The half precision floating point type.

Templates

hf
template hf(float v)

User defined literal for Half Float.

Meta