summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-02 20:25:28 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-02 20:25:28 -0400
commit007c03f84f5c4666d7260a53d67249ce4bccc140 (patch)
treed9dd525c8677e24d084796f2168dbb8d4eeef2f6
parentfe2df4ad3ea6080d01dea8d836cd4bbc896160fd (diff)
downloadmusl-007c03f84f5c4666d7260a53d67249ce4bccc140.tar.gz
musl-007c03f84f5c4666d7260a53d67249ce4bccc140.tar.bz2
musl-007c03f84f5c4666d7260a53d67249ce4bccc140.tar.xz
musl-007c03f84f5c4666d7260a53d67249ce4bccc140.zip
fix missing prototype and simplify sincosl on ld64 archs
-rw-r--r--src/math/sincosl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/math/sincosl.c b/src/math/sincosl.c
index e14129a2..d632fe6f 100644
--- a/src/math/sincosl.c
+++ b/src/math/sincosl.c
@@ -1,12 +1,10 @@
+#define _GNU_SOURCE
#include "libm.h"
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
void sincosl(long double x, long double *sin, long double *cos)
{
- double s, c;
- sincos(x, &s, &c);
- *sin = s;
- *cos = c;
+ sincos(x, (double *)sin, (double *)cos);
}
#elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
void sincosl(long double x, long double *sin, long double *cos)