Go to the source code of this file.
|
template<typename T > |
constexpr T | ipow (T base, unsigned int pow) |
| Constexpr function for computing integer power.
|
|
constexpr unsigned int | ilog10 (int n) |
| Constexpr integer base-10 logarithm.
|
|
◆ ilog10()
unsigned int ilog10 |
( |
int | n | ) |
|
|
constexpr |
Constexpr integer base-10 logarithm.
- Parameters
-
- Returns
- 10-log(n)
Definition at line 17 of file imath.h.
◆ ipow()
template<typename T >
T ipow |
( |
T | base, |
|
|
unsigned int | pow ) |
|
constexpr |
Constexpr function for computing integer power.
- Template Parameters
-
- Parameters
-
- Returns
- base^pow
Definition at line 10 of file imath.h.