/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;
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
BitVector.cpp | 53 void BitVector::resize(size_t numBits) 55 if (numBits <= maxInlineBits()) { 65 resizeOutOfLine(numBits); 76 BitVector::OutOfLineBits* BitVector::OutOfLineBits::create(size_t numBits) 81 numBits = (numBits + bitsInPointer() - 1) & ~(bitsInPointer() - 1); 82 size_t size = sizeof(OutOfLineBits) + sizeof(uintptr_t) * (numBits / bitsInPointer()); 84 OutOfLineBits* result = new (NotNull, allocation) OutOfLineBits(numBits); 93 void BitVector::resizeOutOfLine(size_t numBits) 95 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/antlr/antlr-3.4/runtime/ActionScript/project/test/org/antlr/runtime/test/ |
TestBitSet.as | 12 assertEquals(0, bitSet.numBits); 19 assertEquals(32, bitSet.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/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...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/sets/ |
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 STAssertEquals(actual, (CFIndex)[bitSet numBits], @"There should be three bits set in bitvector. But I have %d", [copy 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/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/chromium_org/third_party/openssl/openssl/crypto/des/ |
cfb_enc.c | 64 * What this means is that if you hame numbits=12 and length=2 71 void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, 77 register int num=numbits/8,n=(numbits+7)/8,i,rem=numbits%8; 92 if (numbits<=0 || numbits > 64) return; 112 if (numbits == 32) 114 else if (numbits == 64) 155 if (numbits == 32 [all...] |
DES.xs | 137 des_cfb_encrypt(input,numbits,ks,ivec,encrypt) 139 int numbits 156 (int)numbits,(long)len,*ks,ivec,encrypt); 179 des_ofb_encrypt(input,numbits,ks,ivec) 181 int numbits 197 numbits,len,*ks,ivec);
|
/external/openssl/crypto/des/ |
cfb_enc.c | 64 * What this means is that if you hame numbits=12 and length=2 71 void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, 77 register int num=numbits/8,n=(numbits+7)/8,i,rem=numbits%8; 92 if (numbits<=0 || numbits > 64) return; 112 if (numbits == 32) 114 else if (numbits == 64) 155 if (numbits == 32 [all...] |
DES.xs | 137 des_cfb_encrypt(input,numbits,ks,ivec,encrypt) 139 int numbits 156 (int)numbits,(long)len,*ks,ivec,encrypt); 179 des_ofb_encrypt(input,numbits,ks,ivec) 181 int numbits 197 numbits,len,*ks,ivec);
|
/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));
|
/external/llvm/include/llvm/Bitcode/ |
BitstreamWriter.h | 121 void Emit(uint32_t Val, unsigned NumBits) { 122 assert(NumBits && NumBits <= 32 && "Invalid value size!"); 123 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!"); 125 if (CurBit + NumBits < 32) { 126 CurBit += NumBits; 137 CurBit = (CurBit+NumBits) & 31; 140 void Emit64(uint64_t Val, unsigned NumBits) { 141 if (NumBits <= 32) 142 Emit((uint32_t)Val, NumBits); [all...] |
BitstreamReader.h | 345 uint32_t Read(unsigned NumBits) { 346 assert(NumBits && NumBits <= 32 && 350 if (BitsInCurWord >= NumBits) { 351 uint32_t R = uint32_t(CurWord) & (~0U >> (32-NumBits)); 352 CurWord >>= NumBits; 353 BitsInCurWord -= NumBits; 380 // Extract NumBits-BitsInCurWord from what we just read. 381 unsigned BitsLeft = NumBits-BitsInCurWord; 397 uint64_t Read64(unsigned NumBits) { [all...] |
/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...] |
/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...] |
/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);
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineShifts.cpp | 68 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, 84 if (CI->getZExtValue() == NumBits) { 112 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC) && 113 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC); 124 if (CI->getValue() == NumBits) return true; 130 if (CI->getZExtValue() > NumBits) { 133 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits)) 148 if (CI->getValue() == NumBits) return true; 154 if (CI->getValue().ult(TypeWidth) && CI->getZExtValue() > NumBits) { 155 unsigned LowBits = CI->getZExtValue() - NumBits; [all...] |
/external/llvm/lib/Target/ARM/ |
Thumb1RegisterInfo.cpp | 144 unsigned NumBits, unsigned Scale) { 146 unsigned Chunk = ((1 << NumBits) - 1) * Scale; 152 NumBits = 8; 154 Chunk = ((1 << NumBits) - 1) * Scale; 180 unsigned NumBits = 1; 188 NumBits = 7; 201 NumBits = 8; 210 NumBits = 8; 214 NumBits = 7; 218 NumBits = 8 [all...] |
/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
|
/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);
|