projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe2df4a
)
fix missing prototype and simplify sincosl on ld64 archs
author
Rich Felker
<dalias@aerifal.cx>
Tue, 3 Jul 2012 00:25:28 +0000
(20:25 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 3 Jul 2012 00:25:28 +0000
(20:25 -0400)
src/math/sincosl.c
patch
|
blob
|
history
diff --git
a/src/math/sincosl.c
b/src/math/sincosl.c
index e14129a23361566e3600b91347ac6726d9f2f9a5..d632fe6f3be0d321498e0d5c8e6fefcbe71858f4 100644
(file)
--- 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)