Home
last modified time | relevance | path

Searched refs:SEMCOUNT_VALUE_SHIFT (Results 1 – 1 of 1) sorted by relevance

/bionic/libc/bionic/
Dsemaphore.cpp69 #define SEMCOUNT_VALUE_SHIFT 1 macro
72 #define SEMCOUNT_FROM_VALUE(val) (((val) << SEMCOUNT_VALUE_SHIFT) & SEMCOUNT_VALUE_MASK)
76 return (static_cast<int>(sval) >> SEMCOUNT_VALUE_SHIFT); in SEMCOUNT_TO_VALUE()
85 #define SEMCOUNT_DECREMENT(sval) (((sval) - (1U << SEMCOUNT_VALUE_SHIFT)) & SEMCOUNT_VALUE_MASK)
86 #define SEMCOUNT_INCREMENT(sval) (((sval) + (1U << SEMCOUNT_VALUE_SHIFT)) & SEMCOUNT_VALUE_MASK)