libfxd 0.2.dev
A fixed-point library for C++.
|
Round up. More...
Functions | |
template<fixed_point Fxd> | |
constexpr Fxd | ldexp (Fxd x, int exp) noexcept |
Same as std::ldexp() . | |
template<fixed_point Fxd> | |
constexpr Fxd | div (Fxd a, Fxd b) noexcept |
Divide rounding up. | |
template<fixed_point Fxd> | |
constexpr Fxd | mul (Fxd a, Fxd b) noexcept |
Multiply rounding up. | |
Round up.
Namespace for functions that round up.
|
constexprnoexcept |
Divide rounding up.
Definition at line 65 of file round-div.hpp.
|
constexprnoexcept |
|
constexprnoexcept |
Multiply rounding up.
Definition at line 77 of file round-mul.hpp.