diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-10 15:52:26 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-10 15:52:26 +0000 |
commit | 1ff719505763720315217ca8b7eb6d6f03c49222 (patch) | |
tree | c300345a7a3b5990c971639f7eb5a1f73af3f248 | |
parent | b9f13e4266e1a358f8e0f5ee3542e657eabb8a19 (diff) | |
download | FreeBSD-src-1ff719505763720315217ca8b7eb6d6f03c49222.zip FreeBSD-src-1ff719505763720315217ca8b7eb6d6f03c49222.tar.gz |
Unbreak alpha: On alpha a long double is the same as a double and
consequently the exponent is only 11 bits. Testing whether the
exponent equals 32767 in that case only effects to compiler warnings
and thus build breakage.
-rw-r--r-- | lib/libc/gen/isinf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/gen/isinf.c b/lib/libc/gen/isinf.c index 248fc93..4a4152a 100644 --- a/lib/libc/gen/isinf.c +++ b/lib/libc/gen/isinf.c @@ -62,5 +62,9 @@ __isinfl(long double e) u.e = e; mask_nbit_l(u); +#ifndef __alpha__ return (u.bits.exp == 32767 && u.bits.manl == 0 && u.bits.manh == 0); +#else + return (u.bits.exp == 2047 && u.bits.manl == 0 && u.bits.manh == 0); +#endif } |