Searched refs:pBits (Results 1 – 4 of 4) sorted by relevance
/dalvik/vm/ |
D | BitVector.cpp | 52 void dvmFreeBitVector(BitVector* pBits) in dvmFreeBitVector() argument 54 if (pBits == NULL) in dvmFreeBitVector() 57 free(pBits->storage); in dvmFreeBitVector() 58 free(pBits); in dvmFreeBitVector() 68 int dvmAllocBit(BitVector* pBits) in dvmAllocBit() argument 73 for (word = 0; word < pBits->storageSize; word++) { in dvmAllocBit() 74 if (pBits->storage[word] != 0xffffffff) { in dvmAllocBit() 78 bit = ffs(~(pBits->storage[word])) -1; in dvmAllocBit() 80 pBits->storage[word] |= 1 << bit; in dvmAllocBit() 88 if (!pBits->expandable) in dvmAllocBit() [all …]
|
D | BitVector.h | 37 BitVector *pBits; member 44 void dvmFreeBitVector(BitVector* pBits); 59 int dvmAllocBit(BitVector* pBits); 60 void dvmSetBit(BitVector* pBits, unsigned int num); 61 void dvmClearBit(BitVector* pBits, unsigned int num); 62 void dvmClearAllBits(BitVector* pBits); 63 void dvmSetInitialBits(BitVector* pBits, unsigned int numBits); 64 bool dvmIsBitSet(const BitVector* pBits, unsigned int num); 67 int dvmCountSetBits(const BitVector* pBits); 98 void dvmBitVectorIteratorInit(BitVector* pBits, BitVectorIterator* iterator);
|
/dalvik/vm/compiler/ |
D | Utility.cpp | 296 bool dvmCompilerSetBit(BitVector *pBits, unsigned int num) in dvmCompilerSetBit() argument 298 if (num >= pBits->storageSize * sizeof(u4) * 8) { in dvmCompilerSetBit() 299 if (!pBits->expandable) in dvmCompilerSetBit() 304 assert(newSize > pBits->storageSize); in dvmCompilerSetBit() 306 memcpy(newStorage, pBits->storage, pBits->storageSize * sizeof(u4)); in dvmCompilerSetBit() 307 memset(&newStorage[pBits->storageSize], 0, in dvmCompilerSetBit() 308 (newSize - pBits->storageSize) * sizeof(u4)); in dvmCompilerSetBit() 309 pBits->storage = newStorage; in dvmCompilerSetBit() 310 pBits->storageSize = newSize; in dvmCompilerSetBit() 313 pBits->storage[num >> 5] |= 1 << (num & 0x1f); in dvmCompilerSetBit() [all …]
|
D | CompilerUtility.h | 67 bool dvmCompilerSetBit(BitVector* pBits, unsigned int num); 68 bool dvmCompilerClearBit(BitVector* pBits, unsigned int num); 69 void dvmCompilerMarkAllBits(BitVector *pBits, bool set);
|