Searched refs:numBits (Results 1 - 25 of 33) sorted by relevance

12

/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
H A DBitWriterBuffer.java16 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 DSecureRandom2Test.java160 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 Dcommon_dump.py37 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 DAPInt.h168 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 DAPSInt.h254 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 Dantlr3bitset.c76 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 Dantlr3collections.c2481 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 DBloomFilter.java142 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 DCodeEmitterGen.cpp66 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 Daac_rom.h135 UCHAR numBits; member in struct:__anon6
/external/antlr/antlr-3.4/runtime/C/include/
H A Dantlr3bitset.h101 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 DANTLRBitSet.h75 - (NSInteger) numBits;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
H A DANTLRBitSet.h75 - (NSInteger) numBits;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
H A DANTLRBitSet.h75 - (NSInteger) numBits;
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
H A DANTLRBitSet.h76 - (NSInteger) numBits;
/external/webkit/Source/WebCore/platform/image-decoders/bmp/
H A DBMPImageReader.cpp385 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 DFDK_bitstream.h313 * \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 Deas_ota.c96 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 Deas_ota.c96 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 Deas_ota.c96 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 DBitSet.as208 public function get numBits():int {
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
H A DBitSet.java258 public int numBits() { method in class:BitSet
/external/llvm/lib/AsmParser/
H A DLLLexer.cpp776 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 DAPInt.cpp76 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 DBitSet.js526 numBits: function() {

Completed in 1029 milliseconds

12