/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
H A D | BitWriterBuffer.java | 16 public void writeBits(int i, int numBits) { argument 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/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
H A D | 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); 184 getNext(int numBits) argument [all...] |
/external/llvm/test/Scripts/ |
H A D | 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/ |
H A D | 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) argument 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, ArrayRe 397 getMaxValue(unsigned numBits) argument 402 getSignedMaxValue(unsigned numBits) argument 409 getMinValue(unsigned numBits) argument 414 getSignedMinValue(unsigned numBits) argument 429 getAllOnesValue(unsigned numBits) argument 435 getNullValue(unsigned numBits) argument 450 getOneBitSet(unsigned numBits, unsigned BitNo) argument 466 getBitsSet(unsigned numBits, unsigned loBit, unsigned hiBit) argument [all...] |
H A D | APSInt.h | 254 static APSInt getMaxValue(uint32_t numBits, bool Unsigned) { argument 255 return APSInt(Unsigned ? APInt::getMaxValue(numBits) 256 : APInt::getSignedMaxValue(numBits), Unsigned); 261 static APSInt getMinValue(uint32_t numBits, bool Unsigned) { argument 262 return APSInt(Unsigned ? APInt::getMinValue(numBits) 263 : APInt::getSignedMinValue(numBits), Unsigned);
|
/external/antlr/antlr-3.4/runtime/C/src/ |
H A D | antlr3bitset.c | 76 antlr3BitsetNew(ANTLR3_UINT32 numBits) argument 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 local 656 numBits = bitset->numBits(bitset); 669 for (i = 0, index = 1; i<numBits; i++)
|
H A D | antlr3collections.c | 2481 ANTLR3_UINT32 numBits; // How many bits are in the set local 2485 numBits = edges->numBits(edges); 2492 for (i=0; i<= numBits && range > 0; i++)
|
/external/guava/guava/src/com/google/common/hash/ |
H A D | 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/ |
H A D | CodeEmitterGen.cpp | 66 unsigned numBits = BI->getNumBits(); local 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;
|
/external/aac/libAACdec/src/ |
H A D | aac_rom.h | 135 UCHAR numBits; member in struct:__anon6
|
/external/antlr/antlr-3.4/runtime/C/include/ |
H A D | antlr3bitset.h | 101 ANTLR3_UINT32 (*numBits) (struct ANTLR3_BITSET_struct * bitset); member in struct:ANTLR3_BITSET_struct
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/ |
H A D | ANTLRBitSet.h | 75 - (NSInteger) numBits;
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/ |
H A D | ANTLRBitSet.h | 75 - (NSInteger) numBits;
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/ |
H A D | ANTLRBitSet.h | 75 - (NSInteger) numBits;
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
H A D | ANTLRBitSet.h | 76 - (NSInteger) numBits;
|
/external/webkit/Source/WebCore/platform/image-decoders/bmp/ |
H A D | BMPImageReader.cpp | 385 const int numBits = (m_infoHeader.biBitCount == 16) ? 5 : 8; local 387 m_bitMasks[i] = ((static_cast<uint32_t>(1) << (numBits * (3 - i))) - 1) ^ ((static_cast<uint32_t>(1) << (numBits * (2 - i))) - 1);
|
/external/aac/libFDK/include/ |
H A D | FDK_bitstream.h | 313 * \param numBits The number of bits to be retrieved. 316 FDK_INLINE UINT FDKgetBits (HANDLE_FDK_BITSTREAM hBitStream, UINT numBits) argument 318 return FDK_get (&hBitStream->hBitBuf, numBits) ;
|
/external/sonivox/arm-fm-22k/lib_src/ |
H A D | eas_ota.c | 96 static EAS_RESULT OTA_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue); 989 static EAS_RESULT OTA_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue) argument 998 bitsLeft = pData->current.bitCount - numBits;
|
/external/sonivox/arm-hybrid-22k/lib_src/ |
H A D | eas_ota.c | 96 static EAS_RESULT OTA_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue); 989 static EAS_RESULT OTA_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue) argument 998 bitsLeft = pData->current.bitCount - numBits;
|
/external/sonivox/arm-wt-22k/lib_src/ |
H A D | eas_ota.c | 96 static EAS_RESULT OTA_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue); 989 static EAS_RESULT OTA_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue) argument 998 bitsLeft = pData->current.bitCount - numBits;
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
H A D | BitSet.as | 208 public function get numBits():int {
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
H A D | BitSet.java | 258 public int numBits() { method in class:BitSet
|
/external/llvm/lib/AsmParser/ |
H A D | LLLexer.cpp | 776 uint32_t numBits = ((Len * 64) / 19) + 2; local 777 APInt Tmp(numBits, StringRef(TokStart, Len), 10); 780 if (minBits > 0 && minBits < numBits) 785 if (activeBits > 0 && activeBits < numBits)
|
/external/llvm/lib/Support/ |
H A D | APInt.cpp | 76 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) { argument 106 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal) argument 107 : BitWidth(numBits), VAL(0) { 111 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) argument 112 : BitWidth(numBits), VAL(0) { 670 /// HiBits - This function returns the high "numBits" bits of this APInt. 671 APInt APInt::getHiBits(unsigned numBits) const { 672 return APIntOps::lshr(*this, BitWidth - numBits); 675 /// LoBits - This function returns the low "numBits" bits of this APInt. 676 APInt APInt::getLoBits(unsigned numBits) cons [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
H A D | BitSet.js | 526 numBits: function() {
|