Home
last modified time | relevance | path

Searched refs:kln2 (Results 1 - 6 of 6) sorted by relevance

/third_party/musl/porting/liteos_a/kernel/src/math/
H A D__expo2f.c3 /* k is such that k*ln2 has minimal relative error and x - kln2 > log(FLT_MIN) */
5 static const float kln2 = 0x1.45c778p+7f; variable
16 return expf(x - kln2) * (sign * scale) * scale; in __expo2f()
H A D__expo2.c3 /* k is such that k*ln2 has minimal relative error and x - kln2 > log(DBL_MIN) */
5 static const double kln2 = 0x1.62066151add8bp+10; variable
16 return exp(x - kln2) * (sign * scale) * scale; in __expo2()
/third_party/musl/src/math/
H A D__expo2f.c3 /* k is such that k*ln2 has minimal relative error and x - kln2 > log(FLT_MIN) */
5 static const float kln2 = 0x1.45c778p+7f; variable
16 return expf(x - kln2) * (sign * scale) * scale; in __expo2f()
H A D__expo2.c3 /* k is such that k*ln2 has minimal relative error and x - kln2 > log(DBL_MIN) */
5 static const double kln2 = 0x1.62066151add8bp+10; variable
16 return exp(x - kln2) * (sign * scale) * scale; in __expo2()
/third_party/musl/src/complex/
H A D__cexp.c31 static const double kln2 = 1246.97177782734161156; /* k * ln2 */ variable
46 * We use exp(x) = exp(x - kln2) * 2**k, carefully chosen to in __frexp_exp()
47 * minimize |exp(kln2) - 2**k|. We also scale the exponent of in __frexp_exp()
51 exp_x = exp(x - kln2); in __frexp_exp()
H A D__cexpf.c31 static const float kln2 = 162.88958740F; /* k * ln2 */ variable
44 exp_x = expf(x - kln2); in __frexp_expf()

Completed in 2 milliseconds