Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/common/s_infinity.c')
-rw-r--r--newlib/libm/common/s_infinity.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/newlib/libm/common/s_infinity.c b/newlib/libm/common/s_infinity.c
index 9f9cbebee..02a545edb 100644
--- a/newlib/libm/common/s_infinity.c
+++ b/newlib/libm/common/s_infinity.c
@@ -5,7 +5,7 @@
/*
FUNCTION
- <<infinity>>, <<infinityf>>---representation of infinity
+ <<infinity>>, <<infinityf>>--representation of infinity
INDEX
infinity
@@ -17,17 +17,18 @@ ANSI_SYNOPSIS
double infinity(void);
float infinityf(void);
-TRAD_SYNOPSIS
- #include <math.h>
- double infinity();
- float infinityf();
-
-
DESCRIPTION
<<infinity>> and <<infinityf>> return the special number IEEE
infinity in double- and single-precision arithmetic
respectively.
+PORTABILITY
+<<infinity>> and <<infinityf>> are neither standard C nor POSIX. C and
+POSIX require macros HUGE_VAL and HUGE_VALF to be defined in math.h, which
+Newlib defines to be infinities corresponding to these archaic infinity()
+and infinityf() functions in floating-point implementations which do have
+infinities.
+
QUICKREF
infinity - pure