Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation

Infix Operators Contents|Index|Previous|Next
Infix operators

Infix operators take two arguments, one on either side. Operators have precedence, but operations with equal precedence are performed left to right. Apart from + or -, both arguments must be absolute, and the result is absolute.
      • Highest Precedence
          *
          (Multiplication)
          /
          (Division)
            Truncation is the same as the C operator ‘/’.|

          %
          (Remainder)

          <
          <<
          (Shift left)

            Same as the C operator ‘<<’.

          >
          >>
          (Shift right)

            Same as the C operator ‘>>’.
      • Intermediate Precedence
        • |
          (Bitwise ‘Inclusive Or’)

          &
          (Bitwise ‘And’)

          ˆ
          (Bitwise ‘Exclusive Or’)

          !
          (Bitwise ‘Or Not’)

 
      • Lowest Precedence
        • +
          (Addition)
            If either argument is absolute, the result has the section of the other argument. You may not add together arguments from different sections.
          -
          (Subtraction)
            If the right argument is absolute, the result has the section of the left argument. If both arguments are in the same section, the result is absolute. You may not subtract arguments from different sections.
            In short, it’s only meaningful to add or subtract the offsets in an address; you can only have a defined section in one of the two arguments.

Top|Contents|Index|Previous|Next

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat