Home
last modified time | relevance | path

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

/dalvik/dx/junit-tests/com/android/dx/util/
DBitsTest.java23 assertEquals(label(0), 0, Bits.makeBitSet(0).length); in test_makeBitSet()
26 assertEquals(label(i), 1, Bits.makeBitSet(i).length); in test_makeBitSet()
30 assertEquals(label(i), 2, Bits.makeBitSet(i).length); in test_makeBitSet()
38 assertEquals(label(i), expect, Bits.makeBitSet(i).length); in test_makeBitSet()
49 Bits.getMax(new int[expect])); in test_getMax()
54 int[] bits = Bits.makeBitSet(100); in test1_get()
57 assertFalse(label(i), Bits.get(bits, i)); in test1_get()
62 int[] bits = Bits.makeBitSet(100); in test2_get()
68 assertTrue(label(i), Bits.get(bits, i)); in test2_get()
73 int[] bits = Bits.makeBitSet(100); in test3_get()
[all …]
/dalvik/dexgen/src/com/android/dexgen/util/
DBitIntSet.java35 bits = Bits.makeBitSet(max); in BitIntSet()
41 Bits.set(bits, value, true); in add()
50 if (value >= Bits.getMax(bits)) { in ensureCapacity()
51 int[] newBits = Bits.makeBitSet( in ensureCapacity()
52 Math.max(value + 1, 2 * Bits.getMax(bits))); in ensureCapacity()
60 if (value < Bits.getMax(bits)) { in remove()
61 Bits.set(bits, value, false); in remove()
67 return (value < Bits.getMax(bits)) && Bits.get(bits, value); in has()
74 ensureCapacity(Bits.getMax(o.bits) + 1); in merge()
75 Bits.or(bits, o.bits); in merge()
[all …]
DBits.java22 public final class Bits { class
26 private Bits() { in Bits() method in Bits
224 if (Bits.get(bits, i)) { in toHuman()
DListIntSet.java90 for (int i = 0; i >= 0; i = Bits.findFirst(o.bits, i + 1)) { in merge()
/dalvik/dx/src/com/android/dx/util/
DBitIntSet.java35 bits = Bits.makeBitSet(max); in BitIntSet()
42 Bits.set(bits, value, true); in add()
51 if (value >= Bits.getMax(bits)) { in ensureCapacity()
52 int[] newBits = Bits.makeBitSet( in ensureCapacity()
53 Math.max(value + 1, 2 * Bits.getMax(bits))); in ensureCapacity()
62 if (value < Bits.getMax(bits)) { in remove()
63 Bits.set(bits, value, false); in remove()
70 return (value < Bits.getMax(bits)) && Bits.get(bits, value); in has()
78 ensureCapacity(Bits.getMax(o.bits) + 1); in merge()
79 Bits.or(bits, o.bits); in merge()
[all …]
DBits.java22 public final class Bits { class
26 private Bits() { in Bits() method in Bits
224 if (Bits.get(bits, i)) { in toHuman()
DListIntSet.java94 for (int i = 0; i >= 0; i = Bits.findFirst(o.bits, i + 1)) { in merge()
/dalvik/dx/src/com/android/dx/cf/code/
DBasicBlocker.java27 import com.android.dx.util.Bits;
109 workSet = Bits.makeBitSet(sz); in BasicBlocker()
110 liveSet = Bits.makeBitSet(sz); in BasicBlocker()
111 blockSet = Bits.makeBitSet(sz); in BasicBlocker()
288 next = Bits.findFirst(blockSet, at + 1); in getBlockList()
293 if (Bits.get(liveSet, at)) { in getBlockList()
347 Bits.set(workSet, 0); in doit()
348 Bits.set(blockSet, 0); in doit()
355 while (!Bits.isEmpty(workSet)) { in doit()
369 if (Bits.anyInRange(liveSet, start, end)) { in doit()
[all …]
DRopper.java43 import com.android.dx.util.Bits;
330 Bits.set(workSet, label); in mergeToSuccessors()
729 int[] workSet = Bits.makeBitSet(maxLabel); in doit()
731 Bits.set(workSet, 0); in doit()
736 int offset = Bits.findFirst(workSet, 0); in doit()
740 Bits.clear(workSet, offset); in doit()
1088 Bits.set(workSet, label); in mergeAndWorkAsNecessary()
1098 Bits.set(workSet, label); in mergeAndWorkAsNecessary()
DBytecodeArray.java30 import com.android.dx.util.Bits;
128 int[] result = Bits.makeBitSet(sz); in getInstructionOffsets()
132 Bits.set(result, at, true); in getInstructionOffsets()
157 int offset = Bits.findFirst(workSet, 0); in processWorkSet()
161 Bits.clear(workSet, offset); in processWorkSet()
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DLocalVariableExtractor.java19 import com.android.dexgen.util.Bits;
66 this.workSet = Bits.makeBitSet(maxLabel); in LocalVariableExtractor()
77 label = Bits.findFirst(workSet, 0)) { in doit()
78 Bits.clear(workSet, label); in doit()
187 Bits.set(workSet, succ); in processBlock()
DRopMethod.java19 import com.android.dexgen.util.Bits;
/dalvik/dx/src/com/android/dx/rop/code/
DLocalVariableExtractor.java19 import com.android.dx.util.Bits;
66 this.workSet = Bits.makeBitSet(maxLabel); in LocalVariableExtractor()
77 label = Bits.findFirst(workSet, 0)) { in doit()
78 Bits.clear(workSet, label); in doit()
187 Bits.set(workSet, succ); in processBlock()
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DRopTranslator.java39 import com.android.dexgen.util.Bits;
308 int[] workSet = Bits.makeBitSet(maxLabel); in pickOrder()
309 int[] tracebackSet = Bits.makeBitSet(maxLabel); in pickOrder()
313 Bits.set(workSet, one.getLabel()); in pickOrder()
331 label = Bits.findFirst(workSet, 0)) { in pickOrder()
351 if (Bits.get(tracebackSet, predLabel)) { in pickOrder()
359 if (!Bits.get(workSet, predLabel)) { in pickOrder()
368 Bits.set(tracebackSet, label); in pickOrder()
383 Bits.clear(workSet, label); in pickOrder()
384 Bits.clear(tracebackSet, label); in pickOrder()
[all …]
/dalvik/dx/src/com/android/dx/dex/code/
DRopTranslator.java41 import com.android.dx.util.Bits;
315 int[] workSet = Bits.makeBitSet(maxLabel); in pickOrder()
316 int[] tracebackSet = Bits.makeBitSet(maxLabel); in pickOrder()
320 Bits.set(workSet, one.getLabel()); in pickOrder()
338 label = Bits.findFirst(workSet, 0)) { in pickOrder()
358 if (Bits.get(tracebackSet, predLabel)) { in pickOrder()
366 if (!Bits.get(workSet, predLabel)) { in pickOrder()
375 Bits.set(tracebackSet, label); in pickOrder()
390 Bits.clear(workSet, label); in pickOrder()
391 Bits.clear(tracebackSet, label); in pickOrder()
[all …]
/dalvik/dx/tests/029-unit-Bits/
Dinfo.txt1 Unit test for com.android.dx.util.Bits.