Uncomment tests for sincos()

This commit is contained in:
Elliot Saba 2013-07-15 18:28:49 -07:00
parent 0cf89fad5d
commit 5b4fb9af72

View file

@ -145,6 +145,9 @@
#include <argp.h> #include <argp.h>
#endif #endif
// Some native libm implementations don't have sincos defined, so we have to do it ourselves
void FUNC(sincos) (FLOAT x, FLOAT * s, FLOAT * c);
/* Possible exceptions */ /* Possible exceptions */
#define NO_EXCEPTION 0x0 #define NO_EXCEPTION 0x0
#define INVALID_EXCEPTION 0x1 #define INVALID_EXCEPTION 0x1
@ -224,13 +227,6 @@ static FLOAT max_error, real_max_error, imag_max_error;
#define MANT_DIG CHOOSE ((LDBL_MANT_DIG-1), (DBL_MANT_DIG-1), (FLT_MANT_DIG-1), \ #define MANT_DIG CHOOSE ((LDBL_MANT_DIG-1), (DBL_MANT_DIG-1), (FLT_MANT_DIG-1), \
(LDBL_MANT_DIG-1), (DBL_MANT_DIG-1), (FLT_MANT_DIG-1)) (LDBL_MANT_DIG-1), (DBL_MANT_DIG-1), (FLT_MANT_DIG-1))
#ifndef SYS_MATH_H
void FUNC(sincos) (int n, FLOAT *s, FLOAT *c)
{
*s = FUNC(sin) ( *s );
*c = FUNC(cos) ( *c );
}
#endif
static void static void
init_max_error (void) init_max_error (void)
@ -3952,7 +3948,7 @@ sin_test (void)
} }
#if 0 /* XXX scp XXX */
static void static void
sincos_test (void) sincos_test (void)
{ {
@ -3999,7 +3995,6 @@ sincos_test (void)
print_max_error ("sincos", DELTAsincos, 0); print_max_error ("sincos", DELTAsincos, 0);
} }
#endif
static void static void
sinh_test (void) sinh_test (void)
@ -4434,7 +4429,6 @@ check_ulp (void)
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
#if 0 /* XXX scp XXX */ #if 0 /* XXX scp XXX */
int remaining; int remaining;
#endif #endif
@ -4490,9 +4484,7 @@ main (int argc, char **argv)
atan2_test (); atan2_test ();
cos_test (); cos_test ();
sin_test (); sin_test ();
#if 0 /* XXX scp XXX */
sincos_test (); sincos_test ();
#endif
tan_test (); tan_test ();
/* Hyperbolic functions: */ /* Hyperbolic functions: */