/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;
|
h264bsd_cavlc.c | 330 /* macro to read numBits bits from the buffer, bits will be written to 332 #define BUFFER_SHOW(value, bits, outVal, numBits) \ 334 if (bits < (numBits)) \ 341 (outVal) = value >> (32 - (numBits)); \ 344 /* macro to flush numBits bits from the buffer */ 345 #define BUFFER_FLUSH(value, bits, numBits) \ 347 value <<= (numBits); \ 348 bits -= (numBits); \ 351 /* macro to read and flush numBits bits from the buffer, bits will be written 353 #define BUFFER_GET(value, bits, outVal, numBits) \ [all...] |
/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/llvm/test/Scripts/ |
common_dump.py | 37 2. Handle negatives and large numbers by mod (2^numBits) 39 Length is exactly 2+(numBits/4) 43 val, numBits = valPair 44 assert 0 <= val < (1 << numBits) 46 val = val & (( 1 << numBits) - 1) 47 newFmt = "0x%0" + "%d" % (numBits / 4) + "x"
|
/external/llvm/include/llvm/ADT/ |
APInt.h | 168 void fromString(unsigned numBits, StringRef str, uint8_t radix); 180 void initSlowCase(unsigned numBits, uint64_t val, bool isSigned); 225 /// @param numBits the bit width of the constructed APInt 228 /// @brief Create a new APInt of numBits width, initialized as val. 229 APInt(unsigned numBits, uint64_t val, bool isSigned = false) 230 : BitWidth(numBits), VAL(0) { 235 initSlowCase(numBits, val, isSigned); 241 /// @param numBits the bit width of the constructed APInt 243 /// @brief Construct an APInt of numBits width, initialized as bigVal[]. 244 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 | 279 * @param numBits 285 protected final int next(int numBits) { 286 if (numBits < 0) { 287 numBits = 0; 289 if (numBits > 32) { 290 numBits = 32; 293 int bytes = (numBits+7)/8; 301 ret = ret >>> (bytes*8 - numBits);
|
/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);
|
/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/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;
|
/external/antlr/antlr-3.4/runtime/C/include/ |
antlr3bitset.h | 101 ANTLR3_UINT32 (*numBits) (struct ANTLR3_BITSET_struct * bitset);
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/ |
ANTLRBitSet.h | 75 - (NSInteger) numBits;
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/ |
ANTLRBitSet.h | 75 - (NSInteger) numBits;
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/ |
ANTLRBitSet.h | 75 - (NSInteger) numBits;
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRBitSet.h | 76 - (NSInteger) numBits;
|