Bitwise Operators

version 1 by Bart Massey

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Primitive Operators

    To decide what number is bit-not (A - a number):
        (- (~{A}) -).

    To decide what number is (A - a number) bit-and (B - a number):
        (- ({A} & {B}) -).

    To decide what number is (A - a number) bit-or (B - a number):
        (- ({A} | {B}) -).