cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Math functions particular to cxxomfort. More...
Namespaces | |
cxxomfort | |
Namespace of the cxxomfort library. | |
Functions | |
template<typename N > | |
CXXO_CONSTEXPR int | sign (N n) CXXO_NOEXCEPTNOTHROW |
Returns the sign of n . More... | |
template<typename I > | |
uintmax_t | factors (I n, uintmax_t f) CXXO_NOEXCEPTNOTHROW |
Returns the number of times that f appears as factor of n . More... | |
Math functions particular to cxxomfort.
CXXO_CONSTEXPR int cxxomfort::impl::sign | ( | N | n | ) |
Returns the sign of n .
Referenced by cxxomfort::impl::sign().
uintmax_t cxxomfort::impl::factors | ( | I | n, |
uintmax_t | f | ||
) |
Returns the number of times that f appears as factor of n .
n > 0
; f > 1
Referenced by cxxomfort::impl::factors().