/external/chromium_org/third_party/WebKit/Source/wtf/ |
D | BitVector.cpp | 53 void BitVector::resize(size_t numBits) in resize() argument 55 if (numBits <= maxInlineBits()) { in resize() 65 resizeOutOfLine(numBits); in resize() 76 BitVector::OutOfLineBits* BitVector::OutOfLineBits::create(size_t numBits) in create() argument 81 numBits = (numBits + bitsInPointer() - 1) & ~(bitsInPointer() - 1); in create() 82 size_t size = sizeof(OutOfLineBits) + sizeof(uintptr_t) * (numBits / bitsInPointer()); in create() 84 OutOfLineBits* result = new (NotNull, allocation) OutOfLineBits(numBits); in create() 93 void BitVector::resizeOutOfLine(size_t numBits) in resizeOutOfLine() argument 95 ASSERT(numBits > maxInlineBits()); in resizeOutOfLine() 96 OutOfLineBits* newOutOfLineBits = OutOfLineBits::create(numBits); in resizeOutOfLine() [all …]
|
D | BitVector.h | 65 explicit BitVector(size_t numBits) in BitVector() argument 68 ensureSize(numBits); in BitVector() 98 return outOfLineBits()->numBits(); in size() 101 void ensureSize(size_t numBits) in ensureSize() argument 103 if (numBits <= size()) in ensureSize() 105 resizeOutOfLine(numBits); in ensureSize() 109 void resize(size_t numBits); 199 size_t numBits() const { return m_numBits; } in numBits() function 204 static OutOfLineBits* create(size_t numBits); 209 OutOfLineBits(size_t numBits) in OutOfLineBits() argument [all …]
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | SecureRandom2Test.java | 160 int numBits = 29; in test_nextJ() local 161 int random = mySecureRandom.getNext(numBits); in test_nextJ() 162 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ() 164 numBits = 0; in test_nextJ() 165 random = mySecureRandom.getNext(numBits); in test_nextJ() 166 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ() 168 numBits = 40; in test_nextJ() 169 random = mySecureRandom.getNext(numBits); in test_nextJ() 172 numBits = -1; in test_nextJ() 173 random = mySecureRandom.getNext(numBits); in test_nextJ() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 172 void fromString(unsigned numBits, StringRef str, uint8_t radix); 184 void initSlowCase(unsigned numBits, uint64_t val, bool isSigned); 236 APInt(unsigned numBits, uint64_t val, bool isSigned = false) 237 : BitWidth(numBits), VAL(0) { in BitWidth() argument 242 initSlowCase(numBits, val, isSigned); in BitWidth() 253 APInt(unsigned numBits, ArrayRef<uint64_t> bigVal); 262 APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]); 275 APInt(unsigned numBits, StringRef str, uint8_t radix); 418 static APInt getMaxValue(unsigned numBits) { in getMaxValue() argument 419 return getAllOnesValue(numBits); in getMaxValue() [all …]
|
D | APSInt.h | 254 static APSInt getMaxValue(uint32_t numBits, bool Unsigned) { in getMaxValue() argument 255 return APSInt(Unsigned ? APInt::getMaxValue(numBits) in getMaxValue() 256 : APInt::getSignedMaxValue(numBits), Unsigned); in getMaxValue() 261 static APSInt getMinValue(uint32_t numBits, bool Unsigned) { in getMinValue() argument 262 return APSInt(Unsigned ? APInt::getMinValue(numBits) in getMinValue() 263 : APInt::getSignedMinValue(numBits), Unsigned); in getMinValue()
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
D | BitWriterBuffer.java | 16 public void writeBits(int i, int numBits) { in writeBits() argument 17 …assert i <= ((1 << numBits)-1): String.format("Trying to write a value bigger (%s) than the number… in writeBits() 18 …the value before writing it and make your code is really working as intended.", i, (1<<numBits)-1); in writeBits() 21 if (numBits <= left) { in writeBits() 24 current += i << (left - numBits); in writeBits() 26 position += numBits; in writeBits() 28 int bitsSecondWrite = numBits - left; in writeBits()
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/cso_cache/ |
D | cso_hash.c | 47 static int primeForNumBits(int numBits) in primeForNumBits() argument 49 return (1 << numBits) + prime_deltas[numBits]; in primeForNumBits() 58 int numBits = 0; in countBits() local 63 numBits++; in countBits() 66 if (numBits >= (int)sizeof(prime_deltas)) { in countBits() 67 numBits = sizeof(prime_deltas) - 1; in countBits() 68 } else if (primeForNumBits(numBits) < hint) { in countBits() 69 ++numBits; in countBits() 71 return numBits; in countBits() 86 short numBits; member [all …]
|
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_hash.c | 47 static int primeForNumBits(int numBits) in primeForNumBits() argument 49 return (1 << numBits) + prime_deltas[numBits]; in primeForNumBits() 58 int numBits = 0; in countBits() local 63 numBits++; in countBits() 66 if (numBits >= (int)sizeof(prime_deltas)) { in countBits() 67 numBits = sizeof(prime_deltas) - 1; in countBits() 68 } else if (primeForNumBits(numBits) < hint) { in countBits() 69 ++numBits; in countBits() 71 return numBits; in countBits() 86 short numBits; member [all …]
|
/external/lzma/Java/SevenZip/ |
D | LzmaBench.java | 36 public int GetRnd(int numBits) in GetRnd() argument 39 if (NumBits > numBits) in GetRnd() 41 result = Value & ((1 << numBits) - 1); in GetRnd() 42 Value >>>= numBits; in GetRnd() local 43 NumBits -= numBits; in GetRnd() 46 numBits -= NumBits; in GetRnd() 47 result = (Value << numBits); in GetRnd() 49 result |= Value & (((int)1 << numBits) - 1); in GetRnd() 50 Value >>>= numBits; in GetRnd() local 51 NumBits = 32 - numBits; in GetRnd() [all …]
|
/external/lzma/CS/7zip/Compress/LzmaAlone/ |
D | LzmaBench.cs | 41 public UInt32 GetRnd(int numBits) in GetRnd() argument 44 if (NumBits > numBits) in GetRnd() 46 result = Value & (((UInt32)1 << numBits) - 1); in GetRnd() 47 Value >>= numBits; in GetRnd() 48 NumBits -= numBits; in GetRnd() 51 numBits -= NumBits; in GetRnd() 52 result = (Value << numBits); in GetRnd() 54 result |= Value & (((UInt32)1 << numBits) - 1); in GetRnd() 55 Value >>= numBits; in GetRnd() 56 NumBits = 32 - numBits; in GetRnd() [all …]
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/sets/ |
D | ANTLRBitSetTest.m | 20 CFIndex actual = (CFIndex)[bitSet numBits]; 43 CFIndex actual = (CFIndex)[bitSet numBits]; 56 CFIndex actual = (CFIndex)[bitSet numBits]; 66 CFIndex actual = (CFIndex)[bitSet numBits]; 71 actual = [bitSet numBits]; 82 CFIndex actual = (CFIndex)[copy numBits]; 83 …tEquals(actual, (CFIndex)[bitSet numBits], @"There should be three bits set in bitvector. But I ha…
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/app/ |
D | Linker.java | 604 int numBits = 30; in computeRandomBaseLoadAddress() local 605 for (; numBits > 1; numBits--) { in computeRandomBaseLoadAddress() 606 if ((1 << numBits) <= offsetLimit) in computeRandomBaseLoadAddress() 611 final int maxValue = (1 << numBits) - 1; in computeRandomBaseLoadAddress() 613 offsetLimit, numBits, maxValue, maxValue)); in computeRandomBaseLoadAddress() 617 int offset = getRandomBits(numBits); in computeRandomBaseLoadAddress() 636 private static int getRandomBits(int numBits) { in getRandomBits() argument 638 assert numBits > 0; in getRandomBits() local 639 assert numBits < 32; in getRandomBits() 667 result &= (1 << numBits) - 1; in getRandomBits() [all …]
|
/external/lzma/CPP/7zip/Compress/ |
D | RangeCoder.h | 75 void EncodeDirectBits(UInt32 value, int numBits) in EncodeDirectBits() argument 77 for (numBits--; numBits >= 0; numBits--) in EncodeDirectBits() 80 Low += Range & (0 - ((value >> numBits) & 1)); in EncodeDirectBits()
|
/external/antlr/antlr-3.4/runtime/C/src/ |
D | antlr3bitset.c | 76 antlr3BitsetNew(ANTLR3_UINT32 numBits) in antlr3BitsetNew() argument 93 if (numBits < (8 * ANTLR3_BITSET_BITS)) in antlr3BitsetNew() 95 numBits = 8 * ANTLR3_BITSET_BITS; in antlr3BitsetNew() 101 numelements = ((numBits -1) >> ANTLR3_BITSET_LOG_BITS) + 1; in antlr3BitsetNew() 132 bitset->numBits = antlr3BitsetNumBits; in antlr3BitsetSetAPI() 649 ANTLR3_UINT32 numBits; // How many bits are in the set in antlr3BitsetToIntList() local 656 numBits = bitset->numBits(bitset); in antlr3BitsetToIntList() 669 for (i = 0, index = 1; i<numBits; i++) in antlr3BitsetToIntList()
|
/external/llvm/utils/TableGen/ |
D | CodeEmitterGen.cpp | 66 unsigned numBits = BI->getNumBits(); in reverseBits() local 68 SmallVector<Init *, 16> NewBits(numBits); in reverseBits() 70 for (unsigned bit = 0, end = numBits / 2; bit != end; ++bit) { in reverseBits() 71 unsigned bitSwapIdx = numBits - bit - 1; in reverseBits() 77 if (numBits % 2) { in reverseBits() 78 unsigned middle = (numBits + 1) / 2; in reverseBits()
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/test/org/antlr/runtime/test/ |
D | TestBitSet.as | 12 assertEquals(0, bitSet.numBits); 19 assertEquals(32, bitSet.numBits);
|
/external/guava/guava/src/com/google/common/hash/ |
D | BloomFilter.java | 142 int numBits = optimalNumOfBits(expectedInsertions, falsePositiveProbability); in create() local 143 int numHashFunctions = optimalNumOfHashFunctions(expectedInsertions, numBits); in create() 144 return new BloomFilter<T>(new BitArray(numBits), numHashFunctions, funnel, in create()
|
/external/chromium_org/third_party/tlslite/tlslite/utils/ |
D | compat.py | 70 def numBits(n): function 120 def numBits(n): function
|
D | jython_compat.py | 28 def numBits(n): function 84 def numBits(n): function
|
D | cryptomath.py | 186 if (numBits(n) & 0x7)==0: 205 bits = numBits(n) 224 howManyBits = numBits(high)
|
/external/chromium_org/third_party/tlslite/scripts/ |
D | tlsdb.py | 180 def numBits(n): function 186 print numBits(N), username
|
/external/antlr/antlr-3.4/runtime/C/include/ |
D | antlr3bitset.h | 101 ANTLR3_UINT32 (*numBits) (struct ANTLR3_BITSET_struct * bitset); member
|
/external/aac/libAACdec/src/ |
D | aac_rom.h | 135 UCHAR numBits; member
|
/external/lzma/CPP/7zip/UI/Common/ |
D | ArchiveCommandLine.cpp | 593 int numBits; in ParseComplexSize() local 600 numBits = 10; in ParseComplexSize() 603 numBits = 20; in ParseComplexSize() 606 numBits = 30; in ParseComplexSize() 611 if (number >= ((UInt64)1 << (64 - numBits))) in ParseComplexSize() 613 result = number << numBits; in ParseComplexSize()
|
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/bmp/ |
D | BMPImageReader.cpp | 385 const int numBits = (m_infoHeader.biBitCount == 16) ? 5 : 8; in processBitmasks() local 387 …itMasks[i] = ((static_cast<uint32_t>(1) << (numBits * (3 - i))) - 1) ^ ((static_cast<uint32_t>(1) … in processBitmasks()
|