Lines Matching refs:x
46 union { float f; int32_t s; } x = { .f = _x }; in lc3_ldexpf() local
48 if (x.s & LC3_IEEE754_EXP_MASK) in lc3_ldexpf()
49 x.s += exp << LC3_IEEE754_EXP_SHL; in lc3_ldexpf()
51 return x.f; in lc3_ldexpf()
61 union { float f; uint32_t u; } x = { .f = _x }; in lc3_frexpf() local
63 int e = (x.u & LC3_IEEE754_EXP_MASK) >> LC3_IEEE754_EXP_SHL; in lc3_frexpf()
66 x.u = (x.u & ~LC3_IEEE754_EXP_MASK) | in lc3_frexpf()
69 return x.f; in lc3_frexpf()
77 static inline float lc3_exp2f(float x) in lc3_exp2f() argument
99 v.f = x + 0x1.8p20f; in lc3_exp2f()
101 x -= v.f - 0x1.8p20f; in lc3_exp2f()
109 y.f = ( p[0]) * x; in lc3_exp2f()
110 y.f = (y.f + p[1]) * x; in lc3_exp2f()
111 y.f = (y.f + p[2]) * x; in lc3_exp2f()
112 y.f = (y.f + p[3]) * x; in lc3_exp2f()
127 static inline float lc3_log2f(float x) in lc3_log2f() argument
137 x = lc3_frexpf(x, &e); in lc3_log2f()
139 y = ( c[0]) * x; in lc3_log2f()
140 y = (y + c[1]) * x; in lc3_log2f()
141 y = (y + c[2]) * x; in lc3_log2f()
142 y = (y + c[3]) * x; in lc3_log2f()
155 static inline float lc3_log10f(float x) in lc3_log10f() argument
157 return log10f(2) * lc3_log2f(x); in lc3_log10f()
168 static inline int32_t lc3_db_q16(float x) in lc3_db_q16() argument
209 union { float f; uint32_t u; } x2 = { .f = x*x }; in lc3_db_q16()