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

◆ ceil()

static constexpr FASTLED_FORCE_INLINE u4x12 fl::u4x12::ceil ( u4x12 x)
inlinestaticconstexpr

Definition at line 119 of file u4x12.h.

119 {
120 return from_raw((x.mValue & ~(u16((SCALE) - 1))) +
121 ((x.mValue & u16((SCALE) - 1)) ? (SCALE) : 0));
122 }
static constexpr i32 SCALE
Definition u4x12.h:22
static constexpr FASTLED_FORCE_INLINE u4x12 from_raw(u16 raw) FL_NOEXCEPT
Definition u4x12.h:52

References u4x12(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, from_raw(), SCALE, and fl::x.

+ Here is the call graph for this function: