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

◆ ceil() [2/2]

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

Definition at line 137 of file s16x16.h.

137 {
138 return from_raw((x.mValue & ~(i32((SCALE) - 1))) +
139 ((x.mValue & i32((SCALE) - 1)) ? (SCALE) : 0));
140 }
static constexpr i32 SCALE
Definition s16x16.h:23
static constexpr FASTLED_FORCE_INLINE s16x16 from_raw(i32 raw) FL_NOEXCEPT
Definition s16x16.h:54

References s16x16(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, 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: