spl wrote:
> To increase the performance, how to change the / operator with bitwise
> operators?
> for ex: 25/5, 225/25 or 25/3 or any division, but I am not bothered
> of any remainder.
This is not meaningful if you do not say which CPU
are you using. Division is not that expensive anymore,
and the extra code for implementing division with bitwise
operators could very well be MUCH slower.
The lcc-win compiler will replace certain kinds of division ( divisions
by an integer constant) with 3-4 instructions with shifts and adds. This
is only possible when the divisor is known at compile time.
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32