USEM_MAX_COUNT
_Static_assert(SEM_VALUE_MAX <= USEM_MAX_COUNT, "SEM_VALUE_MAX too large");
#define USEM_COUNT(c) ((c) & USEM_MAX_COUNT)