summaryrefslogtreecommitdiff
path: root/src/bigtab.c
blob: 483ded7545a32012dffd3fe71a1fba0340e9f97e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int ref2(int i, int x, int y);
static short table[730][3][244];

void bigtab_init(void)
{
	for (int i = 0; i < 729; i++)
	for (int x = 0; x < 3; x++)
	for (int y = 243; y > 0; y /= 3)
		table[i][x][y] = ref2(i, x, y);
}

int bigtab(int i, int x, int y)
{
	return table[i][x][y];
}