, Erik Bertelsen <erik@sockdev.uni-c.dk>
From: Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de>
List: current-users
Date: 11/11/1997 15:00:30
Excerpts from netbsd: 11-Nov-97 Re: PERL and NetBSD 1.3_ALPHA Erik
Bertelsen@sockdev.u (1628*)
> What's lukem's (and others) opinion -- should it really be
>
> if (((hx-0x3ff00000)|lx)==0) return atan(y);
Definitely.
The current test
> if((hx-(0x3ff00000|lx))==0) return atan(y); /* x=1.0 */
gives a false positive for x=1.2.
(In this case, hx = 0x3ff33333 and lx = 0x33333333.)
best regards
Matthias