/external/deqp/framework/delibs/debase/ |
H A D | deInt32Test.c | 74 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 D | deMathTest.c | 77 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 D | deInt32.h | 485 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 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/guava/guava-tests/test/com/google/common/math/ |
H A D | MathBenchmarking.java | 43 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 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/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
H A D | SecureRandom2Test.java | 163 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 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/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++)
|
/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/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/ |
H A D | BitSet.java | 414 public int numBits() { method in class:BitSet
|
/external/deqp/framework/referencerenderer/ |
H A D | rrRasterizer.hpp | 45 const int numBits = sizeof(deUint64)*8; local 46 const int maxSamples = numBits/4;
|
/external/deqp/modules/gles31/functional/ |
H A D | es31fTextureBorderClampTests.cpp | 352 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 D | 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) 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 D | APSInt.h | 267 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 D | LLLexer.cpp | 906 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 D | RangeCoder.h | 75 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 D | APInt.cpp | 77 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 D | CodeGenTarget.cpp | 348 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 D | LzmaBench.cs | 41 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 D | LzmaBench.java | 36 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 D | cso_hash.c | 47 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 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;
|