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

◆ fade()

fl::i32 fl::perlin_s16x16::fade ( fl::i32 t,
const fl::i32 * table )
static

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

70 {
71 fl::u32 idx = static_cast<fl::u32>(t) >> 16;
72 fl::i32 frac = t & 0xFFFF;
73 fl::i32 a = table[idx];
74 fl::i32 b = table[idx + 1];
75 return a + static_cast<fl::i32>(
76 (static_cast<fl::i64>(frac) * (b - a)) >> 16);
77}

References fl::FL_NO_EXCEPT, and fl::t.

Referenced by fl::perlin_s16x16_simd::pnoise2d_raw_simd4_vec().

+ Here is the caller graph for this function: