FastLED 3.9.15
Loading...
Searching...
No Matches

◆ asin_impl_float()

float fl::asin_impl_float ( float value)

Definition at line 544 of file math.cpp.hpp.

544 {
545#if FL_MATH_USE_LIBM
546 return ::asinf(value);
547#else
548 const float kPiHalf = 1.57079632679489661923f;
549 if (value >= 1.0f) return kPiHalf;
550 if (value <= -1.0f) return -kPiHalf;
551 const float denom = detail::sqrt_newton_<float>(1.0f - value * value);
552 if (denom == 0.0f) return value > 0.0f ? kPiHalf : -kPiHalf;
553 return detail::atan_full_<float>(value / denom);
554#endif
555}
F atan_full_(F u) FL_NOEXCEPT
Definition math.cpp.hpp:467
F sqrt_newton_(F value) FL_NOEXCEPT
Definition math.cpp.hpp:151
constexpr int type_rank< T >::value

References fl::detail::atan_full_(), fl::detail::sqrt_newton_(), and type_rank< T >::value.

Referenced by acos_impl_float(), asin(), and asinf().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: