Home
last modified time | relevance | path

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

/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/internal/
DLockFreeTaskQueue.kt278 const val TAIL_SHIFT = HEAD_SHIFT + CAPACITY_BITS in isClosed() constant
279 const val TAIL_MASK = MAX_CAPACITY_MASK.toLong() shl TAIL_SHIFT in isClosed()
281 const val FROZEN_SHIFT = TAIL_SHIFT + CAPACITY_BITS in isClosed()
296 fun Long.updateTail(newTail: Int) = (this wo TAIL_MASK) or (newTail.toLong() shl TAIL_SHIFT) in isClosed()
300 val tail = ((this and TAIL_MASK) shr TAIL_SHIFT).toInt() in isClosed()