summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBen Pfaff <blp@cs.stanford.edu>2008-07-23 21:48:35 -0700
committerBen Pfaff <blp@cs.stanford.edu>2008-07-25 21:56:40 -0700
commit2cc4af230b9c35894b9e6e3515681c0a313ad3cc (patch)
tree01fd92147a43713b022a873847c929338d3f762c /modules
parentd581f6d5320f5d7b6d5e4a3ad1ccef7f0f9fb93a (diff)
downloadgnulib-2cc4af230b9c35894b9e6e3515681c0a313ad3cc.tar.gz
Add isinf module.
Diffstat (limited to 'modules')
-rw-r--r--modules/isinf27
-rw-r--r--modules/isinf-tests21
-rw-r--r--modules/math2
3 files changed, 50 insertions, 0 deletions
diff --git a/modules/isinf b/modules/isinf
new file mode 100644
index 0000000000..c5e4dbd0b1
--- /dev/null
+++ b/modules/isinf
@@ -0,0 +1,27 @@
+Description:
+isinf macro: test for positive or negative infinity
+
+Files:
+lib/isinf.c
+m4/isinf.m4
+m4/check-math-lib.m4
+
+Depends-on:
+float
+math
+extensions
+
+configure.ac:
+gl_ISINF
+gl_MATH_MODULE_INDICATOR([isinf])
+
+Makefile.am:
+
+Include:
+<math.h>
+
+License:
+GPL
+
+Maintainer:
+Ben Pfaff
diff --git a/modules/isinf-tests b/modules/isinf-tests
new file mode 100644
index 0000000000..8e15f659e4
--- /dev/null
+++ b/modules/isinf-tests
@@ -0,0 +1,21 @@
+Files:
+m4/exponentf.m4
+m4/exponentd.m4
+m4/exponentl.m4
+tests/test-isinf.c
+
+Depends-on:
+float
+
+configure.ac:
+gl_FLOAT_EXPONENT_LOCATION
+gl_DOUBLE_EXPONENT_LOCATION
+gl_LONG_DOUBLE_EXPONENT_LOCATION
+
+Makefile.am:
+TESTS += test-isinf
+check_PROGRAMS += test-isinf
+test_isinf_LDADD = $(LDADD) @ISINF_LIBM@
+
+License:
+GPL
diff --git a/modules/math b/modules/math
index 4be8501507..20ec1d670d 100644
--- a/modules/math
+++ b/modules/math
@@ -29,6 +29,7 @@ math.h: math.in.h
-e 's|@''GNULIB_FREXP''@|$(GNULIB_FREXP)|g' \
-e 's|@''GNULIB_FREXPL''@|$(GNULIB_FREXPL)|g' \
-e 's|@''GNULIB_ISFINITE''@|$(GNULIB_ISFINITE)|g' \
+ -e 's|@''GNULIB_ISINF''@|$(GNULIB_ISINF)|g' \
-e 's|@''GNULIB_ISNAN''@|$(GNULIB_ISNAN)|g' \
-e 's|@''GNULIB_LDEXPL''@|$(GNULIB_LDEXPL)|g' \
-e 's|@''GNULIB_MATHL''@|$(GNULIB_MATHL)|g' \
@@ -60,6 +61,7 @@ math.h: math.in.h
-e 's|@''REPLACE_FREXPL''@|$(REPLACE_FREXPL)|g' \
-e 's|@''REPLACE_HUGE_VAL''@|$(REPLACE_HUGE_VAL)|g' \
-e 's|@''REPLACE_ISFINITE''@|$(REPLACE_ISFINITE)|g' \
+ -e 's|@''REPLACE_ISINF''@|$(REPLACE_ISINF)|g' \
-e 's|@''REPLACE_ISNAN''@|$(REPLACE_ISNAN)|g' \
-e 's|@''REPLACE_LDEXPL''@|$(REPLACE_LDEXPL)|g' \
-e 's|@''REPLACE_NAN''@|$(REPLACE_NAN)|g' \