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.kt285 const val HEAD_SHIFT = 0 in isClosed() constant
286 const val HEAD_MASK = MAX_CAPACITY_MASK.toLong() shl HEAD_SHIFT in isClosed()
287 const val TAIL_SHIFT = HEAD_SHIFT + CAPACITY_BITS in isClosed()
304 fun Long.updateHead(newHead: Int) = (this wo HEAD_MASK) or (newHead.toLong() shl HEAD_SHIFT) in isClosed()
308 val head = ((this and HEAD_MASK) shr HEAD_SHIFT).toInt() in isClosed()