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

◆ ceil() [2/2]

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

Definition at line 126 of file base.h.

126 {
127 return Derived::from_raw((x.mValue & ~(raw_type((Derived::SCALE) - 1))) +
128 ((x.mValue & raw_type((Derived::SCALE) - 1)) ? (Derived::SCALE) : 0));
129 }
typename traits::raw_type raw_type
Definition base.h:31
raw_type mValue
Definition base.h:41

References FASTLED_FORCE_INLINE, and fl::x.