public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/5] x86 pseudo-normal numbers
@ 2020-12-15 14:13 Siddhesh Poyarekar
  2020-12-15 14:13 ` [PATCH 1/5] x86 long double: Support pseudo numbers in fpclassifyl Siddhesh Poyarekar
                   ` (7 more replies)
  0 siblings, 8 replies; 25+ messages in thread
From: Siddhesh Poyarekar @ 2020-12-15 14:13 UTC (permalink / raw)
  To: libc-alpha; +Cc: joseph, carlos, fweimer

Hi,

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.

Pseudo-denormal numbers are not catered for in this patch.  The x86 CPU
supposedly treats these numbers as denormals, but both gcc and glibc
currently treat them as normals.

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
- Add an x86-specific issignalingl that returns true for all
  pseudo-normals.

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/i386/fpu/s_fpclassifyl.c         |   4 +
 sysdeps/i386/fpu/s_isnanl.c              |  10 +-
 sysdeps/ieee754/ldbl-96/s_issignalingl.c |   2 -
 sysdeps/x86/fpu/Makefile                 |   3 +-
 sysdeps/x86/fpu/isnanl_common.h          |  32 ++++
 sysdeps/x86/fpu/s_issignalingl.c         |  39 +++++
 sysdeps/x86/fpu/test-unnormal.c          | 196 +++++++++++++++++++++++
 sysdeps/x86/ldbl2mpn.c                   |   8 -
 8 files changed, 275 insertions(+), 19 deletions(-)
 create mode 100644 sysdeps/x86/fpu/isnanl_common.h
 create mode 100644 sysdeps/x86/fpu/s_issignalingl.c
 create mode 100644 sysdeps/x86/fpu/test-unnormal.c

-- 
2.29.2


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

end of thread, other threads:[~2020-12-24  0:48 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 14:13 [PATCH 0/5] x86 pseudo-normal numbers Siddhesh Poyarekar
2020-12-15 14:13 ` [PATCH 1/5] x86 long double: Support pseudo numbers in fpclassifyl Siddhesh Poyarekar
2020-12-22 18:43   ` Adhemerval Zanella
2020-12-23  1:43     ` Siddhesh Poyarekar
2020-12-15 14:13 ` [PATCH 2/5] x86 long double: Support pseudo numbers in isnanl Siddhesh Poyarekar
2020-12-22 19:04   ` Adhemerval Zanella
2020-12-23  1:49     ` Siddhesh Poyarekar
2020-12-23  8:34       ` Siddhesh Poyarekar
2020-12-15 14:13 ` [PATCH 3/5] Partially revert 681900d29683722b1cb0a8e565a0585846ec5a61 Siddhesh Poyarekar
2020-12-15 14:36   ` Florian Weimer
2020-12-15 15:01     ` Siddhesh Poyarekar
2020-12-15 14:13 ` [PATCH 4/5] x86 long double: Consider pseudo numbers as signaling Siddhesh Poyarekar
2020-12-22 20:13   ` Adhemerval Zanella
2020-12-23  1:50     ` Siddhesh Poyarekar
2020-12-15 14:13 ` [PATCH 5/5] x86 long double: Add tests for pseudo normal numbers Siddhesh Poyarekar
2020-12-22 21:48   ` Adhemerval Zanella
2020-12-23  1:58     ` Siddhesh Poyarekar
2020-12-23 10:20       ` Siddhesh Poyarekar
2020-12-23 17:44         ` Adhemerval Zanella
2020-12-24  0:48           ` Siddhesh Poyarekar
2020-12-15 18:26 ` [PATCH 0/5] x86 pseudo-normal numbers Joseph Myers
2020-12-15 18:29   ` Siddhesh Poyarekar
2020-12-18  4:03 ` [PING][PATCH " Siddhesh Poyarekar
2020-12-22  7:46 ` [PING*2][PATCH " Siddhesh Poyarekar
2020-12-22 11:11   ` Adhemerval Zanella

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).