Home
last modified time | relevance | path

Searched refs:n_bits (Results 1 – 23 of 23) sorted by relevance

/external/brotli/c/dec/
Dbit_reader.h107 BrotliBitReader* const br, uint32_t n_bits) { in BrotliFillBitWindow() argument
109 if (!BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 8)) { in BrotliFillBitWindow()
118 !BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 16)) { in BrotliFillBitWindow()
136 if (!BROTLI_ALIGNED_READ && BROTLI_IS_CONSTANT(n_bits) && (n_bits <= 8)) { in BrotliFillBitWindow()
198 BrotliBitReader* const br, uint32_t n_bits) { in BrotliGetBits() argument
199 BrotliFillBitWindow(br, n_bits); in BrotliGetBits()
200 return (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliGetBits()
206 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in BrotliSafeGetBits() argument
207 while (BrotliGetAvailableBits(br) < n_bits) { in BrotliSafeGetBits()
212 *val = (uint32_t)BrotliGetBitsUnmasked(br) & BitMask(n_bits); in BrotliSafeGetBits()
[all …]
Ddecode.c1491 BrotliBitReader* const br, uint32_t n_bits, uint32_t* val) { in SafeReadBits() argument
1492 if (n_bits != 0) { in SafeReadBits()
1493 return BrotliSafeReadBits(br, n_bits, val); in SafeReadBits()
/external/brotli/c/enc/
Dwrite_bits.h36 static BROTLI_INLINE void BrotliWriteBits(size_t n_bits, in BrotliWriteBits() argument
48 BROTLI_LOG(("WriteBits %2d 0x%08x%08x %10d\n", (int)n_bits, in BrotliWriteBits()
51 BROTLI_DCHECK((bits >> n_bits) == 0); in BrotliWriteBits()
52 BROTLI_DCHECK(n_bits <= 56); in BrotliWriteBits()
55 *pos += n_bits; in BrotliWriteBits()
63 for (bits_left_to_write = n_bits + bits_reserved_in_first_byte; in BrotliWriteBits()
70 *pos += n_bits; in BrotliWriteBits()
Dcompress_fragment.c345 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/
DLZWEncoder.java46 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/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lpm_map.c33 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/boringssl/src/crypto/fipsmodule/bn/
Dmontgomery_inv.c171 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()
Dgcd_extra.c242 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/webp/src/utils/
Dbit_writer_utils.h126 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()
Dbit_reader_utils.c207 uint32_t VP8LReadBits(VP8LBitReader* const br, int n_bits) { in VP8LReadBits() argument
208 assert(n_bits >= 0); in VP8LReadBits()
210 if (!br->eos_ && n_bits <= VP8L_MAX_NUM_BIT_READ) { in VP8LReadBits()
211 const uint32_t val = VP8LPrefetchBits(br) & kBitMask[n_bits]; in VP8LReadBits()
212 const int new_bits = br->bit_pos_ + n_bits; in VP8LReadBits()
Dbit_writer_utils.c294 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()
Dbit_reader_utils.h142 uint32_t VP8LReadBits(VP8LBitReader* const br, int n_bits);
/external/mesa3d/src/mesa/main/
Dtexcompress_bptc.c59 uint8_t n_bits; member
322 int n_bits) in extract_bits() argument
326 int n_bits_in_byte = MIN2(n_bits, 8 - bit_index); in extract_bits()
334 n_bits -= n_bits_in_byte; in extract_bits()
336 if (n_bits <= 0) in extract_bits()
342 n_bits_in_byte = MIN2(n_bits, 8); in extract_bits()
348 int n_bits) in expand_component() argument
353 return byte << (8 - n_bits) | (byte >> (2 * n_bits - 8)); in expand_component()
703 int n_bits) in sign_extend() argument
705 if ((value & (1 << (n_bits - 1)))) { in sign_extend()
[all …]
/external/libjpeg-turbo/
Dwrgif.c56 int n_bits; /* current number of bits/code */ member
75 #define MAXCODE(n_bits) ((1 << (n_bits)) - 1) argument
113 dinfo->cur_bits += dinfo->n_bits; in output()
150 dinfo->n_bits = i_bits; in compress_init()
151 dinfo->maxcode = MAXCODE(dinfo->n_bits); in compress_init()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_bitvector_test.cc119 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/v8/src/mips/
Ddisasm-mips.cc93 void PrintPCImm16(Instruction* instr, int delta_pc, int n_bits);
100 void PrintPCImm21(Instruction* instr, int delta_pc, int n_bits);
103 void PrintPCImm26(Instruction* instr, int delta_pc, int n_bits);
347 void Decoder::PrintPCImm16(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm16() argument
352 delta_pc + (offset << n_bits))); in PrintPCImm16()
408 void Decoder::PrintPCImm21(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm21() argument
416 delta_pc + (imm21 << n_bits))); in PrintPCImm21()
442 void Decoder::PrintPCImm26(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm26() argument
450 delta_pc + (imm26 << n_bits))); in PrintPCImm26()
766 int n_bits = 0; in FormatOption() local
[all …]
/external/v8/src/mips64/
Ddisasm-mips64.cc96 void PrintPCImm16(Instruction* instr, int delta_pc, int n_bits);
103 void PrintPCImm21(Instruction* instr, int delta_pc, int n_bits);
106 void PrintPCImm26(Instruction* instr, int delta_pc, int n_bits);
375 void Decoder::PrintPCImm16(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm16() argument
380 delta_pc + (offset << n_bits))); in PrintPCImm16()
436 void Decoder::PrintPCImm21(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm21() argument
444 delta_pc + (imm21 << n_bits))); in PrintPCImm21()
471 void Decoder::PrintPCImm26(Instruction* instr, int delta_pc, int n_bits) { in PrintPCImm26() argument
479 delta_pc + (imm26 << n_bits))); in PrintPCImm26()
807 int n_bits = 0; in FormatOption() local
[all …]
/external/wpa_supplicant_8/src/utils/
Dradiotap_iter.h22 int n_bits; member
Dradiotap.c48 .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/u-boot/drivers/spi/
Dmxc_spi.c338 int n_bits; in mxc_spi_xfer_internal() local
356 n_bits = blk_size * 8; in mxc_spi_xfer_internal()
358 ret = spi_xchg_single(mxcs, n_bits, p_outbuf, p_inbuf, 0); in mxc_spi_xfer_internal()
/external/webp/src/enc/
Dvp8l_enc.c705 int n_bits) { in WriteHuffmanCodeWithExtraBits() argument
708 VP8LPutBits(bw, (bits << depth) | symbol, depth + n_bits); in WriteHuffmanCodeWithExtraBits()
747 int bits, n_bits; in StoreImageToBitMask() local
751 VP8LPrefixEncode(v->len, &code, &n_bits, &bits); in StoreImageToBitMask()
752 WriteHuffmanCodeWithExtraBits(bw, codes, 256 + code, bits, n_bits); in StoreImageToBitMask()
757 VP8LPrefixEncode(distance, &code, &n_bits, &bits); in StoreImageToBitMask()
759 VP8LPutBits(bw, bits, n_bits); in StoreImageToBitMask()
/external/vixl/test/aarch64/
Dtest-simulator-aarch64.cc328 const unsigned n_bits = sizeof(Tn) * 8; in Test1Op() local
336 n_bits, in Test1Op()
360 n_bits / 4, in Test1Op()
1125 const unsigned n_bits = sizeof(Tn) * 8; in TestFPToS() local
1133 n_bits, in TestFPToS()
1173 n_bits / 4, in TestFPToS()
1216 const unsigned n_bits = sizeof(Tn) * 8; in TestFPToU() local
1224 n_bits, in TestFPToU()
1246 n_bits / 4, in TestFPToU()
1286 const unsigned n_bits = sizeof(Tn) * 8; in TestFPToFixedS() local
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cCopyImageTests.cpp1681 static const GLuint n_bits = 8u * n_bytes; in readBaseTypeFromSignedChannel() local
1682 static const T max = (T)((1u << (n_bits - 1u)) - 1u); in readBaseTypeFromSignedChannel()
1930 static const GLuint n_bits = 8u * n_bytes; in writeBaseTypeToSignedChannel() local
1931 static const T max = (T)((1u << (n_bits - 1u)) - 1u); in writeBaseTypeToSignedChannel()