Introduce <sys/qmath.h>, a fixed-point math library from Netflix.
It has no dependencies and can be used from both userspaceThis makes it possible to perform mathematical operations
and the kernelfractional values without using floating point. For a general description of the idea, seeIt operates on Q
https://en.wikipedia.org/wiki/Q_%28number_format%29;numbers, which are integer-sized, foropaque structures
to hold chosen number of integer and fractional
For a general description of the idea, see
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