saturating
saturating copied to clipboard
C++ header only library for saturation arithmetic functions and always saturating types.
Results
2
saturating issues
Sort by
recently updated
recently updated
newest added
For integer arithemtic I think it would be beneficial to make use of `__builtin_sub_overflow()` and `__builtin_mul_overflow()` since they can utilize ALU flags indicating overflow without having to cast to a...
This handles the scenario in which the user tries to initialize a saturating type with an out-of-range value.