Mail Archives: djgpp/1997/01/30/18:49:21
On Thu, 30 Jan 1997 05:06:14 -0500 (EST) mharris AT blackwidow DOT saultc DOT on DOT ca
writes:
>On Tue, 28 Jan 1997, Benjamin D Chambers wrote:
>
>You cant be GUARANTEED that the code generated will be the shifted
>version. What if a different C compiler is used? The only way to
>ensure that you get the shifts is to code it that way. It may look
>obscure, but a comment will fix that up.
>
>other_stuff = stuff >> 8; /* stuff * 8 */
This was the original problem - shifting the wrong direction. (I think
you just made typo, though :)
Anyways, I admit - I _assumed_. I assumed that the code would be
compiled on djgpp. That's a pretty safe assumption though, right???
("It's a pretty safe assumption that the street's clear, right?" SMACK!!!
:)
...Chambers
- Raw text -