On 01/19/2014 09:45 PM, Sven Barth wrote:

Can't really comment on floats, but for integers the fasted to multiply by 2 should be a shift left.
GCC automatically optimizes this. With the small "embedded" CPUs I usually use, it even converts more most multiplications and divisions with constants to a series of adds and shiftts.

-Michael
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to