Home
last modified time | relevance | path

Searched refs:numBits (Results 1 – 25 of 34) sorted by relevance

12

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DSecureRandom2Test.java160 int numBits = 29; in test_nextJ() local
161 int random = mySecureRandom.getNext(numBits); in test_nextJ()
162 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ()
164 numBits = 0; in test_nextJ()
165 random = mySecureRandom.getNext(numBits); in test_nextJ()
166 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ()
168 numBits = 40; in test_nextJ()
169 random = mySecureRandom.getNext(numBits); in test_nextJ()
172 numBits = -1; in test_nextJ()
173 random = mySecureRandom.getNext(numBits); in test_nextJ()
[all …]
/external/llvm/include/llvm/ADT/
DAPInt.h168 void fromString(unsigned numBits, StringRef str, uint8_t radix);
180 void initSlowCase(unsigned numBits, uint64_t val, bool isSigned);
229 APInt(unsigned numBits, uint64_t val, bool isSigned = false)
230 : BitWidth(numBits), VAL(0) { in BitWidth() argument
235 initSlowCase(numBits, val, isSigned); in BitWidth()
244 APInt(unsigned numBits, ArrayRef<uint64_t> bigVal);
252 APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]);
264 APInt(unsigned numBits, StringRef str, uint8_t radix);
397 static APInt getMaxValue(unsigned numBits) { in getMaxValue() argument
398 return getAllOnesValue(numBits); in getMaxValue()
[all …]
DAPSInt.h254 static APSInt getMaxValue(uint32_t numBits, bool Unsigned) { in getMaxValue() argument
255 return APSInt(Unsigned ? APInt::getMaxValue(numBits) in getMaxValue()
256 : APInt::getSignedMaxValue(numBits), Unsigned); in getMaxValue()
261 static APSInt getMinValue(uint32_t numBits, bool Unsigned) { in getMinValue() argument
262 return APSInt(Unsigned ? APInt::getMinValue(numBits) in getMinValue()
263 : APInt::getSignedMinValue(numBits), Unsigned); in getMinValue()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
DBitWriterBuffer.java16 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/llvm/test/Scripts/
Dcommon_dump.py43 val, numBits = valPair
44 assert 0 <= val < (1 << numBits)
46 val = val & (( 1 << numBits) - 1)
47 newFmt = "0x%0" + "%d" % (numBits / 4) + "x"
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/sets/
DANTLRBitSetTest.m20 CFIndex actual = (CFIndex)[bitSet numBits];
43 CFIndex actual = (CFIndex)[bitSet numBits];
56 CFIndex actual = (CFIndex)[bitSet numBits];
66 CFIndex actual = (CFIndex)[bitSet numBits];
71 actual = [bitSet numBits];
82 CFIndex actual = (CFIndex)[copy numBits];
83 …tEquals(actual, (CFIndex)[bitSet numBits], @"There should be three bits set in bitvector. But I ha…
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3bitset.c76 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()
132 bitset->numBits = antlr3BitsetNumBits; in antlr3BitsetSetAPI()
649 ANTLR3_UINT32 numBits; // How many bits are in the set in antlr3BitsetToIntList() local
656 numBits = bitset->numBits(bitset); in antlr3BitsetToIntList()
669 for (i = 0, index = 1; i<numBits; i++) in antlr3BitsetToIntList()
Dantlr3collections.c2481 ANTLR3_UINT32 numBits; // How many bits are in the set in DFS() local
2485 numBits = edges->numBits(edges); in DFS()
2492 for (i=0; i<= numBits && range > 0; i++) in DFS()
/external/llvm/utils/TableGen/
DCodeEmitterGen.cpp66 unsigned numBits = BI->getNumBits(); in reverseBits() local
68 SmallVector<Init *, 16> NewBits(numBits); in reverseBits()
70 for (unsigned bit = 0, end = numBits / 2; bit != end; ++bit) { in reverseBits()
71 unsigned bitSwapIdx = numBits - bit - 1; in reverseBits()
77 if (numBits % 2) { in reverseBits()
78 unsigned middle = (numBits + 1) / 2; in reverseBits()
/external/antlr/antlr-3.4/runtime/ActionScript/project/test/org/antlr/runtime/test/
DTestBitSet.as12 assertEquals(0, bitSet.numBits);
19 assertEquals(32, bitSet.numBits);
/external/guava/guava/src/com/google/common/hash/
DBloomFilter.java142 int numBits = optimalNumOfBits(expectedInsertions, falsePositiveProbability); in create() local
143 int numHashFunctions = optimalNumOfHashFunctions(expectedInsertions, numBits); in create()
144 return new BloomFilter<T>(new BitArray(numBits), numHashFunctions, funnel, in create()
/external/antlr/antlr-3.4/runtime/C/include/
Dantlr3bitset.h101 ANTLR3_UINT32 (*numBits) (struct ANTLR3_BITSET_struct * bitset); member
/external/aac/libAACdec/src/
Daac_rom.h135 UCHAR numBits; member
/external/webkit/Source/WebCore/platform/image-decoders/bmp/
DBMPImageReader.cpp385 const int numBits = (m_infoHeader.biBitCount == 16) ? 5 : 8; in processBitmasks() local
387 …itMasks[i] = ((static_cast<uint32_t>(1) << (numBits * (3 - i))) - 1) ^ ((static_cast<uint32_t>(1) … in processBitmasks()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRBitSet.h76 - (NSInteger) numBits;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
DANTLRBitSet.h75 - (NSInteger) numBits;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
DANTLRBitSet.h75 - (NSInteger) numBits;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
DANTLRBitSet.h75 - (NSInteger) numBits;
/external/llvm/lib/AsmParser/
DLLLexer.cpp817 uint32_t numBits = ((Len * 64) / 19) + 2; in LexDigitOrNegative() local
818 APInt Tmp(numBits, StringRef(TokStart, Len), 10); in LexDigitOrNegative()
821 if (minBits > 0 && minBits < numBits) in LexDigitOrNegative()
826 if (activeBits > 0 && activeBits < numBits) in LexDigitOrNegative()
/external/aac/libFDK/include/
DFDK_bitstream.h316 FDK_INLINE UINT FDKgetBits (HANDLE_FDK_BITSTREAM hBitStream, UINT numBits) in FDKgetBits() argument
318 return FDK_get (&hBitStream->hBitBuf, numBits) ; in FDKgetBits()
/external/sonivox/arm-wt-22k/lib_src/
Deas_ota.c96 …_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue);
989 …A_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue) in OTA_FetchBitField() argument
998 bitsLeft = pData->current.bitCount - numBits; in OTA_FetchBitField()
/external/sonivox/arm-hybrid-22k/lib_src/
Deas_ota.c96 …_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue);
989 …A_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue) in OTA_FetchBitField() argument
998 bitsLeft = pData->current.bitCount - numBits; in OTA_FetchBitField()
/external/sonivox/arm-fm-22k/lib_src/
Deas_ota.c96 …_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue);
989 …A_FetchBitField (EAS_HW_DATA_HANDLE hwInstData, S_OTA_DATA *pData, EAS_I32 numBits, EAS_U8 *pValue) in OTA_FetchBitField() argument
998 bitsLeft = pData->current.bitCount - numBits; in OTA_FetchBitField()
/external/llvm/lib/Support/
DAPInt.cpp76 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) { in initSlowCase() argument
106 APInt::APInt(unsigned numBits, ArrayRef<uint64_t> bigVal) in APInt() argument
107 : BitWidth(numBits), VAL(0) { in APInt()
111 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) in APInt() argument
112 : BitWidth(numBits), VAL(0) { in APInt()
671 APInt APInt::getHiBits(unsigned numBits) const { in getHiBits()
672 return APIntOps::lshr(*this, BitWidth - numBits); in getHiBits()
676 APInt APInt::getLoBits(unsigned numBits) const { in getLoBits()
677 return APIntOps::lshr(APIntOps::shl(*this, BitWidth - numBits), in getLoBits()
678 BitWidth - numBits); in getLoBits()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DBitSet.java258 public int numBits() { in numBits() method in BitSet

12