Home
last modified time | relevance | path

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

/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2CellId.java87 private static final int LOOKUP_BITS = 4; field in S2CellId
91 private static final int[] LOOKUP_POS = new int[1 << (2 * LOOKUP_BITS + 2)];
92 private static final int[] LOOKUP_IJ = new int[1 << (2 * LOOKUP_BITS + 2)];
724 final int mask = (1 << LOOKUP_BITS) - 1; in getBits()
725 bits += (((i >> (k * LOOKUP_BITS)) & mask) << (LOOKUP_BITS + 2)); in getBits()
726 bits += (((j >> (k * LOOKUP_BITS)) & mask) << 2); in getBits()
728 n[k >> 2] |= ((((long) bits) >> 2) << ((k & 3) * 2 * LOOKUP_BITS)); in getBits()
781 final int nbits = (k == 7) ? (MAX_LEVEL - 7 * LOOKUP_BITS) : LOOKUP_BITS; in getBits1()
783 bits += (((int) (id >>> (k * 2 * LOOKUP_BITS + 1)) & in getBits1()
791 + ((bits >> (LOOKUP_BITS + 2)) << (k * LOOKUP_BITS))); in getBits1()
[all …]