We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f418d26 commit c485db5Copy full SHA for c485db5
1 file changed
test/libm-test.c
@@ -117,9 +117,14 @@
117
118
#include "libm-test-ulps.h"
119
#include <float.h>
120
+#ifdef SYS_MATH_H
121
+#include <math.h>
122
+#include <fenv.h>
123
+#else
124
#include <openlibm.h>
125
#include <openlibm_complex.h>
126
#include <openlibm_fenv.h>
127
+#endif
128
129
#if 0 /* XXX scp XXX */
130
#define FE_INEXACT FE_INEXACT
@@ -142,6 +147,16 @@
142
147
// Some native libm implementations don't have sincos defined, so we have to do it ourselves
143
148
void FUNC(sincos) (FLOAT x, FLOAT * s, FLOAT * c);
144
149
150
+#ifdef __APPLE__
151
152
+void sincos(FLOAT x, FLOAT * s, FLOAT * c)
153
+{
154
+ *s = sin(x);
155
+ *c = cos(x);
156
+}
157
158
159
+
145
160
/* Possible exceptions */
146
161
#define NO_EXCEPTION 0x0
162
#define INVALID_EXCEPTION 0x1
0 commit comments