[fpc-devel] Bit manipulation as optimization in FPC

ik idokan at gmail.com
Wed Sep 6 21:35:54 CEST 2006


Hello,

I wonder if FPC optimize a code such as:

if a < b then
  c := d
else
  c := b;

as :

r := b + ((d - b) and -(a < b));

If so, do you check the type of CPU (because as I understand, some CPU
will not execute as fast as other CPU's.

If not, then why, and how would you optimize such code ?

Thanks,

Ido



More information about the fpc-devel mailing list