From: Rich Felker Date: Sat, 19 Feb 2011 22:56:57 +0000 (-0500) Subject: workaround gcc bug 46926 by providing a dumb sincos implementation X-Git-Tag: v0.7.0~83 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=13e8459232608f841d5e3f7171da80a8dfce7941;p=oweals%2Fmusl.git 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. --- diff --git a/src/linux/sincos.c b/src/linux/sincos.c new file mode 100644 index 00000000..b69ffce9 --- /dev/null +++ b/src/linux/sincos.c @@ -0,0 +1,8 @@ +#define _GNU_SOURCE +#include + +void sincos(double t, double *y, double *x) +{ + *y = sin(t); + *x = cos(t); +}