/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
BitWriterBuffer.java | 16 public void writeBits(int i, int numBits) { 17 assert i <= ((1 << numBits)-1): String.format("Trying to write a value bigger (%s) than the number bits (%s) allows. " + 18 "Please mask the value before writing it and make your code is really working as intended.", i, (1<<numBits)-1); 21 if (numBits <= left) { 24 current += i << (left - numBits); 26 position += numBits; 28 int bitsSecondWrite = numBits - left;
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
h264bsd_stream.h | 58 u32 h264bsdGetBits(strmData_t *pStrmData, u32 numBits); 62 u32 h264bsdFlushBits(strmData_t *pStrmData, u32 numBits);
|
h264bsd_stream.c | 61 numBits number of bits to read 72 u32 h264bsdGetBits(strmData_t *pStrmData, u32 numBits) 78 ASSERT(numBits < 32); 80 out = h264bsdShowBits32(pStrmData) >> (32 - numBits); 82 if (h264bsdFlushBits(pStrmData, numBits) == HANTRO_OK) 177 numBits number of bits to remove 188 u32 h264bsdFlushBits(strmData_t *pStrmData, u32 numBits) 197 pStrmData->strmBuffReadBits += numBits;
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
SecureRandom2Test.java | 160 int numBits = 29; 161 int random = mySecureRandom.getNext(numBits); 162 assertEquals(numBits, Integer.bitCount(random)); 164 numBits = 0; 165 random = mySecureRandom.getNext(numBits); 166 assertEquals(numBits, Integer.bitCount(random)); 168 numBits = 40; 169 random = mySecureRandom.getNext(numBits); 172 numBits = -1; 173 random = mySecureRandom.getNext(numBits); [all...] |
/external/chromium_org/third_party/WebKit/Source/wtf/ |
BitVector.cpp | 52 void BitVector::resize(size_t numBits) 54 if (numBits <= maxInlineBits()) { 64 resizeOutOfLine(numBits); 75 BitVector::OutOfLineBits* BitVector::OutOfLineBits::create(size_t numBits) 77 numBits = (numBits + bitsInPointer() - 1) & ~(bitsInPointer() - 1); 78 size_t size = sizeof(OutOfLineBits) + sizeof(uintptr_t) * (numBits / bitsInPointer()); 79 OutOfLineBits* result = new (NotNull, fastMalloc(size)) OutOfLineBits(numBits); 88 void BitVector::resizeOutOfLine(size_t numBits) 90 ASSERT(numBits > maxInlineBits()) [all...] |
BitVector.h | 65 explicit BitVector(size_t numBits) 68 ensureSize(numBits); 98 return outOfLineBits()->numBits(); 101 void ensureSize(size_t numBits) 103 if (numBits <= size()) 105 resizeOutOfLine(numBits); 109 void resize(size_t numBits); 199 size_t numBits() const { return m_numBits; } 204 static OutOfLineBits* create(size_t numBits); 209 OutOfLineBits(size_t numBits) [all...] |
/external/llvm/include/llvm/ADT/ |
APInt.h | 172 void fromString(unsigned numBits, StringRef str, uint8_t radix); 184 void initSlowCase(unsigned numBits, uint64_t val, bool isSigned); 226 /// \brief Create a new APInt of numBits width, initialized as val. 233 /// \param numBits the bit width of the constructed APInt 236 APInt(unsigned numBits, uint64_t val, bool isSigned = false) 237 : BitWidth(numBits), VAL(0) { 242 initSlowCase(numBits, val, isSigned); 246 /// \brief Construct an APInt of numBits width, initialized as bigVal[]. 251 /// \param numBits the bit width of the constructed APInt 253 APInt(unsigned numBits, ArrayRef<uint64_t> bigVal) [all...] |
APSInt.h | 254 static APSInt getMaxValue(uint32_t numBits, bool Unsigned) { 255 return APSInt(Unsigned ? APInt::getMaxValue(numBits) 256 : APInt::getSignedMaxValue(numBits), Unsigned); 261 static APSInt getMinValue(uint32_t numBits, bool Unsigned) { 262 return APSInt(Unsigned ? APInt::getMinValue(numBits) 263 : APInt::getSignedMinValue(numBits), Unsigned);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SecureRandom2Test.java | 276 int numBits = 29; 277 int random = mySecureRandom.getNext(numBits); 278 assertEquals(numBits, Integer.bitCount(random)); 280 numBits = 0; 281 random = mySecureRandom.getNext(numBits); 282 assertEquals(numBits, Integer.bitCount(random)); 284 numBits = 40; 285 random = mySecureRandom.getNext(numBits); 288 numBits = -1; 289 random = mySecureRandom.getNext(numBits); [all...] |
/libcore/luni/src/main/java/java/security/ |
SecureRandom.java | 277 * @param numBits 283 protected final int next(int numBits) { 284 if (numBits < 0) { 285 numBits = 0; 287 if (numBits > 32) { 288 numBits = 32; 291 int bytes = (numBits+7)/8; 299 ret = ret >>> (bytes*8 - numBits);
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/cso_cache/ |
cso_hash.c | 47 static int primeForNumBits(int numBits) 49 return (1 << numBits) + prime_deltas[numBits]; 58 int numBits = 0; 63 numBits++; 66 if (numBits >= (int)sizeof(prime_deltas)) { 67 numBits = sizeof(prime_deltas) - 1; 68 } else if (primeForNumBits(numBits) < hint) { 69 ++numBits; 71 return numBits; [all...] |
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
cso_hash.c | 47 static int primeForNumBits(int numBits) 49 return (1 << numBits) + prime_deltas[numBits]; 58 int numBits = 0; 63 numBits++; 66 if (numBits >= (int)sizeof(prime_deltas)) { 67 numBits = sizeof(prime_deltas) - 1; 68 } else if (primeForNumBits(numBits) < hint) { 69 ++numBits; 71 return numBits; [all...] |
/external/lzma/Java/SevenZip/ |
LzmaBench.java | 30 int NumBits;
34 NumBits = 0;
36 public int GetRnd(int numBits)
39 if (NumBits > numBits)
41 result = Value & ((1 << numBits) - 1);
42 Value >>>= numBits;
43 NumBits -= numBits;
46 numBits -= NumBits; [all...] |
/frameworks/base/keystore/java/android/security/ |
SystemKeyStore.java | 67 public String generateNewKeyHexString(int numBits, String algName, String keyName) 69 return toHexString(generateNewKey(numBits, algName, keyName)); 72 public byte[] generateNewKey(int numBits, String algName, String keyName) 83 skg.init(numBits, srng);
|
/libcore/luni/src/main/java/java/lang/ |
RealToString.java | 94 int numBits = Double.MANTISSA_BITS; 100 numBits--; 111 longDigitGenerator(f, pow, e == 0, mantissaIsZero, numBits); 113 bigIntDigitGenerator(f, pow, e == 0, numBits); 156 int numBits = Float.MANTISSA_BITS; 166 numBits--; 177 longDigitGenerator(f, pow, e == 0, mantissaIsZero, numBits); 179 bigIntDigitGenerator(f, pow, e == 0, numBits);
|
/external/lzma/CPP/7zip/Compress/ |
RangeCoder.h | 75 void EncodeDirectBits(UInt32 value, int numBits)
77 for (numBits--; numBits >= 0; numBits--)
80 Low += Range & (0 - ((value >> numBits) & 1));
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/ |
h264bsdFlushBits.s | 26 numBits RN 1 57 ADD readBits, readBits, numBits
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/ |
h264bsdFlushBits.S | 26 #define numBits r1 55 ADD readBits, readBits, numBits
|
/external/lzma/CS/7zip/Compress/LzmaAlone/ |
LzmaBench.cs | 35 int NumBits;
39 NumBits = 0;
41 public UInt32 GetRnd(int numBits)
44 if (NumBits > numBits)
46 result = Value & (((UInt32)1 << numBits) - 1);
47 Value >>= numBits;
48 NumBits -= numBits;
51 numBits -= NumBits; [all...] |
/external/antlr/antlr-3.4/runtime/C/src/ |
antlr3bitset.c | 76 antlr3BitsetNew(ANTLR3_UINT32 numBits) 93 if (numBits < (8 * ANTLR3_BITSET_BITS)) 95 numBits = 8 * ANTLR3_BITSET_BITS; 101 numelements = ((numBits -1) >> ANTLR3_BITSET_LOG_BITS) + 1; 132 bitset->numBits = antlr3BitsetNumBits; 649 ANTLR3_UINT32 numBits; // How many bits are in the set 656 numBits = bitset->numBits(bitset); 669 for (i = 0, index = 1; i<numBits; i++)
|
/external/guava/guava/src/com/google/common/hash/ |
BloomFilter.java | 142 int numBits = optimalNumOfBits(expectedInsertions, falsePositiveProbability); 143 int numHashFunctions = optimalNumOfHashFunctions(expectedInsertions, numBits); 144 return new BloomFilter<T>(new BitArray(numBits), numHashFunctions, funnel,
|
/external/llvm/utils/TableGen/ |
CodeEmitterGen.cpp | 66 unsigned numBits = BI->getNumBits(); 68 SmallVector<Init *, 16> NewBits(numBits); 70 for (unsigned bit = 0, end = numBits / 2; bit != end; ++bit) { 71 unsigned bitSwapIdx = numBits - bit - 1; 77 if (numBits % 2) { 78 unsigned middle = (numBits + 1) / 2;
|
/dalvik/vm/ |
BitVector.cpp | 151 void dvmSetInitialBits(BitVector* pBits, unsigned int numBits) 154 assert(((numBits + 31) >> 5) <= pBits->storageSize); 155 for (idx = 0; idx < (numBits >> 5); idx++) { 158 unsigned int remNumBits = numBits & 0x1f;
|
BitVector.h | 55 * dvmSetInitialBits sets all bits in [0..numBits-1]. Won't expand the vector. 63 void dvmSetInitialBits(BitVector* pBits, unsigned int numBits);
|
/external/aac/libAACdec/src/ |
aac_rom.h | 135 UCHAR numBits;
|