libfxd 0.2.dev
A fixed-point library for C++.
|
Round down, and clamp on overflow. More...
Functions | |
template<fixed_point Fxd> | |
constexpr Fxd | div (Fxd a, Fxd b) noexcept |
Divide rounding down, clamp on overflow. | |
template<fixed_point Fxd> | |
constexpr Fxd | mul (Fxd a, Fxd b) noexcept |
Multiply rounding down, clamp on overflow. | |
Round down, and clamp on overflow.
|
constexprnoexcept |
Divide rounding down, clamp on overflow.
Definition at line 304 of file saturate.hpp.
|
constexprnoexcept |
Multiply rounding down, clamp on overflow.
Definition at line 317 of file saturate.hpp.