/dalvik/dx/src/com/android/dx/rop/cst/ |
H A D | CstLiteral64.java | 24 /** 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 D | CstLiteral32.java | 24 /** 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 D | CstLiteralBits.java | 36 * 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 D | CstDouble.java | 39 * @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 D | CstFloat.java | 40 * @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/util/_tests/ |
H A D | _Bits.java | 60 int[] bits = Bits.makeBitSet(100); 63 assertFalse(label(i), Bits.get(bits, i)); 68 int[] bits = Bits.makeBitSet(100); 69 for (int i = 0; i < bits.length; i++) { 70 bits[i] = -1; 74 assertTrue(label(i), Bits.get(bits, i)); 79 int[] bits = Bits.makeBitSet(100); 82 Bits.set(bits, i, (i % 5) == 0); 87 assertTrue(label(i), Bits.get(bits, i) == expect); 92 int[] bits [all...] |
/dalvik/dx/src/com/android/dx/util/ |
H A D | Bits.java | 31 * 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 D | BitIntSet.java | 27 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/vm/alloc/ |
H A D | HeapBitmap.c | 31 void *bits; local 36 bitsLen = HB_OFFSET_TO_INDEX(maxSize) * sizeof(*hb->bits); 37 bits = dvmAllocRegion(bitsLen, PROT_READ | PROT_WRITE, name); 38 if (bits == NULL) { 42 hb->bits = bits; 57 if (hb->bits != NULL) { 58 munmap((char *)hb->bits, hb->allocLen); 72 if (hb->bits != NULL) { 76 madvise(hb->bits, h 191 unsigned long bits = *p++; local [all...] |
H A D | HeapBitmap.h | 27 * <index> is the index of .bits that contains the bit representing 36 (HB_OFFSET_TO_INDEX(offset_) * sizeof(*((HeapBitmap *)0)->bits)) 38 /* Pack the bits in backwards so they come out in address order 48 HB_INDEX_TO_OFFSET((hb_)->bitsLen / sizeof(*(hb_)->bits)) 58 unsigned long *bits; member in struct:__anon48 60 /* The size of the used memory pointed to by bits, in bytes. This 65 /* The real size of the memory pointed to by bits. This is the 78 * to a set bit. If there are no bits set, (max < base). 107 * Visits set bits in address order. The callback is not permitted to 108 * change the bitmap bits o [all...] |
/dalvik/dx/src/com/android/dx/dex/code/form/ |
H A D | Form21h.java | 88 // 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 D | OP_CONST.S | 4 movl 2(rPC),%eax # grab all 32 bits at once
|
/dalvik/vm/mterp/x86-atom/ |
H A D | OP_SHL_LONG.S | 34 movq .LshiftMask, %xmm2 # %xmm2<- mask for the shift bits 36 pand %xmm2, %xmm0 # %xmm0<- masked shift bits
|
H A D | OP_SHL_LONG_2ADDR.S | 37 movq .LshiftMask, %xmm2 # %xmm2<- mask for the shift bits 38 pand %xmm2, %xmm0 # %xmm0<- masked shift bits
|
H A D | OP_USHR_LONG.S | 33 movsd .LshiftMask, %xmm2 # %xmm2<- mask for the shift bits 35 pand %xmm2, %xmm0 # %xmm0<- masked shift bits
|
H A D | OP_USHR_LONG_2ADDR.S | 35 movq .LshiftMask, %xmm2 # %xmm2<- mask for the shift bits 38 pand %xmm2, %xmm0 # %xmm0<- masked shift bits
|
H A D | OP_SHR_LONG.S | 37 pand %xmm2, %xmm0 # %xmm0<- masked for the shift bits 47 movq .L64bits, %xmm4 # %xmm4<- lower 64 bits set 48 psllq %xmm3, %xmm4 # %xmm4<- correct mask for sign bits
|
H A D | OP_SHR_LONG_2ADDR.S | 38 pand %xmm2, %xmm0 # %xmm0<- masked for the shift bits 48 movq .L64bits, %xmm4 # %xmm4<- lower 64 bits set 49 psllq %xmm3, %xmm4 # %xmm4<- correct mask for sign bits
|
H A D | OP_CONST.S | 32 shl $$16, %edx # move BBBB to high bits
|
/dalvik/vm/compiler/codegen/arm/ |
H A D | ArchUtility.c | 49 u4 bits = value & 0xff; local 52 return bits; 54 return (bits << 16) | bits; 56 return (bits << 24) | (bits << 8); 58 return (bits << 24) | (bits << 16) | (bits << 8) | bits; [all...] |
/dalvik/vm/alloc/TEST/HeapBitmapTest/ |
H A D | main.c | 33 assert(hb.bits != NULL); 38 /* Make sure hb.bits is mapped. 40 *hb.bits = 0x55; 41 assert(*hb.bits = 0x55); 42 *hb.bits = 0; 48 unsigned long int *bits = hb.bits; local 53 assert(hb.bits == NULL); 61 *bits = 0x55; 70 for (i = 0; i < hb->bitsLen / sizeof (*hb->bits); [all...] |
/dalvik/dx/src/com/android/dx/dex/code/ |
H A D | InsnFormat.java | 185 * Helper method to return a literal bits argument string. 207 * Helper method to return a literal bits comment string. 210 * @param width the width of the constant, in bits (used for displaying 211 * the uninterpreted bits; one of: {@code 4 8 16 32 64} 220 long bits; 223 bits = ((CstLiteral64) value).getLongBits(); 225 bits = value.getIntBits(); 229 case 4: sb.append(Hex.uNibble((int) bits)); break; 230 case 8: sb.append(Hex.u1((int) bits)); break; 231 case 16: sb.append(Hex.u2((int) bits)); brea [all...] |
/dalvik/vm/mterp/armv5te/ |
H A D | OP_IPUT_QUICK.S | 14 str r0, [r3, r1] @ obj.field (always 32 bits)<- r0
|
/dalvik/vm/mterp/armv6t2/ |
H A D | OP_IPUT_QUICK.S | 13 str r0, [r3, r1] @ obj.field (always 32 bits)<- r0
|
H A D | OP_IPUT_WIDE_QUICK.S | 13 strd r0, [r2, r3] @ obj.field (64 bits, aligned)<- r0/r1
|