#include "core/Abort.h"
#include "core/DataTypes.h"
#include "core/debug/Debug.h"
#include <type_traits>
Classes | |
struct | walberla::math::uintFromBitWidth< size > |
struct | walberla::math::uintFromBitWidth< 8 > |
struct | walberla::math::uintFromBitWidth< 16 > |
struct | walberla::math::uintFromBitWidth< 32 > |
struct | walberla::math::uintFromBitWidth< 64 > |
struct | walberla::math::leastUnsignedInteger< minSize > |
Provides the smallest unsigned integer type that has at least minSize bits. More... | |
Namespaces | |
walberla | |
\file TimestepTracker.h \ingroup lbm \author Frederik Hennig frede rik. henni g@fa u.de | |
walberla::math | |
Macros | |
#define | msbLT(n) n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n |
Functions | |
template<typename UINT > | |
bool | walberla::math::uintIsEven (const UINT value) |
Returns true only if 'value' is an even number. More... | |
template<typename UINT > | |
bool | walberla::math::uintIsPowerOfTwo (const UINT value) |
Returns true only if 'value' (must be an unsigned integer) is a power of 2 (http://graphics.stanford.edu/~seander/bithacks.html) More... | |
template<typename UINT > | |
UINT | walberla::math::uintPow2 (const UINT exp) |
Returns the result of 2^exp. More... | |
template<typename UINT > | |
UINT | walberla::math::uintPow4 (UINT exp) |
Returns the result of 4^exp. More... | |
template<typename UINT > | |
UINT | walberla::math::uintPow8 (UINT exp) |
Returns the result of 8^exp. More... | |
template<typename UINT > | |
UINT | walberla::math::uintPow16 (UINT exp) |
Returns the result of 16^exp. More... | |
template<typename UINT > | |
uint_t | walberla::math::uintMSBPosition (UINT value) |
Calculation of the position of the most significant bit of a variable of type UINT. More... | |
template<> | |
uint_t | walberla::math::uintMSBPosition< uint64_t > (uint64_t value) |
template<> | |
uint_t | walberla::math::uintMSBPosition< uint32_t > (uint32_t value) |
template<> | |
uint_t | walberla::math::uintMSBPosition< uint16_t > (uint16_t value) |
template<> | |
uint_t | walberla::math::uintMSBPosition< uint8_t > (uint8_t value) |
constexpr uint_t | walberla::math::leastUnsignedIntegerBitWidth (uint_t width) |
Variables | |
static const uint8_t | walberla::math::msbLookupTable [256] |
#define msbLT | ( | n | ) | n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n |