MCPcopy Create free account
hub / github.com/FastLED/FastLED / asin_impl_float

Function asin_impl_float

src/fl/math/math.cpp.hpp:544–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544float asin_impl_float(float value) {
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}
556
557double asin_impl_double(double value) {
558#if FL_MATH_USE_LIBM

Callers 3

acos_impl_floatFunction · 0.85
asinfFunction · 0.85
asinFunction · 0.85

Calls 1

asinfFunction · 0.85

Tested by

no test coverage detected