FastLED 3.10.8
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 FASTLED_FORCE_INLINE s12x4 from_raw(i16 raw) FL_NO_EXCEPT
Definition s12x4.h:42
static constexpr i32 SCALE
Definition s12x4.h:23

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

+ Here is the call graph for this function: