29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
44#define M_MIN(a,b) ((a)<(b)?(a):(b))
45#define M_MAX(a,b) ((a)>(b)?(a):(b))
46#define M_ABS(a) ((a)<0?((a)*-1):(a))
47#define M_CLAMP(x,l,h) M_MIN(h,M_MAX(l,x))
M_uint64 M_uint64_prec_round(M_uint64 num, int currentDecimals, int wantedDecimals)
M_uint8 M_uint32_log2(M_uint32 n)
double M_math_round(double x)
size_t M_size_t_round_up_to_power_of_two(size_t n)
M_int64 M_sign_extend(M_uint64 x, size_t num_bits)
double M_math_modf(double x, double *iptr)
M_uint64 M_uint64_round_up_to_nearest_multiple(M_uint64 n, M_uint64 mul)
M_uint32 M_uint32_round_down_to_power_of_two(M_uint32 n)
M_bool M_uint64_is_power_of_two(M_uint64 n)
M_uint8 M_uint64_log2(M_uint64 n)
size_t M_size_t_round_down_to_power_of_two(size_t n)
M_uint32 M_uint32_round_up_to_power_of_two(M_uint32 n)
M_uint64 M_uint64_exp(M_uint64 num, int exponent)
M_bool M_size_t_is_power_of_two(size_t n)
int M_uint64_count_digits(M_uint64 num)
M_uint8 M_uint8_popcount(M_uint8 x)
M_uint8 M_uint64_popcount(M_uint64 num)
M_uint64 M_uint64_round_up_to_power_of_two(M_uint64 n)
M_uint64 M_uint64_round_down_to_power_of_two(M_uint64 n)
M_bool M_uint32_is_power_of_two(M_uint32 n)