Searched defs:numBits (Results 1 - 25 of 51) sorted by relevance

123

/external/deqp/framework/delibs/debase/
H A DdeInt32Test.c74 int numBits; local
98 for (numBits = 0; numBits < 32; numBits++)
100 DE_TEST_ASSERT(dePop32(1<<numBits) == 1);
101 DE_TEST_ASSERT(dePop32(~(1<<numBits)) == 31);
105 for (numBits = 0; numBits < 32; numBits++)
107 deUint32 val = (1u<<numBits);
[all...]
H A DdeMathTest.c77 int numBits; local
85 for (numBits = 0; numBits < 32; ++numBits)
88 const deInt64 x = (deInt64)(sign == -1 ? (-1) : (+1)) * (1LL << (deInt64)numBits) + (deInt64)delta;
H A DdeInt32.h485 DE_INLINE deUint32 deBitMask32 (int leastSignificantBitNdx, int numBits) argument
488 DE_ASSERT(deInRange32(numBits, 0, 32));
489 DE_ASSERT(deInRange32(leastSignificantBitNdx+numBits, 0, 32));
491 if (numBits < 32 && leastSignificantBitNdx < 32)
492 return ((1u<<numBits)-1u) << (deUint32)leastSignificantBitNdx;
493 else if (numBits == 0 && leastSignificantBitNdx == 32)
497 DE_ASSERT(numBits == 32 && leastSignificantBitNdx == 0);
502 DE_INLINE deUint32 deUintMaxValue32 (int numBits) argument
504 DE_ASSERT(deInRange32(numBits, 1, 32));
505 if (numBits < 3
511 deIntMaxValue32(int numBits) argument
523 deIntMinValue32(int numBits) argument
[all...]
/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/guava/guava-tests/test/com/google/common/math/
H A DMathBenchmarking.java43 static BigInteger randomPositiveBigInteger(int numBits) { argument
44 int digits = RANDOM_SOURCE.nextInt(numBits) + 1;
48 static BigInteger randomNonNegativeBigInteger(int numBits) { argument
49 int digits = RANDOM_SOURCE.nextInt(numBits) + 1;
53 static BigInteger randomNonZeroBigInteger(int numBits) { argument
54 BigInteger result = randomPositiveBigInteger(numBits);
58 static BigInteger randomBigInteger(int numBits) { argument
59 BigInteger result = randomNonNegativeBigInteger(numBits);
/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/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
H A DSecureRandom2Test.java163 int numBits = 29;
164 int random = mySecureRandom.getNext(numBits);
165 assertEquals(numBits, Integer.bitCount(random));
167 numBits = 0;
168 random = mySecureRandom.getNext(numBits);
169 assertEquals(numBits, Integer.bitCount(random));
171 numBits = 40;
172 random = mySecureRandom.getNext(numBits);
175 numBits = -1;
176 random = mySecureRandom.getNext(numBits);
187 getNext(int numBits) argument
[all...]
/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/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++)
/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/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
H A DBitSet.java414 public int numBits() { method in class:BitSet
/external/deqp/framework/referencerenderer/
H A DrrRasterizer.hpp45 const int numBits = sizeof(deUint64)*8; local
46 const int maxSamples = numBits/4;
/external/deqp/modules/gles31/functional/
H A Des31fTextureBorderClampTests.cpp352 int getNBitIntegerMaxValue (bool isSigned, int numBits) argument
354 DE_ASSERT(numBits < 32);
356 if (numBits == 0)
359 return deIntMaxValue32(numBits);
361 return deUintMaxValue32(numBits);
364 int getNBitIntegerMinValue (bool isSigned, int numBits)
366 DE_ASSERT(numBits < 32);
368 if (numBits == 0)
371 return deIntMinValue32(numBits);
376 tcu::IVec4 getNBitIntegerVec4MaxValue (bool isSigned, const tcu::IVec4& numBits)
[all...]
/external/llvm/include/llvm/ADT/
H A DAPInt.h172 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) argument
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, ArrayRe
422 getMaxValue(unsigned numBits) argument
427 getSignedMaxValue(unsigned numBits) argument
434 getMinValue(unsigned numBits) argument
437 getSignedMinValue(unsigned numBits) argument
454 getAllOnesValue(unsigned numBits) argument
461 getNullValue(unsigned numBits) argument
480 getOneBitSet(unsigned numBits, unsigned BitNo) argument
499 getBitsSet(unsigned numBits, unsigned loBit, unsigned hiBit) argument
[all...]
H A DAPSInt.h267 static APSInt getMaxValue(uint32_t numBits, bool Unsigned) { argument
268 return APSInt(Unsigned ? APInt::getMaxValue(numBits)
269 : APInt::getSignedMaxValue(numBits), Unsigned);
274 static APSInt getMinValue(uint32_t numBits, bool Unsigned) { argument
275 return APSInt(Unsigned ? APInt::getMinValue(numBits)
276 : APInt::getSignedMinValue(numBits), Unsigned);
/external/llvm/lib/AsmParser/
H A DLLLexer.cpp906 uint32_t numBits = ((Len * 64) / 19) + 2; local
907 APInt Tmp(numBits, StringRef(TokStart, Len), 10);
910 if (minBits > 0 && minBits < numBits)
915 if (activeBits > 0 && activeBits < numBits)
/external/lzma/CPP/7zip/Compress/
H A DRangeCoder.h75 void EncodeDirectBits(UInt32 value, int numBits) argument
77 for (numBits--; numBits >= 0; numBits--)
80 Low += Range & (0 - ((value >> numBits) & 1));
/external/llvm/lib/Support/
H A DAPInt.cpp77 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) { argument
107 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal) argument
108 : BitWidth(numBits), VAL(0) {
112 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) argument
113 : BitWidth(numBits), VAL(0) {
683 /// This function returns the high "numBits" bits of this APInt.
684 APInt APInt::getHiBits(unsigned numBits) const {
685 return APIntOps::lshr(*this, BitWidth - numBits);
688 /// This function returns the low "numBits" bits of this APInt.
689 APInt APInt::getLoBits(unsigned numBits) cons
[all...]
/external/llvm/utils/TableGen/
H A DCodeGenTarget.cpp348 unsigned numBits = BI->getNumBits(); local
350 SmallVector<Init *, 16> NewBits(numBits);
352 for (unsigned bit = 0, end = numBits / 2; bit != end; ++bit) {
353 unsigned bitSwapIdx = numBits - bit - 1;
359 if (numBits % 2) {
360 unsigned middle = (numBits + 1) / 2;
/external/lzma/CS/7zip/Compress/LzmaAlone/
H A DLzmaBench.cs41 public UInt32 GetRnd(int numBits) argument
44 if (NumBits > numBits)
46 result = Value & (((UInt32)1 << numBits) - 1);
47 Value >>= numBits;
48 NumBits -= numBits;
51 numBits -= NumBits;
52 result = (Value << numBits);
54 result |= Value & (((UInt32)1 << numBits) - 1);
55 Value >>= numBits;
56 NumBits = 32 - numBits;
79 GetLogRandBits(int numBits) argument
[all...]
/external/lzma/Java/SevenZip/
H A DLzmaBench.java36 public int GetRnd(int numBits) argument
39 if (NumBits > numBits)
41 result = Value & ((1 << numBits) - 1);
42 Value >>>= numBits;
43 NumBits -= numBits;
46 numBits -= NumBits;
47 result = (Value << numBits);
49 result |= Value & (((int)1 << numBits) - 1);
50 Value >>>= numBits;
51 NumBits = 32 - numBits;
73 GetLogRandBits(int numBits) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/cso_cache/
H A Dcso_hash.c47 static int primeForNumBits(int numBits) argument
49 return (1 << numBits) + prime_deltas[numBits];
58 int numBits = 0; local
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;
86 short numBits; member in struct:cso_hash_data
[all...]
/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;

Completed in 4490 milliseconds

123