zig icon indicating copy to clipboard operation
zig copied to clipboard

std: use `math` overflow helpers instead of builtins

Open sno2 opened this issue 2 years ago • 0 comments

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.

sno2 avatar Nov 30 '23 05:11 sno2