Commit 718ee31e21
Changed files (1)
lib
std
math
lib/std/math/powi.zig
@@ -13,6 +13,7 @@ const testing = std.testing;
/// Errors:
/// - Overflow: Integer overflow or Infinity
/// - Underflow: Absolute value of result smaller than 1
+///
/// Edge case rules ordered by precedence:
/// - powi(T, x, 0) = 1 unless T is i1, i0, u0
/// - powi(T, 0, x) = 0 when x > 0