| delorie.com/archives/browse.cgi | search |
| 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 <grbhat AT unigoa DOT ernet DOT in> |
| 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.91.970130184257.2866A-100000@aditya.unigoa.ernet.in> |
| Message-ID: | <Pine.LNX.3.95.970131123400.140Y-100000@capslock.com> |
| Organization: | Total disorganization. |
| MIME-Version: | 1.0 |
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)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |