Skip to content

These module docs are in beta and may be incomplete.

modm:math:utils

Content

// Function
bool modm::isPositive(const float &a);
const T& modm::max(const T &a, const T &b);
const T& modm::max(const T &a, const T &b, Compare compare);
const T& modm::min(const T &a, const T &b);
const T& modm::min(const T &a, const T &b, Compare compare);
constexpr T modm::max(const T a, const T b, const T c);
constexpr bool modm::isBigEndian();
constexpr bool modm::isLittleEndian();
constexpr int8_t modm::leftmostBit(uint32_t value);
constexpr uint32_t modm::pow(uint32_t base, uint8_t exponent);
int16_t modm::fromBigEndian(int16_t value);
int16_t modm::fromLittleEndian(int16_t value);
int16_t modm::toBigEndian(int16_t value);
int16_t modm::toLittleEndian(int16_t value);
int32_t modm::fromBigEndian(int32_t value);
int32_t modm::fromLittleEndian(int32_t value);
int32_t modm::math::mac(int32_t result, int16_t a, int16_t b);
int32_t modm::math::mul(int16_t a, int16_t b);
int32_t modm::toBigEndian(int32_t value);
int32_t modm::toLittleEndian(int32_t value);
std::size_t modm::bitCount(uint16_t n);
std::size_t modm::bitCount(uint32_t n);
std::size_t modm::bitCount(uint8_t n);
uint16_t modm::bitReverse(uint16_t n);
uint16_t modm::fromBigEndian(uint16_t value);
uint16_t modm::fromLittleEndian(uint16_t value);
uint16_t modm::math::sqrt(uint32_t a);
uint16_t modm::swap(uint16_t n);
uint16_t modm::toBigEndian(uint16_t value);
uint16_t modm::toLittleEndian(uint16_t value);
uint16_t modm__sqrt32(uint32_t a);
uint32_t modm::bitReverse(uint32_t n);
uint32_t modm::fromBigEndian(uint32_t value);
uint32_t modm::fromLittleEndian(uint32_t value);
uint32_t modm::math::mul(uint16_t a, uint16_t b);
uint32_t modm::swap(uint32_t n);
uint32_t modm::toBigEndian(uint32_t value);
uint32_t modm::toLittleEndian(uint32_t value);
uint8_t modm::bitReverse(uint8_t n);
uint8_t modm::swap(uint8_t n);
void modm::swap(int16_t &a, int16_t &b);
void modm::swap(uint8_t &a, uint8_t &b);

Dependencies

modm:math:utils modm_math_utils modm: math: utils modm_architecture modm: architecture modm_math_utils->modm_architecture modm_math modm: math modm_math_utils->modm_math modm_architecture_gpio_expander modm: architecture: gpio.expander modm_architecture_gpio_expander->modm_math_utils modm_architecture_register modm: architecture: register modm_architecture_register->modm_math_utils modm_communication_xpcc modm: communication: xpcc modm_communication_xpcc->modm_math_utils modm_driver_ad7280a modm: driver: ad7280a modm_driver_ad7280a->modm_math_utils modm_driver_adc_sampler modm: driver: adc_sampler modm_driver_adc_sampler->modm_math_utils modm_driver_amsys5915 modm: driver: amsys5915 modm_driver_amsys5915->modm_math_utils modm_driver_bme280 modm: driver: bme280 modm_driver_bme280->modm_math_utils modm_driver_bmp085 modm: driver: bmp085 modm_driver_bmp085->modm_math_utils modm_driver_hclax modm: driver: hclax modm_driver_hclax->modm_math_utils modm_driver_hmc58x modm: driver: hmc58x modm_driver_hmc58x->modm_math_utils modm_driver_hmc6343 modm: driver: hmc6343 modm_driver_hmc6343->modm_math_utils modm_driver_l3gd20 modm: driver: l3gd20 modm_driver_l3gd20->modm_math_utils modm_driver_lis3dsh modm: driver: lis3dsh modm_driver_lis3dsh->modm_math_utils modm_driver_lsm303a modm: driver: lsm303a modm_driver_lsm303a->modm_math_utils modm_driver_pca9535 modm: driver: pca9535 modm_driver_pca9535->modm_math_utils modm_driver_tmp102 modm: driver: tmp102 modm_driver_tmp102->modm_math_utils modm_driver_vl6180 modm: driver: vl6180 modm_driver_vl6180->modm_math_utils modm_io modm: io modm_io->modm_math_utils modm_math_filter modm: math: filter modm_math_filter->modm_math_utils modm_math_geometry modm: math: geometry modm_math_geometry->modm_math_utils modm_platform_gpio modm: platform: gpio modm_platform_gpio->modm_math_utils modm_test_math modm: test: math modm_test_math->modm_math_utils modm_test_processing modm: test: processing modm_test_processing->modm_math_utils modm_ui_color modm: ui: color modm_ui_color->modm_math_utils modm_ui_display modm: ui: display modm_ui_display->modm_math_utils