This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 0/2] Fix for printf_size and IEEE binary128 implementation
- From: "Gabriel F. T. Gomes" <gabriel at inconstante dot eti dot br>
- To: <libc-alpha at sourceware dot org>
- Date: Fri, 29 Jun 2018 01:18:17 -0300
- Subject: [PATCH 0/2] Fix for printf_size and IEEE binary128 implementation
The first patch in this set changes how __printf_fp treats the
floating-point argument. This change is reflected in printf_size
behaviour, but I'm not sure if this requires a bugzilla entry.
The second patch uses the new behaviour to implement the IEEE binary128
version of printf_size. Testing has been done on my personal branch [1]
(which has the code to actually enable the building of ieee128-* files
and tests).
Are these two patches OK for master?
[1] https://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/gabriel/powerpc-ieee128-printscan
Gabriel F. T. Gomes (2):
Fix behaviour of 'is_binary128' in __printf_fp
ldbl-128ibm-compat: Add printf_size
stdio-common/Makefile | 9 +++-
stdio-common/printf_fp.c | 2 +-
stdio-common/printf_size.c | 2 +-
stdio-common/tst-isbinary128.c | 59 ++++++++++++++++++++++
stdio-common/tst-isbinary128.sh | 38 ++++++++++++++
stdlib/strfrom-skeleton.c | 6 ++-
sysdeps/ieee754/ldbl-128ibm-compat/Makefile | 22 ++++++++
sysdeps/ieee754/ldbl-128ibm-compat/Versions | 2 +
.../ldbl-128ibm-compat/ieee128-printf_size.c | 32 ++++++++++++
.../ldbl-128ibm-compat/test-printf-size-ibm128.c | 1 +
.../ldbl-128ibm-compat/test-printf-size-ieee128.c | 1 +
11 files changed, 169 insertions(+), 5 deletions(-)
create mode 100644 stdio-common/tst-isbinary128.c
create mode 100644 stdio-common/tst-isbinary128.sh
create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/Makefile
create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c
create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c
create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c
--
2.14.4