about summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-05-13 12:08:42 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-05-13 12:08:42 -0500
commitf98ece5fe2ea2d4a2c150c3cfceb8a73ace062d0 (patch)
tree2663e5687b9286311d7969dc017fe3be7d2b4e4d /math
parent43fe811b73d8f585a4ae837d4a9d4c0f5d46b779 (diff)
downloadglibc-f98ece5fe2ea2d4a2c150c3cfceb8a73ace062d0.tar.gz
glibc-f98ece5fe2ea2d4a2c150c3cfceb8a73ace062d0.tar.xz
glibc-f98ece5fe2ea2d4a2c150c3cfceb8a73ace062d0.zip
Define decimal constant M_1_DIV_El in libm-test.inc
This patch replaces the 1.0 / M_El by the decimal constant M_1_DIV_El.
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 1f7c2e1cb2..038caebaff 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -212,6 +212,7 @@
 #define M_PI2_LOG10El		0.682188176920920673742891812715677885L
 #define M_PI4_LOG10El		0.341094088460460336871445906357838943L
 #define M_PI_LOG10El		1.364376353841841347485783625431355770L
+#define M_1_DIV_El              0.367879441171442321595523770161460867L /* 1 div e  */
 
 #define ulps_file_name "ULPs"	/* Name of the ULPs file.  */
 static FILE *ulps_file;		/* File to document difference.  */
@@ -10932,7 +10933,7 @@ static const struct test_f_f_data log_test_data[] =
     TEST_f_f (log, qnan_value, qnan_value),
 
     TEST_f_f (log, M_El, 1),
-    TEST_f_f (log, 1.0 / M_El, -1),
+    TEST_f_f (log, M_1_DIV_El, -1),
     TEST_f_f (log, 2, M_LN2l),
     TEST_f_f (log, 10, M_LN10l),
     TEST_f_f (log, 0.75L, -0.287682072451780927439219005993827432L),