Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dsemaphore.cpp75 static inline int SEMCOUNT_TO_VALUE(unsigned int sval) { in SEMCOUNT_TO_VALUE() argument
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) argument
86 #define SEMCOUNT_INCREMENT(sval) (((sval) + (1U << SEMCOUNT_VALUE_SHIFT)) & SEMCOUNT_VALUE_MASK) argument
316 int sem_getvalue(sem_t* sem, int* sval) { in sem_getvalue() argument
327 *sval = val; in sem_getvalue()