Subj : Re: faster approach to division To : comp.programming From : Willem Date : Tue Jul 12 2005 11:05 pm Mark wrote: ) I assume then that the divisor was known to you at compile time. My ) situation is more like: x / f(...) where f(...) will always return +/-1 ) or +/-2, determined at run time. *always* ? In that case, I guess you can come up with something faster, but you need to think beyond 'if' statements. there may be some bit twiddling trick. SaSW, Willem -- Disclaimer: I am in no way responsible for any of the statements made in the above text. For all I know I might be drugged or something.. No I'm not paranoid. You all think I'm paranoid, don't you ! #EOT .