Introduce <sys/qmath.h>, a fixed-point math library from Netflix.
This makes it possible to perform mathematical operations
on
fractional values without using floating point. It operates on Q
numbers, which are integer-sized, opaque structures
initialized
to hold chosen number of integer and fractional
bits.
For a general description of the idea, see
https://en.wikipedia.org/wiki/Q_%28number_format%29;
for the actual API see the qmath(3) man page.
This is one of dependencies for the stats(3) framework.
Sponsored By: Klara Inc, Netflix
Obtained from: Netflix