arduino-audio-tools
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
PseudoFloat.h File Reference
#include <cmath>
#include <cstdint>

Go to the source code of this file.

Classes

class  PseudoFloat
 Software "pseudo-float": a real number represented as a signed 16-bit mantissa plus a 16-bit exponent (value = mantissa * 2^exponent), computed with integer multiply/shift/compare only – no hardware floating-point instructions. This generalizes speexdsp's classic fixed-point trick of tracking a handful of wide-dynamic-range control variables as a normalized mantissa+exponent pair into a full, operator-overloaded numeric type usable as a drop-in replacement for float (see MDFFixedPoint in MDFEchoCancellation.h, which uses this class as the element type for the MDF echo canceller's sample/spectrum arrays and internal state, so the whole algorithm runs without native float arithmetic). More...
 

Namespaces

namespace  audio_tools
 Generic Implementation of sound input and output for desktop environments using portaudio.
 

Functions

bool operator!= (float a, PseudoFloat b)
 
PseudoFloat operator* (float a, PseudoFloat b)
 
PseudoFloat operator+ (float a, PseudoFloat b)
 
PseudoFloat operator- (float a, PseudoFloat b)
 
PseudoFloat operator/ (float a, PseudoFloat b)
 
bool operator< (float a, PseudoFloat b)
 
bool operator<= (float a, PseudoFloat b)
 
bool operator== (float a, PseudoFloat b)
 
bool operator> (float a, PseudoFloat b)
 
bool operator>= (float a, PseudoFloat b)