MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
SmallFloat.cpp File Reference
#include "SmallFloat.hpp"
Include dependency graph for SmallFloat.cpp:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
namespace  MayaFlux::Kakshya

Functions

double MayaFlux::Kakshya::decode_small_float (uint32_t bits, int exponent_bits, int mantissa_bits) noexcept
 Decode a binary floating point pattern with the given field widths.
uint32_t MayaFlux::Kakshya::encode_small_float (double value, int exponent_bits, int mantissa_bits) noexcept
 Encode a double as a binary floating point pattern with the given field widths.
uint16_t MayaFlux::Kakshya::float_to_half (float value) noexcept
 IEEE 754 binary32 to binary16, rounding to nearest with ties to even.
float MayaFlux::Kakshya::half_to_float (uint16_t bits) noexcept
 IEEE 754 binary16 to binary32.