* patch for execute/920501-6.c
@ 1997-10-16 16:08 Joern Rennecke
1997-10-17 14:36 ` Jeffrey A Law
1997-10-17 19:03 ` Jeffrey A Law
0 siblings, 2 replies; 3+ messages in thread
From: Joern Rennecke @ 1997-10-16 16:08 UTC (permalink / raw)
To: tege; +Cc: egcs
sqrtllu shiftes an integer by a quantity that is 15 for the calls
in the test, and might be as high as 32 in general.
For a shift count of 15, this yields a negative value on hosts with 16 bit
ints. Herei s a fix:
*** execute/920501-6.c-old Fri Sep 5 17:16:00 1997
--- execute/920501-6.c Thu Oct 16 22:23:56 1997
*************** sqrtllu (long long unsigned t)
*** 33,39 ****
for (b = 0, s = t; b++, (s >>= 1) != 0; )
;
! s = 1 << (b >> 1);
if (b & 1)
s += s >> 1;
--- 33,39 ----
for (b = 0, s = t; b++, (s >>= 1) != 0; )
;
! s = 1LL << (b >> 1);
if (b & 1)
s += s >> 1;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: patch for execute/920501-6.c
1997-10-16 16:08 patch for execute/920501-6.c Joern Rennecke
@ 1997-10-17 14:36 ` Jeffrey A Law
1997-10-17 19:03 ` Jeffrey A Law
1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey A Law @ 1997-10-17 14:36 UTC (permalink / raw)
To: Joern Rennecke; +Cc: tege, egcs
In message < 199710162129.WAA11375@phal.cygnus.co.uk >you write:
> sqrtllu shiftes an integer by a quantity that is 15 for the calls
> in the test, and might be as high as 32 in general.
> For a shift count of 15, this yields a negative value on hosts with 16 bit
> ints. Herei s a fix:
Thanks. Installed.
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: patch for execute/920501-6.c
1997-10-16 16:08 patch for execute/920501-6.c Joern Rennecke
1997-10-17 14:36 ` Jeffrey A Law
@ 1997-10-17 19:03 ` Jeffrey A Law
1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey A Law @ 1997-10-17 19:03 UTC (permalink / raw)
To: Joern Rennecke; +Cc: tege, egcs
In message < 199710162129.WAA11375@phal.cygnus.co.uk >you write:
> sqrtllu shiftes an integer by a quantity that is 15 for the calls
> in the test, and might be as high as 32 in general.
> For a shift count of 15, this yields a negative value on hosts with 16 bit
> ints. Herei s a fix:
Thanks. Installed.
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-10-17 19:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-16 16:08 patch for execute/920501-6.c Joern Rennecke
1997-10-17 14:36 ` Jeffrey A Law
1997-10-17 19:03 ` Jeffrey A Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).