summaryrefslogtreecommitdiffstats
path: root/lib/libc/alpha/gen
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2003-02-12 20:03:41 +0000
committermike <mike@FreeBSD.org>2003-02-12 20:03:41 +0000
commit1998abeb23dab7b75455dd4404b6c6e65f3f5d17 (patch)
treedcd3e60930c7e038a326f0d2956c397a380c5f93 /lib/libc/alpha/gen
parenta6f0140de945f637820ecc83d9a6fa9f9c999926 (diff)
downloadFreeBSD-src-1998abeb23dab7b75455dd4404b6c6e65f3f5d17.zip
FreeBSD-src-1998abeb23dab7b75455dd4404b6c6e65f3f5d17.tar.gz
o Implement C99 classification macros isfinite(), isinf(), isnan(),
isnormal(). The current isinf() and isnan() are perserved for binary compatibility with 5.0, but new programs will use the macros. o Implement C99 comparison macros isgreater(), isgreaterequal(), isless(), islessequal(), islessgreater(), isunordered(). Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
Diffstat (limited to 'lib/libc/alpha/gen')
-rw-r--r--lib/libc/alpha/gen/isinf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/alpha/gen/isinf.c b/lib/libc/alpha/gen/isinf.c
index 663154c..0017ea5 100644
--- a/lib/libc/alpha/gen/isinf.c
+++ b/lib/libc/alpha/gen/isinf.c
@@ -27,6 +27,8 @@
* $NetBSD: isinf.c,v 1.1 1995/02/10 17:50:23 cgd Exp $
*/
+/* For binary compat; to be removed in FreeBSD 6.0. */
+
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
@@ -34,6 +36,9 @@ __FBSDID("$FreeBSD$");
#include <machine/ieee.h>
#include <math.h>
+#undef isnan
+#undef isinf
+
int
isnan(d)
double d;
OpenPOWER on IntegriCloud