Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dsemaphore.c75 #define SEMCOUNT_TO_VALUE(sval) ((int)(sval) >> SEMCOUNT_VALUE_SHIFT) argument
83 #define SEMCOUNT_DECREMENT(sval) (((sval) - (1U << SEMCOUNT_VALUE_SHIFT)) & SEMCOUNT_VALUE_MASK) argument
84 #define SEMCOUNT_INCREMENT(sval) (((sval) + (1U << SEMCOUNT_VALUE_SHIFT)) & SEMCOUNT_VALUE_MASK) argument
387 int sem_getvalue(sem_t *sem, int *sval) in sem_getvalue() argument
391 if (sem == NULL || sval == NULL) { in sem_getvalue()
400 *sval = val; in sem_getvalue()