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

◆ floor_frac_i16()

FASTLED_FORCE_INLINE void fl::perlin_i16_optimized::floor_frac_i16 ( fl::i32 fp16,
int & ifloor,
fl::i16 & frac16 )
staticprivate

Definition at line 70 of file perlin_i16_optimized.cpp.hpp.

70 {
71 ifloor = fp16 >> FP_BITS;
72 frac16 = static_cast<fl::i16>(fp16 & (FP_ONE - 1)); // Cast to i16
73}
static constexpr fl::i32 FP_ONE
static constexpr int FP_BITS

References FASTLED_FORCE_INLINE, FP_BITS, and FP_ONE.

Referenced by pnoise2d_raw().

+ Here is the caller graph for this function: