To: djgpp AT delorie DOT com Subject: Re: fixed point math: NEED HELP QUICK! Message-ID: <19970130.154510.4871.0.chambersb@juno.com> References: From: chambersb AT juno DOT com (Benjamin D Chambers) Date: Thu, 30 Jan 1997 18:43:24 EST 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