FastLED 3.10.8
Loading...
Searching...
No Matches

◆ ceil() [2/2]

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

Definition at line 163 of file s16x16.h.

163 {
164 return from_raw((x.mValue & ~(i32((SCALE) - 1))) +
165 ((x.mValue & i32((SCALE) - 1)) ? (SCALE) : 0));
166 }
static constexpr i32 SCALE
Definition s16x16.h:25
static constexpr FASTLED_FORCE_INLINE s16x16 from_raw(i32 raw) FL_NO_EXCEPT
Definition s16x16.h:56

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

Referenced by fl::FlowFieldFP::drawDot().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: