diff options
author | mike <mike@FreeBSD.org> | 2003-02-12 20:03:41 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2003-02-12 20:03:41 +0000 |
commit | 1998abeb23dab7b75455dd4404b6c6e65f3f5d17 (patch) | |
tree | dcd3e60930c7e038a326f0d2956c397a380c5f93 /lib/libc/powerpc | |
parent | a6f0140de945f637820ecc83d9a6fa9f9c999926 (diff) | |
download | FreeBSD-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/powerpc')
-rw-r--r-- | lib/libc/powerpc/gen/isinf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/powerpc/gen/isinf.c b/lib/libc/powerpc/gen/isinf.c index b162817..fb6d73b 100644 --- a/lib/libc/powerpc/gen/isinf.c +++ b/lib/libc/powerpc/gen/isinf.c @@ -28,6 +28,8 @@ * from: FreeBSD: src/lib/libc/alpha/gen/isinf.c,v 1.2 2000/05/10 */ +/* For binary compat; to be removed in FreeBSD 6.0. */ + #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -35,6 +37,9 @@ __FBSDID("$FreeBSD$"); #include <machine/ieee.h> #include <math.h> +#undef isnan +#undef isinf + int isnan(double d) { |