Function hiNibble

Returns high 4 bits of a byte

T hiNibble(T) (
  T b
);

Example

assert(hiNibble(0xFE) == 0x0F);