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

Method rsqrt

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

Source from the content-addressed store, hash-verified

226 public:
227
228 static constexpr FASTLED_FORCE_INLINE Derived rsqrt(Derived x) {
229 return sqrt(x).mValue == 0
230 ? Derived()
231 : Derived::from_raw(static_cast<raw_type>(1) << FRAC_BITS) / sqrt(x);
232 }
233
234 static FASTLED_FORCE_INLINE Derived pow(Derived base, Derived exp) {
235 if (base.mValue <= 0) return Derived();

Callers

nothing calls this directly

Calls 2

sqrtFunction · 0.85
DerivedClass · 0.50

Tested by

no test coverage detected