LOG_UPTO method

int LOG_UPTO(
  1. int pri
)

Creates a mask for all priorities up to and including pri.

Implementation

int LOG_UPTO(int pri) => (1 << (pri + 1)) - 1;