diff options
author | 2008-12-09 19:52:33 +0000 | |
---|---|---|
committer | 2008-12-09 19:52:33 +0000 | |
commit | 4914100a9a976afb8e70010709918b347d2eae89 (patch) | |
tree | 95a3ce5549fae420aff154a69c7b1a88696651d1 /lib/libc/arch/vax/gen/fpclassify.c | |
parent | sparc does not have extended precision, therefore remove unused (diff) | |
download | wireguard-openbsd-4914100a9a976afb8e70010709918b347d2eae89.tar.xz wireguard-openbsd-4914100a9a976afb8e70010709918b347d2eae89.zip |
- 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/vax/gen/fpclassify.c')
-rw-r--r-- | lib/libc/arch/vax/gen/fpclassify.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/arch/vax/gen/fpclassify.c b/lib/libc/arch/vax/gen/fpclassify.c index 8c9e57d79e2..1ed7458fad6 100644 --- a/lib/libc/arch/vax/gen/fpclassify.c +++ b/lib/libc/arch/vax/gen/fpclassify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpclassify.c,v 1.1 2008/07/24 09:31:07 martynas Exp $ */ +/* $OpenBSD: fpclassify.c,v 1.2 2008/12/09 19:52:34 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -15,6 +15,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include <machine/cdefs.h> #include <machine/vaxfp.h> #include <math.h> @@ -41,3 +42,7 @@ __fpclassifyf(float f) return FP_NORMAL; } + +#ifdef __weak_alias +__weak_alias(__fpclassifyl, __fpclassify); +#endif /* __weak_alias */ |