26 #define inline __inline
30 #define VORBIS_IEEE_FLOAT32 1
31 #ifdef VORBIS_IEEE_FLOAT32
39 ix.i = (
ix.i & 0x80000000U) | (0x3f800000U);
44 static inline float todB(
const float *
x){
50 ix.i =
ix.i&0x7fffffff;
51 return (
float)(
ix.i * 7.17711438e-7
f -764.6161886f);
54 #define todB_nn(x) todB(x)
63 #define todB(x) (*(x)==0?-400.f:log(*(x)**(x))*4.34294480f)
64 #define todB_nn(x) (*(x)==0.f?-400.f:log(*(x))*8.6858896f)
68 #define fromdB(x) (exp((x)*.11512925f))
79 #define toBARK(n) (13.1f*atan(.00074f*(n))+2.24f*atan((n)*(n)*1.85e-8f)+1e-4f*(n))
80 #define fromBARK(z) (102.f*(z)-2.f*pow(z,2.f)+.4f*pow(z,3.f)+pow(1.46f,z)-1.f)
81 #define toMEL(n) (log(1.f+(n)*.001f)*1442.695f)
82 #define fromMEL(m) (1000.f*exp((m)/1442.695f)-1000.f)
87 #define toOC(n) (log(n)*1.442695f-5.965784f)
88 #define fromOC(o) (exp(((o)+5.965784f)*.693147f))
static float unitnorm(float x)
static float todB(const float *x)
unsigned int ogg_uint32_t