zig
zig copied to clipboard
`std.math`: Better `comptime_float` and `comptime_int` support in `std.math` functions
Adds comptime_float support to
approxEqAbsapproxEqRel- various
std.math.floatfunctions isNormalisFiniteisPositiveZeroisNegativeZerofrexpldexppow
Also adds comptime_int support to powi.
Starts adoption of the comptime_float behavior described in https://github.com/ziglang/zig/issues/21205#issuecomment-2613393221
Closes: #23602