summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2017-06-22 10:07:04 -0300
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2017-06-23 10:31:09 -0300
commit18a336772d8920780a0e5a60c363fb2d4bf4e81e (patch)
treeef162a13c7011f11c0292c329080106ff38c67c0
parent9f0170af26fa3643d9d4cd28d484b4e2d28c6cd5 (diff)
downloadglibc-18a336772d8920780a0e5a60c363fb2d4bf4e81e.tar.gz
Prepare the manual to display math errors for float128 functions
When float128 support gets enabled for powerpc64le, the ULP errors for float128 functions need to be presented in the manual. This patch adds support for displaying them. Tested for powerpc64le and s390x. * manual/libm-err-tab.pl (@all_floats, %suffices, parse_ulps): Enable generation of float128 entries on the error table.
-rw-r--r--ChangeLog5
-rwxr-xr-xmanual/libm-err-tab.pl7
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b7a655987..f63f01739e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2017-06-23 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
+ * manual/libm-err-tab.pl (@all_floats, %suffices, parse_ulps):
+ Enable generation of float128 entries on the error table.
+
+2017-06-23 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
+
* include/float.h: Include libc-header-start.h to get the
definition of __GLIBC_USE.
diff --git a/manual/libm-err-tab.pl b/manual/libm-err-tab.pl
index 75f5e5b7b7..e0bc3b7289 100755
--- a/manual/libm-err-tab.pl
+++ b/manual/libm-err-tab.pl
@@ -40,11 +40,12 @@ use vars qw (%results @all_floats %suffices %all_functions);
# all_floats is in output order and contains all recognised float types that
# we're going to output
-@all_floats = ('float', 'double', 'ldouble');
+@all_floats = ('float', 'double', 'ldouble', 'float128');
%suffices =
( 'float' => 'f',
'double' => '',
- 'ldouble' => 'l'
+ 'ldouble' => 'l',
+ 'float128' => 'f128'
);
# Pretty description of platform
@@ -113,7 +114,7 @@ sub parse_ulps {
$ignore_fn = 0;
$all_functions{$test} = 1;
}
- if (/^i?(float|double|ldouble):/) {
+ if (/^i?(float|double|ldouble|float128):/) {
($float, $eps) = split /\s*:\s*/,$_,2;
if ($ignore_fn) {
next;