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

123

/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/src/com/android/dx/util/_tests/
H A D_Bits.java60 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 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/vm/alloc/
H A DHeapBitmap.c31 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 DHeapBitmap.h27 * <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 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.S4 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
H A DOP_SHR_LONG.S37 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 DOP_SHR_LONG_2ADDR.S38 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 DOP_CONST.S32 shl $$16, %edx # move BBBB to high bits
/dalvik/vm/compiler/codegen/arm/
H A DArchUtility.c49 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 Dmain.c33 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 DInsnFormat.java185 * 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 DOP_IPUT_QUICK.S14 str r0, [r3, r1] @ obj.field (always 32 bits)<- r0
/dalvik/vm/mterp/armv6t2/
H A DOP_IPUT_QUICK.S13 str r0, [r3, r1] @ obj.field (always 32 bits)<- r0
H A DOP_IPUT_WIDE_QUICK.S13 strd r0, [r2, r3] @ obj.field (64 bits, aligned)<- r0/r1

Completed in 911 milliseconds

123