zig/lib/libc
Pivok d0b39c7f2b libzigc: hypot (#31104)
First time contribution.

Implements hypot for libzigc #30978.

Commands i run:
```
$ stage3/bin/zig build -p stage4 -Denable-llvm -Dno-lib

$ stage4/bin/zig build test-libc -Dlibc-test-path=../../libc-test -Dtest-filter=hypot --summary line -fqemu -fwasmtime
Build Summary: 725/737 steps succeeded (12 skipped)
```

I also changed std.math.hypot becuase some libc-tests raised fp exceptions. Example:
```
../../libc-test/src/math/special/hypot.h:8: bad fp exception: RN hypot(0x1p-1074,0x0p+0)=0x1p-1074, want 0 got INEXACT|UNDERFLOW
../../libc-test/src/math/special/hypot.h:9: bad fp exception: RN hypot(0x1p-1074,-0x0p+0)=0x1p-1074, want 0 got INEXACT|UNDERFLOW
```

I also run this command as a quick sanity check:
```
$ stage4/bin/zig build test-std -Dtest-filter=hypot -Dtest-target-filter=x86_64-linux-musl --summary line
Build Summary: 5/5 steps succeeded; 136/136 tests passed
```

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31104
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: Pivok <pivoc@protonmail.com>
Co-committed-by: Pivok <pivoc@protonmail.com>
2026-02-05 21:57:32 +01:00
..
darwin libc: Update macOS headers to SDK 26.2 2025-12-14 20:35:07 +00:00
freebsd libc: update startup code from freebsd 15 2025-12-07 09:18:38 +01:00
glibc libc: update glibc crt0 code to 2.43 2026-01-26 05:56:54 +01:00
include musl: update some hexagon headers from the quic fork 2026-01-27 23:24:57 +01:00
mingw libzigc: roundl 2026-02-01 00:59:35 +01:00
musl libzigc: hypot (#31104) 2026-02-05 21:57:32 +01:00
netbsd libc: Add NetBSD libc abilists file. 2025-05-17 04:41:27 +02:00
openbsd libc: add openbsd libc startup code for 7.8 2026-01-05 14:52:48 +01:00
wasi feat(libzigc): use common implementations for sys/utsname.h 2026-01-21 00:06:42 +01:00