Home
last modified time | relevance | path

Searched refs:num_bits (Results 1 – 25 of 48) sorted by relevance

12

/external/valgrind/memcheck/tests/vbit-test/
Dvbits.c54 switch (v.num_bits) { in get_bits64()
71 switch (v.num_bits) { in print_vbits()
107 undefined_vbits(unsigned num_bits) in undefined_vbits() argument
109 vbits_t new = { .num_bits = num_bits }; in undefined_vbits()
111 switch (num_bits) { in undefined_vbits()
134 defined_vbits(unsigned num_bits) in defined_vbits() argument
136 vbits_t new = { .num_bits = num_bits }; in defined_vbits()
138 switch (num_bits) { in defined_vbits()
163 assert(v1.num_bits == v2.num_bits); in equal_vbits()
165 switch (v1.num_bits) { in equal_vbits()
[all …]
Dbinary.c37 assert(v1.num_bits == v2.num_bits); in and_combine()
39 vbits_t new = { .num_bits = v2.num_bits }; in and_combine()
42 switch (v2.num_bits) { in and_combine()
52 switch (v2.num_bits) { in and_combine()
83 expected_vbits = defined_vbits(result->vbits.num_bits); in check_result_for_binary()
87 expected_vbits = undefined_vbits(result->vbits.num_bits); in check_result_for_binary()
93 result->vbits.num_bits); in check_result_for_binary()
97 assert(opnd1->vbits.num_bits == opnd2->vbits.num_bits); in check_result_for_binary()
98 assert(opnd1->vbits.num_bits == result->vbits.num_bits); in check_result_for_binary()
105 assert(opnd1->vbits.num_bits == opnd2->vbits.num_bits); in check_result_for_binary()
[all …]
Dunary.c37 unsigned num_bits = result->vbits.num_bits; in check_result_for_unary() local
43 expected_vbits = undefined_vbits(num_bits); in check_result_for_unary()
51 expected_vbits = truncate_vbits(opnd->vbits, num_bits); in check_result_for_unary()
55 expected_vbits = left_vbits(opnd->vbits, num_bits); in check_result_for_unary()
59 assert(num_bits * 2 == opnd->vbits.num_bits); in check_result_for_unary()
64 expected_vbits = sextend_vbits(opnd->vbits, num_bits); in check_result_for_unary()
68 expected_vbits = zextend_vbits(opnd->vbits, num_bits); in check_result_for_unary()
Dvbits.h38 unsigned num_bits; member
64 vbits_t undefined_vbits(unsigned num_bits);
65 vbits_t defined_vbits(unsigned num_bits);
67 vbits_t truncate_vbits(vbits_t, unsigned num_bits);
68 vbits_t left_vbits(vbits_t, unsigned num_bits);
73 vbits_t sextend_vbits(vbits_t, unsigned num_bits);
74 vbits_t zextend_vbits(vbits_t, unsigned num_bits);
75 vbits_t onehot_vbits(unsigned bitno, unsigned num_bits);
Dutil.c82 print_value(FILE *fp, value_t val, unsigned num_bits) in print_value() argument
84 switch (num_bits) { in print_value()
125 if (equal_vbits(opnd->vbits, defined_vbits(opnd->vbits.num_bits))) { in print_opnd()
127 print_value(fp, opnd->value, opnd->vbits.num_bits); in print_opnd()
Dvalgrind.c74 vbits_t actual = { .num_bits = opnd->vbits.num_bits }; in valgrind_set_vbits()
90 opnd->vbits.num_bits = bitsof_irtype(opnd->type); in valgrind_get_vbits()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_vlc.h216 vl_vlc_peekbits(struct vl_vlc *vlc, unsigned num_bits) in vl_vlc_peekbits() argument
218 assert(vl_vlc_valid_bits(vlc) >= num_bits || vlc->data >= vlc->end); in vl_vlc_peekbits()
219 return vlc->buffer >> (64 - num_bits); in vl_vlc_peekbits()
226 vl_vlc_eatbits(struct vl_vlc *vlc, unsigned num_bits) in vl_vlc_eatbits() argument
228 assert(vl_vlc_valid_bits(vlc) >= num_bits); in vl_vlc_eatbits()
230 vlc->buffer <<= num_bits; in vl_vlc_eatbits()
231 vlc->invalid_bits += num_bits; in vl_vlc_eatbits()
238 vl_vlc_get_uimsbf(struct vl_vlc *vlc, unsigned num_bits) in vl_vlc_get_uimsbf() argument
242 assert(vl_vlc_valid_bits(vlc) >= num_bits); in vl_vlc_get_uimsbf()
244 value = vlc->buffer >> (64 - num_bits); in vl_vlc_get_uimsbf()
[all …]
/external/webp/src/utils/
Drandom.h39 static WEBP_INLINE int VP8RandomBits2(VP8Random* const rg, int num_bits, in VP8RandomBits2() argument
42 assert(num_bits + VP8_RANDOM_DITHER_FIX <= 31); in VP8RandomBits2()
49 diff = (int)((uint32_t)diff << 1) >> (32 - num_bits); in VP8RandomBits2()
51 diff += 1 << (num_bits - 1); // shift back to 0.5-center in VP8RandomBits2()
55 static WEBP_INLINE int VP8RandomBits(VP8Random* const rg, int num_bits) { in VP8RandomBits() argument
56 return VP8RandomBits2(rg, num_bits, rg->amp_); in VP8RandomBits()
Dbit_reader.h95 uint32_t VP8GetValue(VP8BitReader* const br, int num_bits);
101 int32_t VP8GetSignedValue(VP8BitReader* const br, int num_bits);
Dhuffman_encode.c361 static uint32_t ReverseBits(int num_bits, uint32_t bits) { in ReverseBits() argument
364 while (i < num_bits) { in ReverseBits()
369 retval >>= (MAX_ALLOWED_CODE_LENGTH + 1 - num_bits); in ReverseBits()
/external/pdfium/third_party/freetype/src/pshinter/
Dpshrec.c128 mask->num_bits = 0; in ps_mask_done()
160 if ( (FT_UInt)idx >= mask->num_bits ) in ps_mask_test_bit()
175 if ( idx >= mask->num_bits ) in ps_mask_clear_bit()
193 if ( idx >= mask->num_bits ) in ps_mask_set_bit()
199 mask->num_bits = idx + 1; in ps_mask_set_bit()
271 mask->num_bits = 0; in ps_mask_table_alloc()
328 mask->num_bits = bit_count; in ps_mask_table_set_bits()
379 FT_UInt count1 = mask1->num_bits; in ps_mask_table_test_intersect()
380 FT_UInt count2 = mask2->num_bits; in ps_mask_table_test_intersect()
428 FT_UInt count1 = mask1->num_bits; in ps_mask_table_merge()
[all …]
/external/freetype/src/pshinter/
Dpshrec.c128 mask->num_bits = 0; in ps_mask_done()
160 if ( (FT_UInt)idx >= mask->num_bits ) in ps_mask_test_bit()
175 if ( idx >= mask->num_bits ) in ps_mask_clear_bit()
193 if ( idx >= mask->num_bits ) in ps_mask_set_bit()
199 mask->num_bits = idx + 1; in ps_mask_set_bit()
271 mask->num_bits = 0; in ps_mask_table_alloc()
328 mask->num_bits = bit_count; in ps_mask_table_set_bits()
379 FT_UInt count1 = mask1->num_bits; in ps_mask_table_test_intersect()
380 FT_UInt count2 = mask2->num_bits; in ps_mask_table_test_intersect()
428 FT_UInt count1 = mask1->num_bits; in ps_mask_table_merge()
[all …]
/external/opencv3/3rdparty/libwebp/utils/
Dbit_reader.h138 uint32_t VP8GetValue(VP8BitReader* const br, int num_bits);
144 int32_t VP8GetSignedValue(VP8BitReader* const br, int num_bits);
320 static WEBP_INLINE void VP8LDiscardBits(VP8LBitReader* const br, int num_bits) { in VP8LDiscardBits() argument
321 br->bit_pos_ += num_bits; in VP8LDiscardBits()
Dhuffman_encode.c382 static uint32_t ReverseBits(int num_bits, uint32_t bits) { in ReverseBits() argument
385 while (i < num_bits) { in ReverseBits()
390 retval >>= (MAX_ALLOWED_CODE_LENGTH + 1 - num_bits); in ReverseBits()
/external/libnfc-nci/src/nfc/tags/
Drw_t2t_ndef.c662 p_t2t->lock_tlv[p_t2t->num_lock_tlvs].num_bits = p_t2t->tlv_value[1]; in rw_t2t_handle_tlv_detect_rsp()
923 p_t2t->lock_tlv[p_t2t->num_lock_tlvs].num_bits = num_dynamic_lock_bits; in rw_t2t_extract_default_locks_info()
2153 UINT8 num_bits; in rw_t2t_get_lock_bits_for_segment() local
2185 … 1) * TAG_BITS_PER_BYTE <= p_t2t->lock_tlv[p_t2t->lockbyte[num_dynamic_locks].tlv_index].num_bits); in rw_t2t_get_lock_bits_for_segment()
2186num_bits = b_all_bits_are_locks ? TAG_BITS_PER_BYTE : p_t2t->lock_tlv[p_t2t->lockbyte… in rw_t2t_get_lock_bits_for_segment()
2188 if (((bytes_locked_per_bit * num_bits) + byte_count) <= lower_offset) in rw_t2t_get_lock_bits_for_segment()
2191 byte_count += bytes_locked_per_bit * num_bits; in rw_t2t_get_lock_bits_for_segment()
2197 while (bit_count < num_bits) in rw_t2t_get_lock_bits_for_segment()
2223 … 1) * TAG_BITS_PER_BYTE <= p_t2t->lock_tlv[p_t2t->lockbyte[num_dynamic_locks].tlv_index].num_bits); in rw_t2t_get_lock_bits_for_segment()
2224num_bits = b_all_bits_are_locks ? TAG_BITS_PER_BYTE : p_t2t->lock_tlv[p_t2t->lockbyte… in rw_t2t_get_lock_bits_for_segment()
[all …]
Drw_t1t_ndef.c370 UINT8 num_bits; in rw_t1t_handle_write_rsp() local
475num_bits = ((p_t1t->lockbyte[num_locks].byte_index + 1)* 8 <= p_t1t->lock_tlv[p_t1t->lockbyte[num_… in rw_t1t_handle_write_rsp()
481 write_block[(UINT8) (offset%T1T_BLOCK_SIZE)] |= tags_pow (2,num_bits) - 1; in rw_t1t_handle_write_rsp()
486 …t1t->lockbyte[lock_count].tlv_index].num_bits) ? 8 : p_t1t->lock_tlv[p_t1t->lockbyte[lock_count].t… in rw_t1t_handle_write_rsp()
514 value = (UINT8) (tags_pow (2,num_bits) - 1); in rw_t1t_handle_write_rsp()
1117 p_t1t->lock_tlv[p_t1t->num_lock_tlvs].num_bits = tlv_value[1]; in rw_t1t_handle_tlv_detect_rsp()
2018 UINT8 num_bits; in rw_t1t_get_lock_bits_for_segment() local
2034 … 1) * TAG_BITS_PER_BYTE <= p_t1t->lock_tlv[p_t1t->lockbyte[num_dynamic_locks].tlv_index].num_bits); in rw_t1t_get_lock_bits_for_segment()
2035num_bits = b_all_bits_are_locks ? TAG_BITS_PER_BYTE : p_t1t->lock_tlv[p_t1t->lockbyte[num_dynamic_… in rw_t1t_get_lock_bits_for_segment()
2038 if (bytes_locked_per_bit * num_bits + byte_count <= lower_offset) in rw_t1t_get_lock_bits_for_segment()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/gslib/
Dhashing_helper.py140 def _ExtendByZeros(crc, num_bits): argument
155 while num_bits != 0:
156 if num_bits & 1:
159 num_bits >>= 1
/external/boringssl/src/crypto/ecdsa/
Decdsa.c114 size_t num_bits; in digest_to_bn() local
116 num_bits = BN_num_bits(order); in digest_to_bn()
119 if (8 * digest_len > num_bits) { in digest_to_bn()
120 digest_len = (num_bits + 7) / 8; in digest_to_bn()
128 if ((8 * digest_len > num_bits) && in digest_to_bn()
129 !BN_rshift(out, out, 8 - (num_bits & 0x7))) { in digest_to_bn()
/external/libchrome/crypto/
Drsa_private_key_openssl.cc57 RSAPrivateKey* RSAPrivateKey::Create(uint16_t num_bits) { in Create() argument
65 if (!RSA_generate_key_ex(rsa_key.get(), num_bits, bn.get(), NULL)) in Create()
Dnss_key_util.cc65 uint16_t num_bits, in GenerateRSAKeyPairNSS() argument
72 param.keySizeInBits = num_bits; in GenerateRSAKeyPairNSS()
Drsa_private_key_nss.cc52 RSAPrivateKey* RSAPrivateKey::Create(uint16_t num_bits) { in Create() argument
63 if (!GenerateRSAKeyPairNSS(slot.get(), num_bits, false /* not permanent */, in Create()
Dnss_key_util.h25 uint16_t num_bits,
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/
DBitSet.pm183 sub num_bits : method { method in ANTLR::Runtime::BitSet
190 return $self->num_bits() / $self->BITS;
/external/llvm/include/llvm/IR/
DTypeBuilder.h91 template<uint32_t num_bits> class i {};
188 template<uint32_t num_bits, bool cross>
189 class TypeBuilder<types::i<num_bits>, cross> {
192 return IntegerType::get(C, num_bits); in get()
/external/libhevc/decoder/
Dihevcd_parse_slice_header.c349 WORD32 num_bits; in ihevcd_parse_slice_header() local
352 num_bits = 32 - CLZ(ps_sps->i4_pic_size_in_ctb - 1); in ihevcd_parse_slice_header()
353 BITS_PARSE("slice_address", value, ps_bitstrm, num_bits); in ihevcd_parse_slice_header()
471 WORD32 num_bits = 32 - CLZ(ps_sps->i1_num_long_term_ref_pics_sps); in ihevcd_parse_slice_header() local
472 BITS_PARSE("lt_idx_sps[ i ]", value, ps_bitstrm, num_bits); in ihevcd_parse_slice_header()

12