Searched refs:bits (Results 1 - 25 of 85) sorted by relevance

1234

/dalvik/dexgen/src/com/android/dexgen/rop/cst/
H A DCstLiteral64.java24 /** the value as {@code long} bits */
25 private final long bits; field in class:CstLiteral64
30 * @param bits the value as {@code long} bits
32 /*package*/ CstLiteral64(long bits) { argument
33 this.bits = bits;
41 bits == ((CstLiteral64) other).bits;
47 return (int) bits
[all...]
H A DCstLiteral32.java24 /** the value as {@code int} bits */
25 private final int bits; field in class:CstLiteral32
30 * @param bits the value as {@code int} bits
32 /*package*/ CstLiteral32(int bits) { argument
33 this.bits = bits;
41 bits == ((CstLiteral32) other).bits;
47 return bits;
[all...]
H A DCstLiteralBits.java36 * Gets the value as {@code int} bits. If this instance contains
37 * more bits than fit in an {@code int}, then this returns only
38 * the low-order bits.
40 * @return the bits
45 * Gets the value as {@code long} bits. If this instance contains
46 * fewer bits than fit in a {@code long}, then the result of this
49 * @return the bits
54 * Returns true if this value can fit in 16 bits with sign-extension.
56 * @return true if the sign-extended lower 16 bits are the same as
64 int bits
[all...]
H A DCstDouble.java39 * @param bits the {@code double} value as {@code long} bits
41 public static CstDouble make(long bits) { argument
46 return new CstDouble(bits);
52 * @param bits the {@code double} value as {@code long} bits
54 private CstDouble(long bits) { argument
55 super(bits);
61 long bits = getLongBits();
62 return "double{0x" + Hex.u8(bits)
[all...]
H A DCstFloat.java40 * @param bits the {@code float} value as {@code int} bits
42 public static CstFloat make(int bits) { argument
47 return new CstFloat(bits);
53 * @param bits the {@code float} value as {@code int} bits
55 private CstFloat(int bits) { argument
56 super(bits);
62 int bits = getIntBits();
63 return "float{0x" + Hex.u4(bits)
[all...]
/dalvik/dx/src/com/android/dx/rop/cst/
H A DCstLiteral64.java24 /** the value as {@code long} bits */
25 private final long bits; field in class:CstLiteral64
30 * @param bits the value as {@code long} bits
32 /*package*/ CstLiteral64(long bits) { argument
33 this.bits = bits;
41 bits == ((CstLiteral64) other).bits;
47 return (int) bits
[all...]
H A DCstLiteral32.java24 /** the value as {@code int} bits */
25 private final int bits; field in class:CstLiteral32
30 * @param bits the value as {@code int} bits
32 /*package*/ CstLiteral32(int bits) { argument
33 this.bits = bits;
41 bits == ((CstLiteral32) other).bits;
47 return bits;
[all...]
H A DCstLiteralBits.java36 * Gets the value as {@code int} bits. If this instance contains
37 * more bits than fit in an {@code int}, then this returns only
38 * the low-order bits.
40 * @return the bits
45 * Gets the value as {@code long} bits. If this instance contains
46 * fewer bits than fit in a {@code long}, then the result of this
49 * @return the bits
54 * Returns true if this value can fit in 16 bits with sign-extension.
56 * @return true if the sign-extended lower 16 bits are the same as
64 int bits
[all...]
H A DCstDouble.java39 * @param bits the {@code double} value as {@code long} bits
41 public static CstDouble make(long bits) { argument
46 return new CstDouble(bits);
52 * @param bits the {@code double} value as {@code long} bits
54 private CstDouble(long bits) { argument
55 super(bits);
61 long bits = getLongBits();
62 return "double{0x" + Hex.u8(bits)
[all...]
H A DCstFloat.java40 * @param bits the {@code float} value as {@code int} bits
42 public static CstFloat make(int bits) { argument
47 return new CstFloat(bits);
53 * @param bits the {@code float} value as {@code int} bits
55 private CstFloat(int bits) { argument
56 super(bits);
62 int bits = getIntBits();
63 return "float{0x" + Hex.u4(bits)
[all...]
/dalvik/dx/junit-tests/com/android/dx/util/
H A DBitsTest.java54 int[] bits = Bits.makeBitSet(100);
57 assertFalse(label(i), Bits.get(bits, i));
62 int[] bits = Bits.makeBitSet(100);
63 for (int i = 0; i < bits.length; i++) {
64 bits[i] = -1;
68 assertTrue(label(i), Bits.get(bits, i));
73 int[] bits = Bits.makeBitSet(100);
76 Bits.set(bits, i, (i % 5) == 0);
81 assertTrue(label(i), Bits.get(bits, i) == expect);
86 int[] bits
[all...]
/dalvik/dexgen/src/com/android/dexgen/util/
H A DBits.java31 * Constructs a bit set to contain bits up to the given index (exclusive).
44 * @param bits {@code non-null;} bit set in question
47 public static int getMax(int[] bits) { argument
48 return bits.length * 0x20;
54 * @param bits {@code non-null;} bit set to operate on
58 public static boolean get(int[] bits, int idx) { argument
61 return (bits[arrayIdx] & bit) != 0;
67 * @param bits {@code non-null;} bit set to operate on
71 public static void set(int[] bits, int idx, boolean value) { argument
76 bits[arrayId
88 set(int[] bits, int idx) argument
100 clear(int[] bits, int idx) argument
113 isEmpty(int[] bits) argument
131 bitCount(int[] bits) argument
152 anyInRange(int[] bits, int start, int end) argument
166 findFirst(int[] bits, int idx) argument
215 toHuman(int[] bits) argument
[all...]
H A DBitIntSet.java27 int[] bits; field in class:BitIntSet
35 bits = Bits.makeBitSet(max);
41 Bits.set(bits, value, true);
50 if (value >= Bits.getMax(bits)) {
52 Math.max(value + 1, 2 * Bits.getMax(bits)));
53 System.arraycopy(bits, 0, newBits, 0, bits.length);
54 bits = newBits;
60 if (value < Bits.getMax(bits)) {
61 Bits.set(bits, valu
[all...]
/dalvik/dx/src/com/android/dx/util/
H A DBits.java31 * Constructs a bit set to contain bits up to the given index (exclusive).
44 * @param bits {@code non-null;} bit set in question
47 public static int getMax(int[] bits) { argument
48 return bits.length * 0x20;
54 * @param bits {@code non-null;} bit set to operate on
58 public static boolean get(int[] bits, int idx) { argument
61 return (bits[arrayIdx] & bit) != 0;
67 * @param bits {@code non-null;} bit set to operate on
71 public static void set(int[] bits, int idx, boolean value) { argument
76 bits[arrayId
88 set(int[] bits, int idx) argument
100 clear(int[] bits, int idx) argument
113 isEmpty(int[] bits) argument
131 bitCount(int[] bits) argument
152 anyInRange(int[] bits, int start, int end) argument
166 findFirst(int[] bits, int idx) argument
215 toHuman(int[] bits) argument
[all...]
H A DBitIntSet.java27 int[] bits; field in class:BitIntSet
35 bits = Bits.makeBitSet(max);
41 Bits.set(bits, value, true);
50 if (value >= Bits.getMax(bits)) {
52 Math.max(value + 1, 2 * Bits.getMax(bits)));
53 System.arraycopy(bits, 0, newBits, 0, bits.length);
54 bits = newBits;
60 if (value < Bits.getMax(bits)) {
61 Bits.set(bits, valu
[all...]
/dalvik/dx/src/com/android/dx/dex/code/form/
H A DForm21h.java90 // Where the high bits are depends on the category of the target.
92 int bits = cb.getIntBits();
93 return ((bits & 0xffff) == 0);
95 long bits = cb.getLongBits();
96 return ((bits & 0xffffffffffffL) == 0);
104 BitSet bits = new BitSet(1);
106 bits.set(0, unsignedFitsInByte(regs.get(0).getReg()));
107 return bits;
115 short bits;
117 // Where the high bits ar
[all...]
H A DForm23x.java80 BitSet bits = new BitSet(3);
82 bits.set(0, unsignedFitsInByte(regs.get(0).getReg()));
83 bits.set(1, unsignedFitsInByte(regs.get(1).getReg()));
84 bits.set(2, unsignedFitsInByte(regs.get(2).getReg()));
85 return bits;
/dalvik/vm/alloc/
H A DHeapBitmapInlines.h34 assert(hb->bits != NULL);
36 assert(index < hb->bitsLen / sizeof(*hb->bits));
42 unsigned long *p = hb->bits + index;
47 hb->bits[index] |= mask;
50 hb->bits[index] &= ~mask;
61 * set bits will be lost.
91 * set bits will be lost.
97 assert(hb->bits != NULL);
101 return hb->bits[HB_OFFSET_TO_INDEX(offset)] & HB_OFFSET_TO_MASK(offset);
H A DHeapBitmap.cpp29 void *bits; local
34 bitsLen = HB_OFFSET_TO_INDEX(maxSize) * sizeof(*hb->bits);
35 bits = dvmAllocRegion(bitsLen, PROT_READ | PROT_WRITE, name);
36 if (bits == NULL) {
40 hb->bits = (unsigned long *)bits;
54 if (hb->bits != NULL) {
55 munmap((char *)hb->bits, hb->allocLen);
68 if (hb->bits != NULL) {
72 madvise(hb->bits, h
[all...]
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/
H A DForm21h.java88 // Where the high bits are depends on the category of the target.
90 int bits = cb.getIntBits();
91 return ((bits & 0xffff) == 0);
93 long bits = cb.getLongBits();
94 return ((bits & 0xffffffffffffL) == 0);
109 short bits;
111 // Where the high bits are depends on the category of the target.
113 bits = (short) (cb.getIntBits() >>> 16);
115 bits = (short) (cb.getLongBits() >>> 48);
118 write(out, opcodeUnit(insn, regs.get(0).getReg()), bits);
[all...]
/dalvik/vm/mterp/x86/
H A DOP_CONST.S3 movl 2(rPC),%eax # grab all 32 bits at once
/dalvik/vm/mterp/x86-atom/
H A DOP_SHL_LONG.S34 movq .LshiftMask, %xmm2 # %xmm2<- mask for the shift bits
36 pand %xmm2, %xmm0 # %xmm0<- masked shift bits
H A DOP_SHL_LONG_2ADDR.S37 movq .LshiftMask, %xmm2 # %xmm2<- mask for the shift bits
38 pand %xmm2, %xmm0 # %xmm0<- masked shift bits
H A DOP_USHR_LONG.S33 movsd .LshiftMask, %xmm2 # %xmm2<- mask for the shift bits
35 pand %xmm2, %xmm0 # %xmm0<- masked shift bits
H A DOP_USHR_LONG_2ADDR.S35 movq .LshiftMask, %xmm2 # %xmm2<- mask for the shift bits
38 pand %xmm2, %xmm0 # %xmm0<- masked shift bits

Completed in 1063 milliseconds

1234