On Mon, 21 Jul 2003 18:49:19 +0100, in comp.lang.c , Stewart Gordon
<> wrote:
>On 21/7/03 4:35 pm (UK time), Roy Smith let loose these words:
>
>> Just out of curiosity, what's wrong with "i / 7"?
>
>In case you hadn't noticed, the OP is looking for a method that is
>faster than the hardware divide function or whatever the compiler
>generates for that code.
He's very unlikely to find one, any well written compiler ought to be
aware of any integer divide tricks.
IMHO its more likely a homework question. I have to say, submitting
such to CLC is likely to get one an F--, because there's almost no
chance of understanding the responses, and parroting them back at your
teacher will make it VERY obvious how you found the "answer"....
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---