cvs commit: src/lib/libc/gen isinf.c

David Schultz das at FreeBSD.ORG
Sat Jul 10 10:44:27 PDT 2004


On Sat, Jul 10, 2004, Marcel Moolenaar wrote:
> marcel      2004-07-10 15:52:26 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     lib/libc/gen         isinf.c 
>   Log:
>   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.

Thanks.  Even though the exponent range is the same for both the
IEEE extended and quad ``long double'' formats and is probably
never going to change, I should probably add some macros for these
constants.  Perhaps after including <float.h>, it would simply be
#define LDBL_MAXEXP (LDBM_MAX * 2 - 1).


More information about the cvs-all mailing list