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

◆ floor_frac()

FASTLED_FORCE_INLINE void fl::perlin_q16::floor_frac ( fl::i32 fp16,
int & ifloor,
fl::i32 & frac16 )
staticprivate

Definition at line 65 of file perlin_q16.cpp.hpp.

66 {
67 ifloor = fp16 >> FP_BITS;
68 frac16 = fp16 & (FP_ONE - 1); // Already Q16, no shift needed
69}
static constexpr fl::i32 FP_ONE
Definition perlin_q16.h:34
static constexpr int FP_BITS
Definition perlin_q16.h:33

References FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, FP_BITS, and FP_ONE.

Referenced by pnoise2d_raw().

+ Here is the caller graph for this function: