diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-12-09 19:52:35 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-12-09 19:52:35 +0000 |
commit | 9e5337fc957e6c7535daf2a109184402a542f1ec (patch) | |
tree | 84cad8df1ca61a3ef08f4c6720f1d9f771a6fd1d /lib/libc/arch/i386/gen/isnanl.c | |
parent | eeeafb12487449aefa05ef31aa83d0b6e24b8a8f (diff) |
- add long double signbit
- make long double versions weak aliases to double versions,
on archs where long doubles are 64 bits
- no need to have two finites. finite() and finitef() are
non-standard 3BSD obsolete versions of isfinite. remove
from libm. make them weak_alias in libc to __isfinite and
__isfinitef instead. similarly make 3BSD obsolete versions
of isinf, isinff, isnan, isnanf weak_aliases to C99's
__isinf, __isinff, __isnan, __isnanf
- bump major
ok millert@
Diffstat (limited to 'lib/libc/arch/i386/gen/isnanl.c')
-rw-r--r-- | lib/libc/arch/i386/gen/isnanl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/arch/i386/gen/isnanl.c b/lib/libc/arch/i386/gen/isnanl.c index 4db08d62be6..0fbecf2efcc 100644 --- a/lib/libc/arch/i386/gen/isnanl.c +++ b/lib/libc/arch/i386/gen/isnanl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isnanl.c,v 1.1 2008/09/07 20:36:07 martynas Exp $ */ +/* $OpenBSD: isnanl.c,v 1.2 2008/12/09 19:52:33 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -17,6 +17,7 @@ #include <sys/types.h> #include <machine/ieee.h> +#include <math.h> int __isnanl(long double e) |