Files
musl/src/linux/sincos.c
Rich Felker 13e8459232 workaround gcc bug 46926 by providing a dumb sincos implementation
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.
2011-02-19 17:56:57 -05:00

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);
}