Arithmetic Operations

Standard C arithmetic and logical operations may be used to define and use symbols in the linker command file. The following table shows the order of precedence for each operator. All operators are left-associative.

Table 1. Arithmetic operators
Precedence Operators
highest (1) - ˜ !
2 * / %
3 + -
4 >> <<
5 == != > < <= >=
6 &
7 |
8 &&
9 ||
Note: The shift operator shifts two-bits for each shift operation. The divide operator performs division and rounding.