This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/5] Refactor several strtod tests to support more types


This patch series refactors several existing tests to more readily
support new floating point types via a new header, tst-strtod.h.

Patch 4 is bulky as it removes the generated code from tst-strtod-round.c
and is regenerated via gen-tst-strtod-round.c as tst-strtod-round-data.h.
There are no changes to the test data or its formatting.

This also incidentally expands a few tests to also run against float and
logn double variants as well.  I think the converted tests should provide
reasonable confidence when adding new floating point variants based on
the common strtod_l.c code.

I've tested on ppc64le (ldbl-128ibm) and x86-64 (ldbl-intel96).  Any
assistance or advice for testing the remaining three ldbl types is
appreciated.

Paul E. Murphy (5):
  Refactor bug-strtod.c to better test new types.
  Refactor bug-strtod2.c to be type generic
  Refactor tst-strtod6.c
  Refactor tst-strtod-round.c
  Refactor tst-strtod-round.c for type-generic-ness

 stdlib/bug-strtod.c                                |   103 +-
 stdlib/bug-strtod2.c                               |    63 +-
 stdlib/gen-tst-strtod-round.c                      |    53 +-
 ...{tst-strtod-round.c => tst-strtod-round-data.h} |   230 +-
 stdlib/tst-strtod-round.c                          | 12563 +------------------
 stdlib/tst-strtod.h                                |   138 +
 stdlib/tst-strtod6.c                               |    98 +-
 7 files changed, 350 insertions(+), 12898 deletions(-)
 copy stdlib/{tst-strtod-round.c => tst-strtod-round-data.h} (98%)
 create mode 100644 stdlib/tst-strtod.h

-- 
2.4.11


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]