Home
last modified time | relevance | path

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

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DLockFreeTaskQueue.kt276 const val HEAD_SHIFT = 0 in isClosed() constant
277 const val HEAD_MASK = MAX_CAPACITY_MASK.toLong() shl HEAD_SHIFT in isClosed()
278 const val TAIL_SHIFT = HEAD_SHIFT + CAPACITY_BITS in isClosed()
295 fun Long.updateHead(newHead: Int) = (this wo HEAD_MASK) or (newHead.toLong() shl HEAD_SHIFT) in isClosed()
299 val head = ((this and HEAD_MASK) shr HEAD_SHIFT).toInt() in isClosed()