about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-05-27 09:53:51 -0500
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-05-27 09:57:21 -0500
commit5f7b8f457f5ec9c93664e3e78efe8c2585efc34b (patch)
tree886abebf4ec34e768ddc1c37816036e65bbb5556 /ChangeLog
parentbba14195895fa612a8ef484e9856127a1be4f80f (diff)
downloadglibc-5f7b8f457f5ec9c93664e3e78efe8c2585efc34b.tar.gz
glibc-5f7b8f457f5ec9c93664e3e78efe8c2585efc34b.tar.xz
glibc-5f7b8f457f5ec9c93664e3e78efe8c2585efc34b.zip
Begin refactor of libm-test.inc
Attempt to creatively redefine the macros
to choose tests based on the format being
tested, not the type.

Note, TS 18661 does not define any printf
modifiers, so we need to be a little more
verbose about constructing strings to
output.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog60
1 files changed, 60 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1cf86d7419..d6d9527edc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,63 @@
+2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
+
+	* math/libm-test.inc:
+	(TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
+	(TYPE_MIN): Likewise.
+	(TYPE_TRUE_MIN): Likewise.
+	(TYPE_MAX): Likewise.
+	(MIN_EXP): Likewise.
+	(MAX_EXP): Likewise.
+	(MANT_DIG): Likewise.
+
+	(FSTR_MAX): New macro.
+	(__CONCATX): Likewise.
+	(QTYPE_STR): Likewise.
+	(TEST_COND_binary32): Likewise.
+	(TEST_COND_binary64): Likewise.
+	(TEST_COND_binary128): Likewise.
+	(TEST_COND_ibm128): Likewise.
+	(TEST_COND_intel96): Likewise.
+	(TEST_COND_m68k96): Likewise.
+
+	(TEST_COND_flt_32): Redefine as equivalent format test macro.
+	(TEST_COND_dbl_64): Likewise.
+	(TEST_COND_ldbl_96_intel): Likewise.
+	(TEST_COND_ldbl_96_m68k): Likewise.
+	(TEST_COND_ldbl_128): Likewise.
+	(TEST_COND_ldbl_128ibm): Likewise.
+
+	(plus_zero): Redefine using LIT macro.
+	(minus_zero): Likewise.
+	(plus_infty): Redefine as (INF).
+	(minux_infty): Redefine as (-INF).
+	(max_value): Redefine as TYPE_MAX.
+	(min_value): Redefine as TYPE_MIN.
+	(min_subnorm_value): Redefine as TYPE_TRUE_MIN.
+
+	(print_float): Refactor to use snprintf to convert FLOAT values
+	to string. This brings it closer to dropin replacement of strtof
+	for the TS 18661 defined types.
+	(update_stats): Likewise.
+	(print_complex_function_ulps): Likewise.
+	(print_max_error): Likewise.
+	(print_complex_max_error): Likewise.
+	(check_float_internal): Likewise.
+
+	* math/test-float.h (PREFIX): New macro.
+	(LIT): Likewise.
+	(TYPE_STR): Likewise.
+	(FTOSTR): Likewise.
+
+	* math/test-double.h (PREFIX): New macro.
+	(LIT): Likewise.
+	(TYPE_STR): Likewise.
+	(FTOSTR): Likewise.
+
+	* math/test-ldouble.h (PREFIX): New macro.
+	(LIT): Likewise.
+	(TYPE_STR): Likewise.
+	(FTOSTR): Likewise.
+
 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #20156]