Module Name:    src
Committed By:   dsl
Date:           Mon Mar  3 18:21:33 UTC 2014

Modified Files:
        src/tests/lib/libm: t_acos.c

Log Message:
Remove the print of the rounding mode.
It was added in case it was non-zero - which it isn't.
It still isn't clear why acos(-1) gives the wrong result on some amd64
  systems.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_acos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libm/t_acos.c
diff -u src/tests/lib/libm/t_acos.c:1.7 src/tests/lib/libm/t_acos.c:1.8
--- src/tests/lib/libm/t_acos.c:1.7	Mon Mar  3 10:38:36 2014
+++ src/tests/lib/libm/t_acos.c	Mon Mar  3 18:21:33 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: t_acos.c,v 1.7 2014/03/03 10:38:36 martin Exp $ */
+/* $NetBSD: t_acos.c,v 1.8 2014/03/03 18:21:33 dsl Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -32,24 +32,10 @@
 #include <atf-c.h>
 #include <math.h>
 
-#ifdef HAVE_FENV_H
-#include <fenv.h>
-#endif
-
 /*
  * Check result of fn(arg) is correct within the bounds.
  * Should be ok to do the checks using 'double' for 'float' functions.
  */
-#ifdef HAVE_FENV_H
-#define T_LIBM_CHECK(subtest, fn, arg, expect, epsilon) do { \
-	double r = fn(arg); \
-	double e = fabs(r - expect); \
-	if (e > epsilon) \
-		atf_tc_fail_nonfatal( \
-		    "subtest %zu: " #fn "(%g) is %g not %g (error %g > %g), roundmode %x", \
-		    subtest, arg, r, expect, e, epsilon, fegetround()); \
-    } while (0)
-#else
 #define T_LIBM_CHECK(subtest, fn, arg, expect, epsilon) do { \
 	double r = fn(arg); \
 	double e = fabs(r - expect); \
@@ -58,7 +44,6 @@
 		    "subtest %zu: " #fn "(%g) is %g not %g (error %g > %g)", \
 		    subtest, arg, r, expect, e, epsilon); \
     } while (0)
-#endif
 
 /* Check that the result of fn(arg) is NaN */
 #ifndef __vax__

Reply via email to