This unit is used by the Expressions unit and contains functions that process calculations with one or two operands and calculation operation. This unit actually generates code for addition, subtraction, multiplication, division, shifts, etc.

Integer Division

This procedure generates code for integer division with constant. Special code is generated if divisor is power of 2.

Integer Multiplication

This procedure generates code to multiply integer with integer. Multiplication with power of 2 is translated to shift, other special cases (0, 1, 3, 5, 6) are also treated separately.
<< Start < Prev 1 2 Next > End >>

© 2021 Turbo Pascal | Privacy Policy