HomeSort by relevance Sort by last modified time
    Searched full:numbits (Results 1 - 25 of 76) sorted by null

1 2 3 4

  /external/llvm/test/Scripts/
common_dump.py 37 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/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
SecureRandom2Test.java 160 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);
    [all...]
  /external/openssl/crypto/des/
cfb_enc.c 64 * What this means is that if you hame numbits=12 and length=2
71 void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
77 register int num=numbits/8,n=(numbits+7)/8,i,rem=numbits%8;
92 if (numbits<=0 || numbits > 64) return;
112 if (numbits == 32)
114 else if (numbits == 64)
155 if (numbits == 32
    [all...]
DES.xs 137 des_cfb_encrypt(input,numbits,ks,ivec,encrypt)
139 int numbits
156 (int)numbits,(long)len,*ks,ivec,encrypt);
179 des_ofb_encrypt(input,numbits,ks,ivec)
181 int numbits
197 numbits,len,*ks,ivec);
ofb_enc.c 62 * What this means is that if you hame numbits=12 and length=2
67 void DES_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
71 register DES_LONG d0,d1,vv0,vv1,v0,v1,n=(numbits+7)/8;
74 register int num=numbits;
des_old.c 116 void _ossl_old_des_cfb_encrypt(unsigned char *in,unsigned char *out,int numbits,
119 DES_cfb_encrypt(in, out, numbits, length,
203 int numbits,long length,des_key_schedule schedule,_ossl_old_des_cblock *ivec)
205 DES_ofb_encrypt(in, out, numbits, length, (DES_key_schedule *)schedule,
cfb64ede.c 150 int numbits,long length,DES_key_schedule *ks1,
155 register unsigned long l=length,n=((unsigned int)numbits+7)/8;
156 register int num=numbits,i;
  /external/llvm/include/llvm/Bitcode/
BitstreamWriter.h 90 void Emit(uint32_t Val, unsigned NumBits) {
91 assert(NumBits && NumBits <= 32 && "Invalid value size!");
92 assert((Val & ~(~0U >> (32-NumBits))) == 0 && "High bits set!");
94 if (CurBit + NumBits < 32) {
95 CurBit += NumBits;
110 CurBit = (CurBit+NumBits) & 31;
113 void Emit64(uint64_t Val, unsigned NumBits) {
114 if (NumBits <= 32)
115 Emit((uint32_t)Val, NumBits);
    [all...]
BitstreamReader.h 264 uint32_t Read(unsigned NumBits) {
265 assert(NumBits <= 32 && "Cannot return more than 32 bits!");
267 if (BitsInCurWord >= NumBits) {
268 uint32_t R = CurWord & ((1U << NumBits)-1);
269 CurWord >>= NumBits;
270 BitsInCurWord -= NumBits;
288 // Extract NumBits-BitsInCurWord from what we just read.
289 unsigned BitsLeft = NumBits-BitsInCurWord;
303 uint64_t Read64(unsigned NumBits) {
304 if (NumBits <= 32) return Read(NumBits)
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
SecureRandom2Test.java 276 int numBits = 29;
277 int random = mySecureRandom.getNext(numBits);
278 assertEquals(numBits, Integer.bitCount(random));
280 numBits = 0;
281 random = mySecureRandom.getNext(numBits);
282 assertEquals(numBits, Integer.bitCount(random));
284 numBits = 40;
285 random = mySecureRandom.getNext(numBits);
288 numBits = -1;
289 random = mySecureRandom.getNext(numBits);
    [all...]
  /external/llvm/include/llvm/ADT/
APInt.h 166 void fromString(unsigned numBits, StringRef str, uint8_t radix);
178 void initSlowCase(unsigned numBits, uint64_t val, bool isSigned);
223 /// @param numBits the bit width of the constructed APInt
226 /// @brief Create a new APInt of numBits width, initialized as val.
227 APInt(unsigned numBits, uint64_t val, bool isSigned = false)
228 : BitWidth(numBits), VAL(0) {
233 initSlowCase(numBits, val, isSigned);
239 /// @param numBits the bit width of the constructed APInt
241 /// @brief Construct an APInt of numBits width, initialized as bigVal[].
242 APInt(unsigned numBits, ArrayRef<uint64_t> bigVal)
    [all...]
APSInt.h 241 static APSInt getMaxValue(uint32_t numBits, bool Unsigned) {
242 return APSInt(Unsigned ? APInt::getMaxValue(numBits)
243 : APInt::getSignedMaxValue(numBits), Unsigned);
248 static APSInt getMinValue(uint32_t numBits, bool Unsigned) {
249 return APSInt(Unsigned ? APInt::getMinValue(numBits)
250 : APInt::getSignedMinValue(numBits), Unsigned);
  /frameworks/base/keystore/java/android/security/
SystemKeyStore.java 67 public String generateNewKeyHexString(int numBits, String algName, String keyName)
69 return toHexString(generateNewKey(numBits, algName, keyName));
72 public byte[] generateNewKey(int numBits, String algName, String keyName)
83 skg.init(numBits, srng);
  /external/llvm/lib/Transforms/InstCombine/
InstCombineShifts.cpp 68 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift,
84 if (CI->getZExtValue() == NumBits) {
112 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC) &&
113 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC);
124 if (CI->getValue() == NumBits) return true;
130 if (CI->getZExtValue() > NumBits) {
133 APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits))
148 if (CI->getValue() == NumBits) return true;
154 if (CI->getZExtValue() > NumBits) {
155 unsigned LowBits = CI->getZExtValue() - NumBits;
    [all...]
  /external/llvm/lib/Target/ARM/
Thumb1RegisterInfo.cpp 143 unsigned NumBits, unsigned Scale) {
145 unsigned Chunk = ((1 << NumBits) - 1) * Scale;
151 NumBits = 8;
153 Chunk = ((1 << NumBits) - 1) * Scale;
179 unsigned NumBits = 1;
187 NumBits = 7;
200 NumBits = 8;
209 NumBits = 8;
213 NumBits = 7;
217 NumBits = 8
    [all...]
  /frameworks/base/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/
h264bsdFlushBits.s 26 numBits RN 1
57 ADD readBits, readBits, numBits
  /frameworks/base/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
h264bsdFlushBits.S 26 #define numBits r1
55 ADD readBits, readBits, numBits
  /libcore/luni/src/main/java/java/lang/
RealToString.java 94 int numBits = Double.MANTISSA_BITS;
100 numBits--;
111 longDigitGenerator(f, pow, e == 0, mantissaIsZero, numBits);
113 bigIntDigitGenerator(f, pow, e == 0, numBits);
156 int numBits = Float.MANTISSA_BITS;
166 numBits--;
177 longDigitGenerator(f, pow, e == 0, mantissaIsZero, numBits);
179 bigIntDigitGenerator(f, pow, e == 0, numBits);
  /libcore/luni/src/main/java/java/security/
SecureRandom.java 280 * @param numBits
286 protected final int next(int numBits) {
287 if (numBits < 0) {
288 numBits = 0;
290 if (numBits > 32) {
291 numBits = 32;
294 int bytes = (numBits+7)/8;
302 ret = ret >>> (bytes*8 - numBits);
  /external/llvm/utils/TableGen/
CodeEmitterGen.cpp 43 unsigned numBits = BI->getNumBits();
45 SmallVector<Init *, 16> NewBits(numBits);
47 for (unsigned bit = 0, end = numBits / 2; bit != end; ++bit) {
48 unsigned bitSwapIdx = numBits - bit - 1;
54 if (numBits % 2) {
55 unsigned middle = (numBits + 1) / 2;
ARMDecoderEmitter.cpp 270 unsigned NumBits; // number of bits to filter
307 ARMFilter(ARMFilterChooser &owner, unsigned startBit, unsigned numBits,
451 unsigned NumBits) const;
541 Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed),
548 ARMFilter::ARMFilter(ARMFilterChooser &owner, unsigned startBit, unsigned numBits,
549 bool mixed) : Owner(&owner), StartBit(startBit), NumBits(numBits),
551 assert(StartBit + NumBits - 1 < BIT_WIDTH);
565 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits);
    [all...]
FixedLenDecoderEmitter.cpp 130 unsigned NumBits; // number of bits to filter
167 Filter(FilterChooser &owner, unsigned startBit, unsigned numBits, bool mixed);
303 unsigned NumBits) const;
379 Owner(f.Owner), StartBit(f.StartBit), NumBits(f.NumBits), Mixed(f.Mixed),
386 Filter::Filter(FilterChooser &owner, unsigned startBit, unsigned numBits,
387 bool mixed) : Owner(&owner), StartBit(startBit), NumBits(numBits),
389 assert(StartBit + NumBits - 1 < Owner->BitWidth);
403 bool ok = Owner->fieldFromInsn(Field, Insn, StartBit, NumBits);
    [all...]
  /dalvik/vm/
BitVector.h 55 * dvmSetInitialBits sets all bits in [0..numBits-1]. Won't expand the vector.
63 void dvmSetInitialBits(BitVector* pBits, unsigned int numBits);
BitVector.cpp 152 void dvmSetInitialBits(BitVector* pBits, unsigned int numBits)
155 assert(((numBits + 31) >> 5) <= pBits->storageSize);
156 for (idx = 0; idx < (numBits >> 5); idx++) {
159 unsigned int remNumBits = numBits & 0x1f;
  /frameworks/base/media/libstagefright/codecs/on2/h264dec/source/
h264bsd_stream.c 61 numBits number of bits to read
72 u32 h264bsdGetBits(strmData_t *pStrmData, u32 numBits)
78 ASSERT(numBits < 32);
80 out = h264bsdShowBits32(pStrmData) >> (32 - numBits);
82 if (h264bsdFlushBits(pStrmData, numBits) == HANTRO_OK)
177 numBits number of bits to remove
188 u32 h264bsdFlushBits(strmData_t *pStrmData, u32 numBits)
197 pStrmData->strmBuffReadBits += numBits;

Completed in 2189 milliseconds

1 2 3 4