math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
authorBruno Haible <bruno@clisp.org>
Tue, 28 Feb 2012 19:40:59 +0000 (20:40 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 29 Feb 2012 11:10:53 +0000 (12:10 +0100)
commit830868381a3ca611679d4c04b92c262218ba0bde
treeccc24167311aac0cc141bce644d83a6cef61a364
parent98ba3c74aec9072d3beaf2e7d0429b05b313b7f4
math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.

* lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
* tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
HUGE_VALL are defined.
(numeric_equald): Renamed from numeric_equal.
(numeric_equalf, numeric_equall): New functions.
(main): Check also HUGE_VALF, HUGE_VALL.
* modules/math-tests (Files): Add tests/macros.h.
* doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
HUGE_VALL.
ChangeLog
doc/posix-headers/math.texi
lib/math.in.h
modules/math-tests
tests/test-math.c