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

◆ ceil()

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

Definition at line 132 of file u12x4.h.

132 {
133 return from_raw((x.mValue & ~(u16((SCALE) - 1))) +
134 ((x.mValue & u16((SCALE) - 1)) ? (SCALE) : 0));
135 }
static constexpr i32 SCALE
Definition u12x4.h:22
static constexpr FASTLED_FORCE_INLINE u12x4 from_raw(u16 raw) FL_NOEXCEPT
Definition u12x4.h:41

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

+ Here is the call graph for this function: