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

◆ floor_frac()

void fl::perlin_s16x16::floor_frac ( fl::i32 fp16,
int & ifloor,
fl::i32 & frac24 )
static

Definition at line 63 of file perlin_s16x16.cpp.hpp.

64 {
65 ifloor = fp16 >> FP_BITS;
66 frac24 = (fp16 & (FP_ONE - 1)) << (HP_BITS - FP_BITS);
67}
static constexpr int HP_BITS
static constexpr int FP_BITS
static constexpr fl::i32 FP_ONE

References FP_BITS, FP_ONE, and HP_BITS.

Referenced by pnoise2d_raw(), and pnoise3d_raw().

+ Here is the caller graph for this function: