Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Bitmapped types may be defined to further separate bit collections from numeric types. This may make it easier to verify that bit manipulations are only performed on variables that represent bitmaps.

Code Block
bgColor#ccccff
typedef uint32_t bitmap32_t;
bitmap32_t bm32 = 0x000007f3;

x = (x << 2) | 3; /* shifts in two 1-bits from the right */

...