Bitwise Operators

version 1 by Bart Massey

  • Home page
  • Beginning
  • Previous



  • Chapter - Other Phrases

    [ Numbers by Krister Fundin showed me the pattern for this. ]

    To bit-negate (A - an existing number variable):
        (- {A} = ~{A}; -)

    To bit-and (A - a number) into (B - an existing number variable):
        (- {B} = {A} & {B}; -)

    To bit-or (A - a number) into (B - an existing number variable):
        (- {B} = {A} | {B}; -)

    Bitwise Operators ends here.