Lines Matching refs:count
75 int32 count = atomic_set(&lock->lock, 0) - 1;
76 if (count < 0) {
79 // add to the total count -- deal with carry manually
80 if ((uint32)atomic_add(&lock->count_low, count) + count
81 < (uint32)count) {
164 int32 count = (INT_MAX >> 16) + 1;
169 lock.lock = count;
173 double tickTime = (double)totalTime / count;
175 if (totalTime > 1000000 || INT_MAX >> 2 < count)
178 count <<= 1;