Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/sun/security/util/
DBitArray.java43 private static final int BITS_PER_UNIT = 8; field in BitArray
46 return idx / BITS_PER_UNIT; in subscript()
50 return 1 << (BITS_PER_UNIT - 1 - (idx % BITS_PER_UNIT)); in position()
63 repn = new byte[(length + BITS_PER_UNIT - 1)/BITS_PER_UNIT]; in BitArray()
79 if (a.length * BITS_PER_UNIT < length) { in BitArray()
86 int repLength = ((length + BITS_PER_UNIT - 1)/BITS_PER_UNIT); in BitArray()
87 int unusedBits = repLength*BITS_PER_UNIT - length; in BitArray()
258 for (int i = BITS_PER_UNIT * (repn.length - 1); i < length; i++) { in toString()
269 return new BitArray(i+1, Arrays.copyOf(repn, (i + BITS_PER_UNIT)/BITS_PER_UNIT)); in truncate()
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DBitArray.java97 private static final int BITS_PER_UNIT = 8; // 0x8 field in BitArray