/external/brotli/c/dec/ |
D | bit_reader.h | 64 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val); 108 BrotliBitReader* const br, uint32_t n_bits) { in BrotliFillBitWindow() argument 110 if (!BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 8)) { in BrotliFillBitWindow() 119 !BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 16)) { in BrotliFillBitWindow() 137 if (!BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 8)) { in BrotliFillBitWindow() 199 BrotliBitReader* const br, uint32_t n_bits) { in BrotliGetBits() argument 200 BrotliFillBitWindow(br, n_bits); in BrotliGetBits() 201 return (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliGetBits() 207 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in BrotliSafeGetBits() argument 208 while (BrotliGetAvailableBits(br) < n_bits) { in BrotliSafeGetBits() [all …]
|
D | bit_reader.c | 58 uint32_t n_bits, uint32_t* val) { in BrotliSafeReadBits32Slow() argument 62 BROTLI_DCHECK(n_bits <= 32); in BrotliSafeReadBits32Slow() 63 BROTLI_DCHECK(n_bits > 24); in BrotliSafeReadBits32Slow() 66 !BrotliSafeReadBits(br, n_bits - 16, &high_val)) { in BrotliSafeReadBits32Slow()
|
/external/brotli/c/enc/ |
D | write_bits.h | 34 static BROTLI_INLINE void BrotliWriteBits(size_t n_bits, in BrotliWriteBits() argument 38 BROTLI_LOG(("WriteBits %2d 0x%08x%08x %10d\n", (int)n_bits, in BrotliWriteBits() 41 BROTLI_DCHECK((bits >> n_bits) == 0); in BrotliWriteBits() 42 BROTLI_DCHECK(n_bits <= 56); in BrotliWriteBits() 54 *pos += n_bits; in BrotliWriteBits() 64 for (bits_left_to_write = n_bits + bits_reserved_in_first_byte; in BrotliWriteBits() 71 *pos += n_bits; in BrotliWriteBits()
|
D | compress_fragment.c | 345 static void UpdateBits(size_t n_bits, uint32_t bits, size_t pos, in UpdateBits() argument 347 while (n_bits > 0) { in UpdateBits() 350 size_t n_changed_bits = BROTLI_MIN(size_t, n_bits, 8 - n_unchanged_bits); in UpdateBits() 358 n_bits -= n_changed_bits; in UpdateBits()
|
/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/ |
D | LZWEncoder.java | 46 int n_bits; // number of bits/code field in LZWEncoder 159 n_bits = g_init_bits; in compress() 160 maxcode = MAXCODE(n_bits); in compress() 237 final int MAXCODE(int n_bits) { in MAXCODE() argument 238 return (1 << n_bits) - 1; in MAXCODE() 263 cur_bits += n_bits; in output() 275 maxcode = MAXCODE(n_bits = g_init_bits); in output() 278 ++n_bits; in output() 279 if (n_bits == maxbits) in output() 282 maxcode = MAXCODE(n_bits); in output()
|
/external/rust/crates/ring/src/rsa/ |
D | verification.rs | 29 pub n_bits: bits::BitLength, field 50 let (n, n_bits) = bigint::Modulus::from_be_bytes_with_bit_length(n)?; in from_modulus_and_exponent() 62 bits::BitLength::from_usize_bytes(n_bits.as_usize_bytes_rounded_up()) in from_modulus_and_exponent() 67 if n_bits > n_max_bits { in from_modulus_and_exponent() 82 Ok(Self { n, e, n_bits }) in from_modulus_and_exponent() 290 let Key { n, e, n_bits } = Key::from_modulus_and_exponent(n, e, params.min_bits, max_bits, 3)?; in verify_rsa_() 293 if signature.len() != n_bits.as_usize_bytes_rounded_up() { in verify_rsa_() 311 let decoded = fill_be_bytes_n(m, n_bits, &mut decoded); in verify_rsa_() 316 params.padding_alg.verify(&m_hash, m, n_bits) in verify_rsa_() 327 n_bits: bits::BitLength, in fill_be_bytes_n() [all …]
|
D | signing.rs | 260 let half_n_bits = public_key.n_bits.half_rounded_up(); in from_der_reader() 541 let mod_bits = self.public.n_bits; in sign()
|
/external/boringssl/src/crypto/fipsmodule/bn/ |
D | montgomery_inv.c | 171 unsigned n_bits = BN_num_bits(n); in bn_mod_exp_base_2_consttime() local 172 assert(n_bits != 0); in bn_mod_exp_base_2_consttime() 173 assert(p > n_bits); in bn_mod_exp_base_2_consttime() 174 if (n_bits == 1) { in bn_mod_exp_base_2_consttime() 180 if (!BN_set_bit(r, n_bits - 1) || in bn_mod_exp_base_2_consttime() 181 !bn_mod_lshift_consttime(r, r, p - (n_bits - 1), n, ctx)) { in bn_mod_exp_base_2_consttime()
|
D | gcd_extra.c | 242 unsigned a_bits = a_width * BN_BITS2, n_bits = n_width * BN_BITS2; in bn_mod_inverse_consttime() local 243 unsigned num_iters = a_bits + n_bits; in bn_mod_inverse_consttime()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/bn/ |
D | montgomery_inv.c | 171 unsigned n_bits = BN_num_bits(n); in bn_mod_exp_base_2_consttime() local 172 assert(n_bits != 0); in bn_mod_exp_base_2_consttime() 173 assert(p > n_bits); in bn_mod_exp_base_2_consttime() 174 if (n_bits == 1) { in bn_mod_exp_base_2_consttime() 180 if (!BN_set_bit(r, n_bits - 1) || in bn_mod_exp_base_2_consttime() 181 !bn_mod_lshift_consttime(r, r, p - (n_bits - 1), n, ctx)) { in bn_mod_exp_base_2_consttime()
|
D | gcd_extra.c | 242 unsigned a_bits = a_width * BN_BITS2, n_bits = n_width * BN_BITS2; in bn_mod_inverse_consttime() local 243 unsigned num_iters = a_bits + n_bits; in bn_mod_inverse_consttime()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 33 size_t n_bits; member 39 size_t n_bits); 43 size_t n_bits) in tlpm_add() argument 48 n = (n_bits + 7) / 8; in tlpm_add() 51 node = tlpm_match(list, key, n_bits); in tlpm_add() 52 if (node && node->n_bits == n_bits) { in tlpm_add() 63 node->n_bits = n_bits; in tlpm_add() 83 size_t n_bits) in tlpm_match() argument 95 for (i = 0; i < n_bits && i < list->n_bits; ++i) { in tlpm_match() 101 if (i >= list->n_bits) { in tlpm_match() [all …]
|
/external/mesa3d/src/util/tests/fast_idiv_by_const/ |
D | fast_idiv_by_const_test.cpp | 276 unsigned n_bits = bounded ? util_logbase2_64(MAX2(n, 1)) + 1 : bits; in random_udiv_add_sat_test() local 279 util_compute_fast_udiv_info(d, n_bits, bits); in random_udiv_add_sat_test() 293 unsigned n_bits = bounded ? util_logbase2_64(MAX2(n, 1)) + 1: bits; in random_udiv_mul_add_test() local 296 util_compute_fast_udiv_info(d, n_bits, bits); in random_udiv_mul_add_test() 324 for (unsigned n_bits = 1; n_bits <= 8; n_bits++) { in TEST() local 326 util_compute_fast_udiv_info(d, n_bits, 8); in TEST() 328 for (unsigned n = 0; n < (1u << n_bits); n++) in TEST() 338 for (unsigned n_bits = 1; n_bits <= 8; n_bits++) { in TEST() local 340 util_compute_fast_udiv_info(d, n_bits, 8); in TEST() 342 for (unsigned n = 0; n < (1u << n_bits); n++) in TEST()
|
/external/webp/src/utils/ |
D | bit_writer_utils.h | 126 void VP8LPutBitsInternal(VP8LBitWriter* const bw, uint32_t bits, int n_bits); 134 uint32_t bits, int n_bits) { in VP8LPutBits() argument 136 if (n_bits > 0) { in VP8LPutBits() 141 bw->used_ += n_bits; in VP8LPutBits() 144 VP8LPutBitsInternal(bw, bits, n_bits); in VP8LPutBits()
|
D | bit_writer_utils.c | 294 void VP8LPutBitsInternal(VP8LBitWriter* const bw, uint32_t bits, int n_bits) { in VP8LPutBitsInternal() argument 295 assert(n_bits <= 32); in VP8LPutBitsInternal() 298 if (n_bits > 0) { in VP8LPutBitsInternal() 303 if (used + n_bits >= VP8L_WRITER_MAX_BITS) { in VP8LPutBitsInternal() 308 n_bits -= shift; in VP8LPutBitsInternal() 310 assert(n_bits <= VP8L_WRITER_MAX_BITS); in VP8LPutBitsInternal() 330 bw->used_ = used + n_bits; in VP8LPutBitsInternal()
|
D | bit_reader_utils.c | 208 uint32_t VP8LReadBits(VP8LBitReader* const br, int n_bits) { in VP8LReadBits() argument 209 assert(n_bits >= 0); in VP8LReadBits() 211 if (!br->eos_ && n_bits <= VP8L_MAX_NUM_BIT_READ) { in VP8LReadBits() 212 const uint32_t val = VP8LPrefetchBits(br) & kBitMask[n_bits]; in VP8LReadBits() 213 const int new_bits = br->bit_pos_ + n_bits; in VP8LReadBits()
|
D | bit_reader_utils.h | 161 uint32_t VP8LReadBits(VP8LBitReader* const br, int n_bits);
|
/external/libjpeg-turbo/ |
D | wrgif.c | 48 #define MAXCODE(n_bits) (((code_int)1 << (n_bits)) - 1) argument 77 int n_bits; /* current number of bits/code */ member 141 dinfo->cur_bits += dinfo->n_bits; in output() 155 dinfo->n_bits++; in output() 156 if (dinfo->n_bits == MAX_LZW_BITS) in output() 159 dinfo->maxcode = MAXCODE(dinfo->n_bits); in output() 183 dinfo->n_bits = dinfo->init_bits; /* reset code size */ in clear_block() 184 dinfo->maxcode = MAXCODE(dinfo->n_bits); in clear_block() 193 dinfo->n_bits = dinfo->init_bits = i_bits; in compress_init() 194 dinfo->maxcode = MAXCODE(dinfo->n_bits); in compress_init()
|
/external/mesa3d/src/mesa/main/ |
D | texcompress_bptc_tmp.h | 56 uint8_t n_bits; member 319 int n_bits) in extract_bits() argument 323 int n_bits_in_byte = MIN2(n_bits, 8 - bit_index); in extract_bits() 331 n_bits -= n_bits_in_byte; in extract_bits() 333 if (n_bits <= 0) in extract_bits() 339 n_bits_in_byte = MIN2(n_bits, 8); in extract_bits() 345 int n_bits) in expand_component() argument 350 return byte << (8 - n_bits) | (byte >> (2 * n_bits - 8)); in expand_component() 823 int n_bits) in sign_extend() argument 825 assert(n_bits > 0 && n_bits < 32); in sign_extend() [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_bitvector_test.cpp | 124 uptr n_bits = ((uptr)my_rand() % bv.size()) + 1; in TestBitVector() local 126 EXPECT_TRUE(n_bits > 0 && n_bits <= bv.size()); in TestBitVector() 128 for (uptr i = 0; i < n_bits; i++) { in TestBitVector()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_bitvector_test.cc | 119 uptr n_bits = ((uptr)my_rand() % bv.size()) + 1; in TestBitVector() local 121 EXPECT_TRUE(n_bits > 0 && n_bits <= bv.size()); in TestBitVector() 123 for (uptr i = 0; i < n_bits; i++) { in TestBitVector()
|
/external/wpa_supplicant_8/src/utils/ |
D | radiotap_iter.h | 22 int n_bits; member
|
D | radiotap.c | 48 .n_bits = sizeof(rtap_namespace_sizes) / sizeof(rtap_namespace_sizes[0]), 268 iterator->_arg_index >= iterator->current_namespace->n_bits) { in ieee80211_radiotap_iterator_next()
|
/external/webp/src/enc/ |
D | vp8l_enc.c | 727 int n_bits) { in WriteHuffmanCodeWithExtraBits() argument 730 VP8LPutBits(bw, (bits << depth) | symbol, depth + n_bits); in WriteHuffmanCodeWithExtraBits() 769 int bits, n_bits; in StoreImageToBitMask() local 773 VP8LPrefixEncode(v->len, &code, &n_bits, &bits); in StoreImageToBitMask() 774 WriteHuffmanCodeWithExtraBits(bw, codes, 256 + code, bits, n_bits); in StoreImageToBitMask() 779 VP8LPrefixEncode(distance, &code, &n_bits, &bits); in StoreImageToBitMask() 781 VP8LPutBits(bw, bits, n_bits); in StoreImageToBitMask()
|
/external/vixl/test/aarch64/ |
D | test-simulator-aarch64.cc | 324 const unsigned n_bits = sizeof(Tn) * 8; in Test1Op() local 332 n_bits, in Test1Op() 356 n_bits / 4, in Test1Op() 1115 const unsigned n_bits = sizeof(Tn) * 8; in TestFPToS() local 1123 n_bits, in TestFPToS() 1163 n_bits / 4, in TestFPToS() 1206 const unsigned n_bits = sizeof(Tn) * 8; in TestFPToU() local 1214 n_bits, in TestFPToU() 1236 n_bits / 4, in TestFPToU() 1276 const unsigned n_bits = sizeof(Tn) * 8; in TestFPToFixedS() local [all …]
|