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

◆ sign() [2/2]

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

Definition at line 139 of file base.h.

139 {
140 return x.mValue > 0 ? 1 : (x.mValue < 0 ? -1 : 0);
141 }
raw_type mValue
Definition base.h:41

References FASTLED_FORCE_INLINE, and fl::x.