public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add tests for abs(), labs(), llabs() (BZ #30263)
@ 2023-04-04 13:57 Joe Simmons-Talbott
  2023-04-04 13:57 ` [PATCH v2 1/3] stdlib: Add testcases for abs(). " Joe Simmons-Talbott
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Joe Simmons-Talbott @ 2023-04-04 13:57 UTC (permalink / raw)
  To: Wilco Dijkstra, libc-alpha; +Cc: Joe Simmons-Talbott

Add testcases for abs(), labs(), and llabs().  Test the bounds of the
given type, zero, and part of the full range of values for labs() and
llabs().  Test the full range for abs().

Changes in V2:
Reduce number of iterations by using a prime interval.  For llabs() test
the 32bit crossover point.

Joe Simmons-Talbott (3):
  stdlib: Add testcases for abs(). (BZ #30263)
  stdlib: Add testcases for labs(). (BZ #30263)
  stdlib: Add testcases for llabs(). (BZ #30263)

 stdlib/Makefile    |  7 ++++++
 stdlib/tst-abs.c   | 45 +++++++++++++++++++++++++++++++++++++
 stdlib/tst-labs.c  | 51 ++++++++++++++++++++++++++++++++++++++++++
 stdlib/tst-llabs.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 158 insertions(+)
 create mode 100644 stdlib/tst-abs.c
 create mode 100644 stdlib/tst-labs.c
 create mode 100644 stdlib/tst-llabs.c

-- 
2.39.2


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

end of thread, other threads:[~2023-05-16 20:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-04 13:57 [PATCH v2 0/3] Add tests for abs(), labs(), llabs() (BZ #30263) Joe Simmons-Talbott
2023-04-04 13:57 ` [PATCH v2 1/3] stdlib: Add testcases for abs(). " Joe Simmons-Talbott
2023-04-04 13:57 ` [PATCH v2 2/3] stdlib: Add testcases for labs(). " Joe Simmons-Talbott
2023-04-04 13:57 ` [PATCH v2 3/3] stdlib: Add testcases for llabs(). " Joe Simmons-Talbott
2023-04-19 14:23 ` [PATCH v2 0/3] Add tests for abs(), labs(), llabs() " Joe Simmons-Talbott
2023-04-26 16:38   ` Joe Simmons-Talbott
2023-05-04 12:53 ` Wilco Dijkstra
2023-05-16 18:58   ` Siddhesh Poyarekar
2023-05-16 20:52     ` Florian Weimer

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