From: mharris AT blackwidow DOT saultc DOT on DOT ca Date: Fri, 31 Jan 1997 12:34:49 -0500 (EST) Reply-To: mharris AT blackwidow DOT saultc DOT on DOT ca To: Gurunandan R Bhat cc: Benjamin D Chambers , djgpp AT delorie DOT com Subject: Re: fixed point math: NEED HELP QUICK! In-Reply-To: Message-ID: Organization: Total disorganization. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 30 Jan 1997, Gurunandan R Bhat wrote: > > > On Thu, 30 Jan 1997 mharris AT blackwidow DOT saultc DOT on DOT ca wrote: > > > > > other_stuff = stuff >> 8; /* stuff * 8 */ > > i think, if you want stuff*8 you must shift *left* by three like so? > > other_stuff = stuff << 3 Oops! That should have read: other_stuff = stuff >> 8; /* stuff / 256 */ Mike A. Harris | http://blackwidow.saultc.on.ca/~mharris Computer Consultant | My webpage has moved and my address has changed. My dynamic address: http://blackwidow.saultc.on.ca/~mharris/ip-address.html mailto:mharris AT blackwidow DOT saultc DOT on DOT ca EMACS: Escape Meta Alt Control Shift :o)