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

Method sqrt

src/fl/math/fixed_point/base.h:209–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 static constexpr FASTLED_FORCE_INLINE Derived sqrt(Derived x) {
210 return x.mValue <= 0 ? Derived() : sqrt_impl(x, fl::bool_constant<traits::USE_ISQRT32>());
211 }
212
213 private:
214 // sqrt implementation for i16 types (use isqrt32)

Callers

nothing calls this directly

Calls 2

sqrtFunction · 0.85
DerivedClass · 0.50

Tested by

no test coverage detected