NeoCal Documentation

NeoCal for Palm OS User Guide

Bitwise Operations

The following operations can be used to manipulate the bits of the stored number:

  • calculates y AND x.
  • calculates y OR x.
  • calculates y exclusive OR x.
  • calculates the 1's complement of x.
  • calculates the 2's complement of x.
  • rotates y by x bits. A positive x rotates to the right, while a negative x rotates to the left.
  • shifts y to the left by x bits.
  • shifts y to the right by x bits.
  • performs an arithmetic shift of y to the right by x bits.