IT
games/alis / src / Alis / ScriptVars.php · commit 9c722cf
<?phpnamespace App\Alis;/** File-scope variables of alis/src/script.c (MIT, Olivier Huguenot, Vadim Kindl). */final class ScriptVars{    /** C: s8 tfibo[16] */    public static array $tfibo = [        -0x22, -0x15, -0x0d, -0x08,        -0x05, -0x03, -0x02, -0x01,        0x01, 0x02, 0x03, 0x05,        0x08, 0x0d, 0x15, 0x22];    /** C: static u8 mac3[256] of invdigit() (as a 256-byte strtr() map, '' until built) */    public static string $mac3 = '';    /** PORT: reusable host scratch buffer replacing script_load()'s malloc'd unpack buffer. */    public static int $scratch = 0;    public static int $scratch_sz = 0;    /** PORT: lookup tables of tochunky() (planar -> chunky), built on first use. */    public static array $spread4 = [];    public static array $spread2 = [];}