Definition at line 14 of file perlin_s8x8.cpp.hpp.
14 {
15 for (int i = 0; i <= 256; i++) {
16 fl::i16
t =
static_cast<fl::i16
>((i *
HP_ONE) / 256);
17 fl::i16 t2 =
static_cast<fl::i16
>((
static_cast<fl::i32
>(
t) *
t) >>
HP_BITS);
18 fl::i16 t3 =
static_cast<fl::i16
>((
static_cast<fl::i32
>(t2) *
t) >>
HP_BITS);
19 fl::i16 inner =
static_cast<fl::i16
>((
static_cast<fl::i32
>(
t) * (6 *
HP_ONE)) >>
HP_BITS);
21 inner =
static_cast<fl::i16
>((
static_cast<fl::i32
>(
t) * inner) >>
HP_BITS);
23 table[i] =
static_cast<fl::i32
>((
static_cast<fl::i32
>(t3) * inner) >>
HP_BITS);
24 }
25}
static constexpr fl::i32 HP_ONE
static constexpr int HP_BITS
References HP_BITS, HP_ONE, and fl::t.