FastLED 3.10.8
Loading...
Searching...
No Matches

◆ asin_impl_float()

float fl::asin_impl_float ( float value)

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

626 {
627#if FL_MATH_USE_LIBM
628 return ::asinf(value);
629#else
630 const float kPiHalf = 1.57079632679489661923f;
631 if (value >= 1.0f) return kPiHalf;
632 if (value <= -1.0f) return -kPiHalf;
633 const float denom = detail::sqrt_newton_<float>(1.0f - value * value);
634 if (denom == 0.0f) return value > 0.0f ? kPiHalf : -kPiHalf;
635 return detail::atan_full_<float>(value / denom);
636#endif
637}
F sqrt_newton_(F value) FL_NO_EXCEPT
Definition math.cpp.hpp:233
F atan_full_(F u) FL_NO_EXCEPT
Definition math.cpp.hpp:549
constexpr int type_rank< T >::value

References fl::detail::atan_full_(), FL_NO_EXCEPT, 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: