const Constants = struct big_bases: [37]Limbbig_bases[b] is the biggest power of b that fit in a single Limb i.e. big_bases[b] = b^k < 2^@bitSizeOf(Limb) and b^(k+1) >= 2^@bitSizeOf(Limb)
digits_per_limb: [37]u8digits_per_limb[b] is the value of k used in the previous field
23
24
25
26
27
28
29const Constants = struct {
// big_bases[b] is the biggest power of b that fit in a single Limb
// i.e. big_bases[b] = b^k < 2^@bitSizeOf(Limb) and b^(k+1) >= 2^@bitSizeOf(Limb)
big_bases: [37]Limb,
// digits_per_limb[b] is the value of k used in the previous field
digits_per_limb: [37]u8,
}
Comptime-computed constants for supported bases (2 - 36) all values are set to 0 for bases 0 - 1, to make it possible to access a constant for a given base b using
constants.value[b]