A library for branch-free saturating arithmetic. Provides addition, subtraction, division, and multiplication of 32 and 64-bit signed and unsigned integers. "Saturate" meaning the values cannot underflow or overflow (instead are limited by their
_MAX values respectively).
Requires use of GNU extensions for
Uses explicit casting wherever possible. Possibly-negative left operand bitwise right shifting is implementation-defined (but not undefined behavior).