/external/deqp/framework/delibs/debase/ |
D | deInt32Test.c | 74 int numBits; in deInt32_selfTest() local 123 for (numBits = 0; numBits < 32; numBits++) in deInt32_selfTest() 125 DE_TEST_ASSERT(dePop32(1u<<numBits) == 1); in deInt32_selfTest() 126 DE_TEST_ASSERT(dePop32(~(1u<<numBits)) == 31); in deInt32_selfTest() 130 for (numBits = 0; numBits < 32; numBits++) in deInt32_selfTest() 132 deUint32 val = (1u<<numBits); in deInt32_selfTest() 136 DE_TEST_ASSERT(exp == numBits); in deInt32_selfTest() 140 for (numBits = 0; numBits < 32; numBits++) in deInt32_selfTest() 142 int NUM_ITERS = deMax32(16, 1 << (numBits/2)); in deInt32_selfTest() 149 deUint32 val = (deRandom_getUint32(&rnd) & ((1u<<numBits)-1)) | (1u<<numBits); in deInt32_selfTest() [all …]
|
D | deInt32.h | 651 DE_INLINE deUint32 deBitMask32 (int leastSignificantBitNdx, int numBits) in deBitMask32() argument 654 DE_ASSERT(deInRange32(numBits, 0, 32)); in deBitMask32() 655 DE_ASSERT(deInRange32(leastSignificantBitNdx+numBits, 0, 32)); in deBitMask32() 657 if (numBits < 32 && leastSignificantBitNdx < 32) in deBitMask32() 658 return ((1u<<numBits)-1u) << (deUint32)leastSignificantBitNdx; in deBitMask32() 659 else if (numBits == 0 && leastSignificantBitNdx == 32) in deBitMask32() 663 DE_ASSERT(numBits == 32 && leastSignificantBitNdx == 0); in deBitMask32() 668 DE_INLINE deUint32 deUintMaxValue32 (int numBits) in deUintMaxValue32() argument 670 DE_ASSERT(deInRange32(numBits, 1, 32)); in deUintMaxValue32() 671 if (numBits < 32) in deUintMaxValue32() [all …]
|
D | deMathTest.c | 77 int numBits; in testInt32ToFloat() local 85 for (numBits = 0; numBits < 32; ++numBits) in testInt32ToFloat() 88 …const deInt64 x = (deInt64)(sign == -1 ? (-1) : (+1)) * (1LL << (deInt64)numBits) + (deInt64)delta; in testInt32ToFloat()
|
/external/rappor/client/java/com/google/android/rappor/ |
D | Encoder.java | 130 private final int numBits; field in Encoder 219 public Encoder(byte[] userSecret, String encoderId, int numBits, in Encoder() argument 228 numBits, in Encoder() 274 int numBits, in Encoder() argument 338 numBits >= 1 && numBits <= MAX_BITS, "numBits must be on range [1, " + MAX_BITS + "]."); in Encoder() 339 this.numBits = numBits; in Encoder() 341 this.inputMask = new BitSet(numBits); in Encoder() 342 this.inputMask.set(0, numBits, true); in Encoder() 345 numBloomHashes >= 1 && numBloomHashes <= numBits, in Encoder() 385 return numBits; in getNumBits() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | APInt.h | 166 void fromString(unsigned numBits, StringRef str, uint8_t radix); 178 void initSlowCase(unsigned numBits, uint64_t val, bool isSigned); 227 APInt(unsigned numBits, uint64_t val, bool isSigned = false) 228 : BitWidth(numBits), VAL(0) { in BitWidth() argument 233 initSlowCase(numBits, val, isSigned); in BitWidth() 242 APInt(unsigned numBits, ArrayRef<uint64_t> bigVal); 250 APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]); 262 APInt(unsigned numBits, StringRef str, uint8_t radix); 394 static APInt getMaxValue(unsigned numBits) { in getMaxValue() argument 395 return getAllOnesValue(numBits); in getMaxValue() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 172 void fromString(unsigned numBits, StringRef str, uint8_t radix); 236 APInt(unsigned numBits, uint64_t val, bool isSigned = false) 237 : BitWidth(numBits), VAL(0) { in BitWidth() argument 253 APInt(unsigned numBits, ArrayRef<uint64_t> bigVal); 262 APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]); 275 APInt(unsigned numBits, StringRef str, uint8_t radix); 422 static APInt getMaxValue(unsigned numBits) { in getMaxValue() argument 423 return getAllOnesValue(numBits); in getMaxValue() 427 static APInt getSignedMaxValue(unsigned numBits) { in getSignedMaxValue() argument 428 APInt API = getAllOnesValue(numBits); in getSignedMaxValue() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 176 void fromString(unsigned numBits, StringRef str, uint8_t radix); 240 APInt(unsigned numBits, uint64_t val, bool isSigned = false) 241 : BitWidth(numBits), VAL(0) { in BitWidth() argument 257 APInt(unsigned numBits, ArrayRef<uint64_t> bigVal); 266 APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]); 279 APInt(unsigned numBits, StringRef str, uint8_t radix); 426 static APInt getMaxValue(unsigned numBits) { in getMaxValue() argument 427 return getAllOnesValue(numBits); in getMaxValue() 431 static APInt getSignedMaxValue(unsigned numBits) { in getSignedMaxValue() argument 432 APInt API = getAllOnesValue(numBits); in getSignedMaxValue() [all …]
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | MathBenchmarking.java | 52 static BigInteger randomPositiveBigInteger(int numBits) { in randomPositiveBigInteger() argument 55 result = randomNonNegativeBigInteger(numBits); in randomPositiveBigInteger() 66 static BigInteger randomNonNegativeBigInteger(int numBits) { in randomNonNegativeBigInteger() argument 67 int digits = RANDOM_SOURCE.nextInt(numBits); in randomNonNegativeBigInteger() 80 static BigInteger randomNonZeroBigInteger(int numBits) { in randomNonZeroBigInteger() argument 81 BigInteger result = randomPositiveBigInteger(numBits); in randomNonZeroBigInteger() 89 static BigInteger randomBigInteger(int numBits) { in randomBigInteger() argument 92 return randomNonNegativeBigInteger(numBits); in randomBigInteger() 94 BigInteger neg = randomNonNegativeBigInteger(numBits).negate(); in randomBigInteger()
|
/external/rappor/client/javatest/com/google/android/rappor/ |
D | EncoderTest.java | 662 int numBits = 8; in testEncoderEncodeBits_prrFlipProbability() local 671 numBits, // numBits, in testEncoderEncodeBits_prrFlipProbability() 680 for (int iBit = 0; iBit < numBits; iBit++) { in testEncoderEncodeBits_prrFlipProbability() 697 for (int iBit = numBits; iBit < 64; iBit++) { in testEncoderEncodeBits_prrFlipProbability() 704 int numBits = 8; in testEncoderEncodeBits_irrFlipProbability() local 724 numBits, // numBits, in testEncoderEncodeBits_irrFlipProbability() 732 for (int iBit = 0; iBit < numBits; iBit++) { in testEncoderEncodeBits_irrFlipProbability() 759 for (int iBit = numBits; iBit < 64; iBit++) { in testEncoderEncodeBits_irrFlipProbability() 766 int numBits = 8; in testEncoderEncodeBits_endToEnd() local 785 numBits, // numBits, in testEncoderEncodeBits_endToEnd() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
D | BitWriterBuffer.java | 16 public void writeBits(int i, int numBits) { in writeBits() argument 17 …assert i <= ((1 << numBits)-1): String.format("Trying to write a value bigger (%s) than the number… in writeBits() 18 …the value before writing it and make your code is really working as intended.", i, (1<<numBits)-1); in writeBits() 21 if (numBits <= left) { in writeBits() 24 current += i << (left - numBits); in writeBits() 26 position += numBits; in writeBits() 28 int bitsSecondWrite = numBits - left; in writeBits()
|
/external/libdrm/amdgpu/ |
D | util_hash.c | 47 static int primeForNumBits(int numBits) in primeForNumBits() argument 49 return (1 << numBits) + prime_deltas[numBits]; in primeForNumBits() 57 int numBits = 0; in countBits() local 62 numBits++; in countBits() 65 if (numBits >= (int)sizeof(prime_deltas)) { in countBits() 66 numBits = sizeof(prime_deltas) - 1; in countBits() 67 } else if (primeForNumBits(numBits) < hint) { in countBits() 68 ++numBits; in countBits() 70 return numBits; in countBits() 85 short numBits; member [all …]
|
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_hash.c | 49 static int primeForNumBits(int numBits) in primeForNumBits() argument 51 return (1 << numBits) + prime_deltas[numBits]; in primeForNumBits() 60 int numBits = 0; in countBits() local 65 numBits++; in countBits() 68 if (numBits >= (int)sizeof(prime_deltas)) { in countBits() 69 numBits = sizeof(prime_deltas) - 1; in countBits() 70 } else if (primeForNumBits(numBits) < hint) { in countBits() 71 ++numBits; in countBits() 73 return numBits; in countBits() 82 short numBits; member [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | APInt.h | 183 void fromString(unsigned numBits, StringRef str, uint8_t radix); 277 APInt(unsigned numBits, uint64_t val, bool isSigned = false) 278 : BitWidth(numBits) { in BitWidth() argument 295 APInt(unsigned numBits, ArrayRef<uint64_t> bigVal); 304 APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]); 317 APInt(unsigned numBits, StringRef str, uint8_t radix); 494 bool isMask(unsigned numBits) const { in isMask() argument 495 assert(numBits != 0 && "numBits must be non-zero"); in isMask() 496 assert(numBits <= BitWidth && "numBits out of range"); in isMask() 498 return U.VAL == (WORD_MAX >> (APINT_BITS_PER_WORD - numBits)); in isMask() [all …]
|
/external/virglrenderer/src/gallium/auxiliary/cso_cache/ |
D | cso_hash.c | 47 static int primeForNumBits(int numBits) in primeForNumBits() argument 49 return (1 << numBits) + prime_deltas[numBits]; in primeForNumBits() 58 int numBits = 0; in countBits() local 63 numBits++; in countBits() 66 if (numBits >= (int)sizeof(prime_deltas)) { in countBits() 67 numBits = sizeof(prime_deltas) - 1; in countBits() 68 } else if (primeForNumBits(numBits) < hint) { in countBits() 69 ++numBits; in countBits() 71 return numBits; in countBits() 86 short numBits; member [all …]
|
/external/lzma/Java/SevenZip/ |
D | LzmaBench.java | 36 public int GetRnd(int numBits) in GetRnd() argument 39 if (NumBits > numBits) in GetRnd() 41 result = Value & ((1 << numBits) - 1); in GetRnd() 42 Value >>>= numBits; in GetRnd() local 43 NumBits -= numBits; in GetRnd() 46 numBits -= NumBits; in GetRnd() 47 result = (Value << numBits); in GetRnd() 49 result |= Value & (((int)1 << numBits) - 1); in GetRnd() 50 Value >>>= numBits; in GetRnd() local 51 NumBits = 32 - numBits; in GetRnd() [all …]
|
/external/lzma/CPP/7zip/Archive/Common/ |
D | HandlerOut.cpp | 49 unsigned numBits; in ParseSizeString() local 52 case 'b': numBits = 0; break; in ParseSizeString() 53 case 'k': numBits = 10; break; in ParseSizeString() 54 case 'm': numBits = 20; break; in ParseSizeString() 55 case 'g': numBits = 30; break; in ParseSizeString() 56 case 't': numBits = 40; break; in ParseSizeString() 59 UInt64 val2 = v << numBits; in ParseSizeString() 60 if ((val2 >> numBits) != v) in ParseSizeString()
|
/external/lzma/CS/7zip/Compress/LzmaAlone/ |
D | LzmaBench.cs | 41 public UInt32 GetRnd(int numBits) in GetRnd() argument 44 if (NumBits > numBits) in GetRnd() 46 result = Value & (((UInt32)1 << numBits) - 1); in GetRnd() 47 Value >>= numBits; in GetRnd() 48 NumBits -= numBits; in GetRnd() 51 numBits -= NumBits; in GetRnd() 52 result = (Value << numBits); in GetRnd() 54 result |= Value & (((UInt32)1 << numBits) - 1); in GetRnd() 55 Value >>= numBits; in GetRnd() 56 NumBits = 32 - numBits; in GetRnd() [all …]
|
/external/lzma/CPP/Common/ |
D | UTFConvert.cpp | 253 unsigned numBits; in Utf16_To_Utf8() local 254 if (val < _UTF8_RANGE(3)) { numBits = 6 * 3; b = _UTF8_HEAD(3, val); } in Utf16_To_Utf8() 255 else if (val < _UTF8_RANGE(4)) { numBits = 6 * 4; b = _UTF8_HEAD(4, val); } in Utf16_To_Utf8() 256 else if (val < _UTF8_RANGE(5)) { numBits = 6 * 5; b = _UTF8_HEAD(5, val); } in Utf16_To_Utf8() 257 else { numBits = 6 * 6; b = _UTF8_START(6); } in Utf16_To_Utf8() 263 numBits -= 6; in Utf16_To_Utf8() 264 *dest++ = (char)(0x80 + ((val >> numBits) & 0x3F)); in Utf16_To_Utf8() 266 while (numBits != 0); in Utf16_To_Utf8()
|
/external/antlr/runtime/ObjC/Framework/test/runtime/sets/ |
D | ANTLRBitSetTest.m | 21 CFIndex actual = (CFIndex)[bitSet numBits]; 44 CFIndex actual = (CFIndex)[bitSet numBits]; 57 CFIndex actual = (CFIndex)[bitSet numBits]; 67 CFIndex actual = (CFIndex)[bitSet numBits]; 72 actual = [bitSet numBits]; 83 CFIndex actual = (CFIndex)[copy numBits]; 84 …tEquals(actual, (CFIndex)[bitSet numBits], @"There should be three bits set in bitvector. But I ha… 107 CFIndex actual = (CFIndex)[bitSet numBits]; 112 actual = (CFIndex)[followSet numBits];
|
/external/swiftshader/third_party/LLVM/test/Scripts/ |
D | common_dump.py | 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/pdfium/fxbarcode/qrcode/ |
D | BC_QRCoderBitVector.cpp | 60 void CBC_QRCoderBitVector::AppendBits(int32_t value, int32_t numBits) { in AppendBits() argument 61 ASSERT(numBits > 0); in AppendBits() 62 ASSERT(numBits <= 32); in AppendBits() 64 int32_t numBitsLeft = numBits; in AppendBits()
|
/external/deqp/framework/common/ |
D | tcuAstcUtil.cpp | 57 const int numBits = (high-low) + 1; in getBits() local 59 DE_ASSERT(de::inRange(numBits, 1, 32)); in getBits() 61 if (numBits < 32) in getBits() 62 return (deUint32)((src >> low) & ((1u<<numBits)-1)); in getBits() 72 inline deUint32 reverseBits (deUint32 src, int numBits) in reverseBits() argument 74 DE_ASSERT(de::inRange(numBits, 0, 32)); in reverseBits() 76 for (int i = 0; i < numBits; i++) in reverseBits() 77 result |= ((src >> i) & 1) << (numBits-1-i); in reverseBits() 115 int numBits; member 117 ISEParams (ISEMode mode_, int numBits_) : mode(mode_), numBits(numBits_) {} in ISEParams() [all …]
|
/external/antlr/runtime/C/src/ |
D | antlr3bitset.c | 76 antlr3BitsetNew(ANTLR3_UINT32 numBits) in antlr3BitsetNew() argument 93 if (numBits < (8 * ANTLR3_BITSET_BITS)) in antlr3BitsetNew() 95 numBits = 8 * ANTLR3_BITSET_BITS; in antlr3BitsetNew() 101 numelements = ((numBits -1) >> ANTLR3_BITSET_LOG_BITS) + 1; in antlr3BitsetNew() 131 bitset->numBits = antlr3BitsetNumBits; in antlr3BitsetSetAPI() 648 ANTLR3_UINT32 numBits; // How many bits are in the set in antlr3BitsetToIntList() local 655 numBits = bitset->numBits(bitset); in antlr3BitsetToIntList() 668 for (i = 0, index = 1; i<numBits; i++) in antlr3BitsetToIntList()
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | spv.precise.tese.out | 24 Name 77 "numBits" 94 77(numBits): 76(ptr) Variable Function 138 Store 77(numBits) 14 160 98: 13(int) Load 77(numBits) 162 Store 77(numBits) 99 170 102: 13(int) Load 77(numBits)
|
/external/deqp/modules/gles31/functional/ |
D | es31fShaderAtomicOpTests.cpp | 578 const int numBits = m_precision == PRECISION_HIGHP ? 32 : in ShaderAtomicAndCase() local 580 const deUint32 valueMask = numBits == 32 ? ~0u : (1u<<numBits)-1u; in ShaderAtomicAndCase() 581 …m_initialValue = ~((1u<<(numBits-1u)) | 1u) & valueMask; // All bits except lowest and highest set. in ShaderAtomicAndCase() 590 const int numBits = m_precision == PRECISION_HIGHP ? 32 : in getInputs() local 592 const deUint32 valueMask = numBits == 32 ? ~0u : (1u<<numBits)-1u; in getInputs() 597 const deUint32 groupMask = 1<<rnd.getInt(0, numBits-2); // One bit is always set. in getInputs() 608 const int numBits = m_precision == PRECISION_HIGHP ? 32 : in verify() local 610 const deUint32 compareMask = (m_type == TYPE_UINT || numBits == 32) ? ~0u : (1u<<numBits)-1u; in verify() 663 const int numBits = m_precision == PRECISION_HIGHP ? 32 : in getInputs() local 671 *(deUint32*)((deUint8*)inputs + stride*(groupOffset+localNdx)) = 1u<<rnd.getInt(0, numBits-1); in getInputs() [all …]
|