mirror of
https://github.com/fluencelabs/musl
synced 2025-06-13 23:11:51 +00:00
note that this library itself is built with -ffreestanding so sincos.c should not be miscompiled even if the gcc used to compile musl has this bug.
9 lines
115 B
C
9 lines
115 B
C
#define _GNU_SOURCE
|
|
#include <math.h>
|
|
|
|
void sincos(double t, double *y, double *x)
|
|
{
|
|
*y = sin(t);
|
|
*x = cos(t);
|
|
}
|