extractUint32Bool function

bool extractUint32Bool(
  1. int uint32,
  2. int shift
)

Return a single bit in a 32-bit unsigned integer.

Example: viewUint32Bool(0xF010, 8) // --> true

Implementation

bool extractUint32Bool(int uint32, int shift) {
  return 0x1 & (uint32 >> shift) != 0;
}