mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
ffd6f6cc6e
The logic was more or less ported from `musl`, with small adjustments where it was convenient. The 'internal' `__tanl` function was implemented in the `trig.zig` module along with other 'internal' trigonometric functions. Now, the `tanl` implementation is precise enough to pass all the relevant `libc-test` suite tests: ``` $ ./build/stage3/bin/zig build -p stage4 -Denable-llvm -Dno-lib $ stage4/bin/zig build test-libc -Dlibc-test-path=<LIBC-TEST-PATH> -Dtest-filter=tanl -fqemu -fwasmtime --summary line Build Summary: 553/553 steps succeeded ``` The unit tests were also extended to include cases for `f80` and `f128`, and they're passing.