Wheefun I/O Library  0.0.5
Useful I/O Primitives.
Public Attributes | List of all members
wfio_ieee754_b16_t Union Reference

A half-precision IEEE 754 binary floating point value (binary16). More...

#include <ieee754.h>

Public Attributes

struct {
   wfio_uint16_t   significand:10
 
   wfio_uint16_t   exponent:5
 
   wfio_uint16_t   sign:1
 
bits
 The bit pattern for this number.
 
wfio_sint16_t si
 The raw signed 16-bit integer representation of this number.
 
wfio_uint16_t ui
 The raw unsigned 16-bit integer representation of this number.
 

Detailed Description

A half-precision IEEE 754 binary floating point value (binary16).

This type arises from IEEE 754-2008 and represents a half-precision floating point number. This can fit within exactly 16 bits and may be used in situations where the range does not exceed ± ~2^15. in total, there are 11 bits of precision in the significand.

Member Data Documentation

◆ exponent

wfio_uint16_t wfio_ieee754_b16_t::exponent

This number's exponent

◆ sign

wfio_uint16_t wfio_ieee754_b16_t::sign

This number's sign bit.

◆ significand

wfio_uint16_t wfio_ieee754_b16_t::significand

This number's significand.


The documentation for this union was generated from the following file: