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

◆ ceil() [2/2]

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

Definition at line 112 of file s12x4.h.

112 {
113 return from_raw((x.mValue & ~(i16((SCALE) - 1))) +
114 ((x.mValue & i16((SCALE) - 1)) ? (SCALE) : 0));
115 }
static constexpr i32 SCALE
Definition s12x4.h:23
static constexpr FASTLED_FORCE_INLINE s12x4 from_raw(i16 raw) FL_NOEXCEPT
Definition s12x4.h:42

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

+ Here is the call graph for this function: