Searched refs:HEAD_SHIFT (Results 1 – 1 of 1) sorted by relevance
276 const val HEAD_SHIFT = 0 in isClosed() constant277 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()