Searched refs:sval (Results 1 – 1 of 1) sorted by relevance
75 static inline int SEMCOUNT_TO_VALUE(unsigned int sval) { in SEMCOUNT_TO_VALUE() argument76 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) argument86 #define SEMCOUNT_INCREMENT(sval) (((sval) + (1U << SEMCOUNT_VALUE_SHIFT)) & SEMCOUNT_VALUE_MASK) argument316 int sem_getvalue(sem_t* sem, int* sval) { in sem_getvalue() argument327 *sval = val; in sem_getvalue()