diff options
author | Bruno Haible <bruno@clisp.org> | 2010-12-21 15:58:00 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-12-21 22:46:47 +0100 |
commit | 4ee2d29251b218b1f4f520494499e55b6d1714ba (patch) | |
tree | 089215ab58941d23518659e35ae7465971da26b1 /modules | |
parent | fdb0fd9e820d721e6492b041ddc49d49b4c61e64 (diff) | |
download | gnulib-4ee2d29251b218b1f4f520494499e55b6d1714ba.tar.gz |
New module 'roundf-ieee'.
* modules/roundf-ieee: New file.
* m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
test whether roundf works according to ISO C 99 with IEC 60559.
* m4/roundf-ieee.m4: New file.
* modules/roundf-ieee-tests: New file.
* tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
* tests/test-roundf1.c (main): Remove signbit tests.
* modules/roundf-tests (Depends-on): Remove 'signbit'.
* doc/posix-functions/roundf.texi: Mention the new module.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/roundf-ieee | 27 | ||||
-rw-r--r-- | modules/roundf-ieee-tests | 15 | ||||
-rw-r--r-- | modules/roundf-tests | 1 |
3 files changed, 42 insertions, 1 deletions
diff --git a/modules/roundf-ieee b/modules/roundf-ieee new file mode 100644 index 0000000000..ffa2381cd7 --- /dev/null +++ b/modules/roundf-ieee @@ -0,0 +1,27 @@ +Description: +roundf() function according to ISO C 99 with IEC 60559. + +Files: +m4/roundf-ieee.m4 +m4/minus-zero.m4 +m4/signbit.m4 + +Depends-on: +roundf + +configure.ac: +gl_FUNC_ROUNDF_IEEE + +Makefile.am: + +Include: +<math.h> + +Link: +$(ROUNDF_LIBM) + +License: +LGPL + +Maintainer: +Bruno Haible diff --git a/modules/roundf-ieee-tests b/modules/roundf-ieee-tests new file mode 100644 index 0000000000..de231a51e1 --- /dev/null +++ b/modules/roundf-ieee-tests @@ -0,0 +1,15 @@ +Files: +tests/test-roundf-ieee.c +tests/minus-zero.h +tests/macros.h + +Depends-on: +float +signbit + +configure.ac: + +Makefile.am: +TESTS += test-roundf-ieee +check_PROGRAMS += test-roundf-ieee +test_roundf_ieee_LDADD = $(LDADD) @ROUNDF_LIBM@ diff --git a/modules/roundf-tests b/modules/roundf-tests index 2153ca1bcc..7ee4178f3e 100644 --- a/modules/roundf-tests +++ b/modules/roundf-tests @@ -11,7 +11,6 @@ Depends-on: ceilf floorf isnanf-nolibm -signbit stdbool stdint verify |