Half-precision floating point
=============================


== Subject

PAS moments L0 data contains the following moments:

- density : int16_t
- velocity : int16_t * 3
- pressure_tensor : float16_t * 6

float16_t isn't a natural data type for common C/C++ compiler

We have to find an external library to handle them

== Solution

C software library was found in python numpy libraries.

Source : https://github.com/numpy/numpy/blob/master/numpy/core/src/npymath/halffloat.c[]

Code : link:documents/halffloat.c[]

This code was rewritten, to suppress numpy dependencies, and integrated in:

link:software/tools/src/TYPES.c[]