authorgravatar for hi@mihaelm.commihael <hi@mihaelm.com> 2026-03-11 17:58:42+01:00
committergravatar for hi@mihaelm.commihael <hi@mihaelm.com> 2026-03-17 23:33:10+01:00
log888014c83724008194b4234d96dc3af3c86dc38a
tree2efbad1034e9d1c7380f4a258d309c8cdbd0647b
parentc38e6ed6862c4abfb6c3ab6c8cdd1ea13961969b
signaturebadge-check Signed by SSH key SHA256:aoFoShdYLdrqMichqKXSSieTKUfACUIDJHsKc4V2tQg

`libzigc`: `std.math` -> `math`

Remove the two uses of `std.math` since that namespace is already assigned to the `math` constant and used as such.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/c/math.zig+2-2
......@@ -70,7 +70,7 @@ fn acos(x: f64) callconv(.c) f64 {
7070}
7171
7272fn acosf(x: f32) callconv(.c) f32 {
73 return std.math.acos(x);
73 return math.acos(x);
7474}
7575
7676fn atan(x: f64) callconv(.c) f64 {
......@@ -177,7 +177,7 @@ fn pow10f(x: f32) callconv(.c) f32 {
177177}
178178
179179fn rint(x: f64) callconv(.c) f64 {
180 const toint: f64 = 1.0 / @as(f64, std.math.floatEps(f64));
180 const toint: f64 = 1.0 / @as(f64, math.floatEps(f64));
181181 const a: u64 = @bitCast(x);
182182 const e = a >> 52 & 0x7ff;
183183 const s = a >> 63;