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

◆ abs() [2/2]

template<typename Derived, int IntBits, int FracBits>
static constexpr FASTLED_FORCE_INLINE Derived fl::fixed_point_base< Derived, IntBits, FracBits >::abs ( Derived x)
inlinestaticconstexpr

Definition at line 135 of file base.h.

135 {
136 return Derived::from_raw(x.mValue < 0 ? -x.mValue : x.mValue);
137 }
raw_type mValue
Definition base.h:41

References FASTLED_FORCE_INLINE, and fl::x.