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

◆ floor_frac()

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

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

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

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

Referenced by pnoise2d_raw(), and pnoise3d_raw().

+ Here is the caller graph for this function: