public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] x86 pseudo-normal numbers
@ 2020-12-23 11:55 Siddhesh Poyarekar
  2020-12-23 11:55 ` [PATCH v2 1/5] x86 long double: Support pseudo numbers in fpclassifyl Siddhesh Poyarekar
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Siddhesh Poyarekar @ 2020-12-23 11:55 UTC (permalink / raw)
  To: libc-alpha; +Cc: adhemerval.zanella, fweimer, joseph

Following is the patchset that harmonizes classification of
pseudo-normal numbers with gcc.  Pseudo-NaNs, Pseudo-Infinities and
unnormal numbers are considered as signaling NaN as per classification
since that is how they behave when used as operands in x86.

In summary, the patchset does the following:

- Update fpclassify to cater for pseudo-normal numbers
- Consolidate isnanl so that it can be used by isnanl as well as
  issignalingl.
- Update isnanl logic to return true for all pseudo-normal numbers
- Make issignalingl that returns true for all pseudo-normals.

Changes since v1:

- Consolidated the i386 and x86_64 versions of functions to x86.
- Update the test according to review comments

Siddhesh Poyarekar (5):
  x86 long double: Support pseudo numbers in fpclassifyl
  x86 long double: Support pseudo numbers in isnanl
  Partially revert 681900d29683722b1cb0a8e565a0585846ec5a61
  x86 long double: Consider pseudo numbers as signaling
  x86 long double: Add tests for pseudo normal numbers

 sysdeps/generic/nan-pseudo-number.h       |  27 +++++
 sysdeps/ieee754/ldbl-96/s_issignalingl.c  |   7 +-
 sysdeps/x86/fpu/Makefile                  |   3 +-
 sysdeps/x86/fpu/nan-pseudo-number.h       |  32 ++++++
 sysdeps/{i386 => x86}/fpu/s_fpclassifyl.c |   4 +
 sysdeps/{i386 => x86}/fpu/s_isnanl.c      |  12 +-
 sysdeps/x86/fpu/test-unnormal.c           | 132 ++++++++++++++++++++++
 sysdeps/x86/ldbl2mpn.c                    |   8 --
 sysdeps/x86/tst-ldbl-nonnormal-printf.c   |   5 +-
 sysdeps/x86_64/fpu/s_fpclassifyl.c        |   2 -
 sysdeps/x86_64/fpu/s_isnanl.c             |   1 -
 11 files changed, 211 insertions(+), 22 deletions(-)
 create mode 100644 sysdeps/generic/nan-pseudo-number.h
 create mode 100644 sysdeps/x86/fpu/nan-pseudo-number.h
 rename sysdeps/{i386 => x86}/fpu/s_fpclassifyl.c (87%)
 rename sysdeps/{i386 => x86}/fpu/s_isnanl.c (76%)
 create mode 100644 sysdeps/x86/fpu/test-unnormal.c
 delete mode 100644 sysdeps/x86_64/fpu/s_fpclassifyl.c
 delete mode 100644 sysdeps/x86_64/fpu/s_isnanl.c

-- 
2.29.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-12-23 18:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23 11:55 [PATCH v2 0/5] x86 pseudo-normal numbers Siddhesh Poyarekar
2020-12-23 11:55 ` [PATCH v2 1/5] x86 long double: Support pseudo numbers in fpclassifyl Siddhesh Poyarekar
2020-12-23 17:59   ` Adhemerval Zanella
2020-12-23 11:55 ` [PATCH v2 2/5] x86 long double: Support pseudo numbers in isnanl Siddhesh Poyarekar
2020-12-23 18:03   ` Adhemerval Zanella
2020-12-23 11:56 ` [PATCH v2 3/5] Partially revert 681900d29683722b1cb0a8e565a0585846ec5a61 Siddhesh Poyarekar
2020-12-23 12:09   ` Florian Weimer
2020-12-23 11:56 ` [PATCH v2 4/5] x86 long double: Consider pseudo numbers as signaling Siddhesh Poyarekar
2020-12-23 18:14   ` Adhemerval Zanella
2020-12-23 11:56 ` [PATCH v2 5/5] x86 long double: Add tests for pseudo normal numbers Siddhesh Poyarekar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).