Hash :
fdb0fd9e
Author :
Date :
2010-12-21T15:44:21
New module 'truncf-ieee'. * modules/truncf-ieee: New file. * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used, test whether truncf works according to ISO C 99 with IEC 60559. * m4/truncf-ieee.m4: New file. * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF. * modules/math (Makefile.am): Substitute REPLACE_TRUNCF. * modules/truncf-ieee-tests: New file. * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c. * tests/test-truncf1.c (main): Remove signbit tests. * modules/truncf-tests (Depends-on): Remove 'signbit'. * doc/posix-functions/truncf.texi: Mention the new module.
Files:
tests/test-truncf1.c
tests/test-truncf2.c
tests/minus-zero.h
tests/nan.h
tests/signature.h
tests/macros.h
Depends-on:
float
isnanf-nolibm
stdbool
stdint
configure.ac:
Makefile.am:
TESTS += test-truncf1 test-truncf2
check_PROGRAMS += test-truncf1 test-truncf2
test_truncf1_LDADD = $(LDADD) @TRUNCF_LIBM@
test_truncf2_LDADD = $(LDADD) @TRUNCF_LIBM@