4 ms·
It's much clearer if you read one of the source code of the libm. Plan 9: https://9p.io/sources/plan9/sys/src/libc/port/sin.c https://9p.io/sources/plan9/sys/s
by jxy 3y ago
It's much clearer if you read one of the source code of the libm.
Plan 9: https://9p.io/sources/plan9/sys/src/libc/port/sin.c https://9p.io/sources/plan9/sys/src/libc/port/sin.c
Freebsd: https://cgit.freebsd.org/src/tree/lib/msun/src/k_sin.c https://cgit.freebsd.org/src/tree/lib/msun/src/k_sin.c
- anthk 3y agoDoes 9front keep the same sin.c implementation?
- jxy 3y agohttp://git.9front.org/plan9front/plan9front/HEAD/sys/src/libc/port/sin.c/f.html http://git.9front.org/plan9front/plan9front/HEAD/sys/src/lib...
- planede 3y agoAh, I always referred to the musl implmenetation, but I just now realized that they copied the Freebsd one.
- jxy 3y agoit says "Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved." and the directory name is literally: `msun`
- lifthrasiir 3y agoFreeBSD code is missing the range reduction step (it's named a "kernel" for the reason): https://cgit.freebsd.org/src/tree/lib/msun/src/e_rem_pio2.c https://cgit.freebsd.org/src/tree/lib/msun/src/e_rem_pio2.c