www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/30/10:12:49

Date: Thu, 30 Jan 1997 18:45:19 +0000 ( )
From: Gurunandan R Bhat <grbhat AT unigoa DOT ernet DOT in>
To: mharris AT blackwidow DOT saultc DOT on DOT ca
Cc: Benjamin D Chambers <chambersb AT juno DOT com>, djgpp AT delorie DOT com
Subject: Re: fixed point math: NEED HELP QUICK!
In-Reply-To: <Pine.LNX.3.95.970130050351.190C-100000@capslock.com>
Message-Id: <Pine.LNX.3.91.970130184257.2866A-100000@aditya.unigoa.ernet.in>
Mime-Version: 1.0


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

- Raw text -


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