From 1ff719505763720315217ca8b7eb6d6f03c49222 Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 10 Jul 2004 15:52:26 +0000 Subject: 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. --- lib/libc/gen/isinf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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 } -- cgit v1.1