mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-06 05:14:32 +03:00
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.
This commit is contained in:
parent
98e02144da
commit
13e8459232
8
src/linux/sincos.c
Normal file
8
src/linux/sincos.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#define _GNU_SOURCE
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
void sincos(double t, double *y, double *x)
|
||||||
|
{
|
||||||
|
*y = sin(t);
|
||||||
|
*x = cos(t);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user