delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/03/03/11:44:00

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Sun, 03 Mar 2002 18:23:28 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp-workers AT delorie DOT com
Message-Id: <1858-Sun03Mar2002182327+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
In-reply-to: <200203031419.g23EJBH06559@mother.ludd.luth.se> (message from
Martin Str|mberg on Sun, 3 Mar 2002 15:19:10 +0100 (MET))
Subject: Re: libm signed/unsigned warnings
References: <200203031419 DOT g23EJBH06559 AT mother DOT ludd DOT luth DOT se>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
> Date: Sun, 3 Mar 2002 15:19:10 +0100 (MET)
> 
> How about this:
> Index: djgpp//src/libm/math/e_pow.c
> ===================================================================
> RCS file: /cvs/djgpp/djgpp/src/libm/math/e_pow.c,v
> retrieving revision 1.1
> diff -p -u -r1.1 e_pow.c
> --- djgpp//src/libm/math/e_pow.c        1998/10/06 10:04:10     1.1
> +++ djgpp//src/libm/math/e_pow.c        2002/03/03 14:17:46
> @@ -109,7 +109,7 @@ ivln2_l  =  1.92596299112661746887e-08; 
>         double y_1,t1,t2,r,s,t,u,v,w;
>         __int32_t i,j,k,yisint,n;
>         __int32_t hx,hy,ix,iy;
> -       __uint32_t lx,ly;
> +       __uint32_t lx,ly,ju;
>  
>         EXTRACT_WORDS(hx,lx,x);
>         EXTRACT_WORDS(hy,ly,y);
> @@ -134,8 +134,8 @@ ivln2_l  =  1.92596299112661746887e-08; 
>             else if(iy>=0x3ff00000) {
>                 k = (iy>>20)-0x3ff;        /* exponent */
>                 if(k>20) {
> -                   j = ly>>(52-k);
> -                   if((j<<(52-k))==ly) yisint = 2-(j&1);
> +                   ju = ly>>(52-k);
> +                   if((ju<<(52-k))==ly) yisint = 2-(ju&1);

This is fine, thanks.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019