fn pow10(comptime y: comptime_int) comptime_int
fn pow10(comptime y: comptime_int) comptime_int { if (y == 0) return 1; var squaring = 0; var s = 1; while (s <= y) : (s <<= 1) { squaring += 1; } squaring -= 1; var result = 10; for (0..squaring) |_| { result *= result; } const rest_exp = y - (1 << squaring); return result * pow10(rest_exp); }