Skip to main content

generate_antilog_table_small

Function generate_antilog_table_small 

Source
pub fn generate_antilog_table_small() -> [[u8; 10]; 100]
Expand description

Generate the small antilog table: uint8[10][100].

Indexed by [idx/100][idx%10] where idx is the full index (0-9999). The value is the correction to add to the main table entry. For a given idx: main covers idx rounded down to nearest 10, small adds the sub-10 correction.

Value = round(10^(idx/10000) * 1000) - main_table[idx/10] But since many indices share the same [row][col], the table stores a representative value. In practice it’s computed for the first occurrence (tens digit = 0).