// math — numeric helpers. Subset of Hare's math::; only the absolute- // value pair for the signed integer types we currently care about. The // return type is unsigned so that abs(I32_MIN) doesn't overflow. package math; export fn absi32(n: i32) u32 = { if (n < 0) { return (-n): u32; }; return n: u32; }; export fn absi64(n: i64) u64 = { if (n < 0) { return (-n): u64; }; return n: u64; };