diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-02-06 17:55:59 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-02-06 17:55:59 +0000 |
commit | 2b7dc4c868553db14f439ee4b49873f6ca3ef71f (patch) | |
tree | 60fe632bd22b5b5927421c6dea2a08ed6659cce0 /manual/math.texi | |
parent | 95b2e07fafddc57d818dd408e5ab1e0eb26cd9f1 (diff) | |
download | glibc-2b7dc4c868553db14f439ee4b49873f6ca3ef71f.tar glibc-2b7dc4c868553db14f439ee4b49873f6ca3ef71f.tar.gz glibc-2b7dc4c868553db14f439ee4b49873f6ca3ef71f.tar.bz2 glibc-2b7dc4c868553db14f439ee4b49873f6ca3ef71f.zip |
Do not hardcode list of libm functions in libm-err-tab.pl.
manual/libm-err-tab.pl contains a hardcoded list of libm functions for
which ulps are listed in the manual, and another hardcoded list in a
comment of functions deliberately excluded because of an expected lack
of ulps (and the two together are not in fact an exhaustive list of
libm functions tested through the libm-test machinery).
This patch removes these hardcoded lists, so eliminating this from the
places needing updating when a new libm function is added. Instead,
ulps are tabulated for functions for which they are seen in
libm-test-ulps files, in alphabetical order. The pseudo-function
names such as *_downward and *_vlen* are excluded since they are
excluded from the existing lists, and the description in the manual is
updated to explain how those entries are excluded and if a function is
not listed at all it does not have known errors.
Tested for x86_64.
* manual/libm-err-tab.pl (@all_functions): Change to
%all_functions. Initialize as empty.
(parse_ulps): Add to %all_functions based on functions found in
ulps files. Ignore results for non-default rounding modes and
vector functions.
(print_platforms): Use %all_platforms.
* manual/math.texi (Errors in Math Functions): Document omissions
from the table.
Diffstat (limited to 'manual/math.texi')
-rw-r--r-- | manual/math.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/manual/math.texi b/manual/math.texi index 9b699f1def..69a0acec9b 100644 --- a/manual/math.texi +++ b/manual/math.texi @@ -1417,7 +1417,9 @@ figure) but this is often not achieved due to the large search space. The table lists the ULP values for different architectures. Different architectures have different results since their hardware support for floating-point operations varies and also the existing hardware support -is different. +is different. Only the round-to-nearest rounding mode is covered by +this table, and vector versions of functions are not covered. +Functions not listed do not have known errors. @page @c This multitable does not fit on a single page |