summaryrefslogtreecommitdiff
path: root/modules/floor-ieee-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-12-21 17:41:03 +0100
committerBruno Haible <bruno@clisp.org>2010-12-21 22:46:56 +0100
commit8938f22cb374f04f265ac3a9d2cefdc44524d6e2 (patch)
treea46acc07d819d19a96a78d4cec0c212878533e8a /modules/floor-ieee-tests
parent4ee2d29251b218b1f4f520494499e55b6d1714ba (diff)
downloadgnulib-8938f22cb374f04f265ac3a9d2cefdc44524d6e2.tar.gz
New module 'floor-ieee'.
* modules/floor-ieee: New file. * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to ISO C 99 with IEC 60559. * m4/floor-ieee.m4: New file. * modules/floor (Files): Add lib/floor.c. (Depends-on): Add 'float'. (configure.ac): Invoke gl_MATH_MODULE_INDICATOR. * lib/math.in.h (floor): New declaration. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR, REPLACE_FLOOR. * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR. * modules/floor-ieee-tests: New file. * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c. * tests/test-math-c++.cc: Check the signature of 'floor'. * doc/posix-functions/floor.texi: Mention the new module.
Diffstat (limited to 'modules/floor-ieee-tests')
-rw-r--r--modules/floor-ieee-tests15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/floor-ieee-tests b/modules/floor-ieee-tests
new file mode 100644
index 0000000000..e71dead88a
--- /dev/null
+++ b/modules/floor-ieee-tests
@@ -0,0 +1,15 @@
+Files:
+tests/test-floor-ieee.c
+tests/minus-zero.h
+tests/macros.h
+
+Depends-on:
+float
+signbit
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-floor-ieee
+check_PROGRAMS += test-floor-ieee
+test_floor_ieee_LDADD = $(LDADD) @FLOOR_LIBM@