On 01/19/2014 09:45 PM, Sven Barth wrote:
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.Can't really comment on floats, but for integers the fasted to multiply by 2 should be a shift left.
-Michael _______________________________________________ fpc-pascal maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
