zig
zig copied to clipboard
std: use `math` overflow helpers instead of builtins
This patch replaces all usages of the @___WithOverflow builtins where the overflow result is simply read for erroring with the nicer math helpers that return error.Overflow. This cleaned up a bit of code and hopefully impresses the useful math functions on more Zig code later.