1 #ifndef DataFormatsMathAPPROX_LOG_H 2 #define DataFormatsMathAPPROX_LOG_H 90 int e= (((xx.
i32) >> 23) & 0xFF) -127;
91 m.
i32 = (xx.
i32 & 0x007FFFFF) | 0x3F800000;
93 int adjust = (xx.
i32>>22)&1;
94 m.
i32 -= adjust << 23;
102 float p = approx_logf_P<DEGREE>(y);
110 #ifndef NO_APPROX_MATH 113 return unsafe_logf_impl<DEGREE>(x);
121 constexpr float MAXNUMF = 3.4028234663852885981170418348451692544e38f;
124 float res = unsafe_logf<DEGREE>(x);
126 return (x>0) ? res :std::numeric_limits<float>::quiet_NaN();
141 #endif // NO_APPROX_MATH constexpr float approx_logf_P< 2 >(float y)
constexpr float approx_logf_P< 7 >(float y)
constexpr float unsafe_logf(float x)
constexpr float approx_logf_P< 4 >(float y)
constexpr float approx_logf_P< 5 >(float y)
constexpr float approx_logf_P(float p)
constexpr float unsafe_logf_impl(float x)
constexpr float approx_logf_P< 8 >(float y)
constexpr float approx_logf_P< 6 >(float y)
constexpr float approx_logf_P< 3 >(float y)
constexpr float approx_logf(float x)