FastLED 3.9.15
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 64 of file perlin_q16.cpp.hpp.

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

References FASTLED_FORCE_INLINE, FP_BITS, and FP_ONE.

Referenced by pnoise2d_raw().

+ Here is the caller graph for this function: