From 13e8459232608f841d5e3f7171da80a8dfce7941 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 19 Feb 2011 17:56:57 -0500 Subject: [PATCH] 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. --- src/linux/sincos.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/linux/sincos.c 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); +} -- 2.25.1