|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <cstdint>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::universal |
Functions | |
| template<typename BitPatternType> | |
| constexpr unsigned | sw::universal::find_msb (const BitPatternType &x) |
| constexpr unsigned | sw::universal::find_msb (unsigned int x) |
| find most significant bit that is set | |
| constexpr unsigned | sw::universal::find_msb (unsigned long x) |
| find most significant bit that is set | |
| constexpr unsigned | sw::universal::find_msb (unsigned long long x) |
| find most significant bit that is set | |
| constexpr unsigned | sw::universal::find_msb (signed char x) |
| find most significant bit that is set | |
| constexpr unsigned | sw::universal::find_msb (short x) |
| find most significant bit that is set | |
| constexpr unsigned | sw::universal::find_msb (int x) |
| find most significant bit that is set | |
| constexpr unsigned | sw::universal::find_msb (long long x) |
| find most significant bit that is set | |
| constexpr unsigned | sw::universal::find_msb (long x) |