Here you can find the source of modifiedCalcElementOffset(long index, long mask)
static int modifiedCalcElementOffset(long index, long mask)
//package com.java2s; //License from project: Apache License public class Main { /**/*from www .jav a2 s . com*/ * This method assumes index is actually (index << 1) because lower bit is used for resize hence the >> 1 */ static int modifiedCalcElementOffset(long index, long mask) { return (int) (index & mask) >> 1; } }