|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
A float's magnitude as its bit pattern, for compares without the FPU. More...
A float's magnitude as its bit pattern, for compares without the FPU.
With the sign bit cleared, an IEEE 754 single's bits order as its magnitude does, and an infinity or a NaN reads above every finite value. A compare of two such words is an integer compare, with no FPU compare.
Definition in file magnitude.hpp.
#include <cstdint>#include <cstring>Go to the source code of this file.
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::math |
| Domain-neutral math: constants, clamp, interpolation. | |
Functions | |
| uint32_t | sbl::math::magnitude_bits (float x) |
| x's bits with the sign cleared. | |