Searched defs:n_bits (Results 1 - 23 of 23) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_bitvector_test.cc119 uptr n_bits = ((uptr)my_rand() % bv.size()) + 1; local
121 EXPECT_TRUE(n_bits > 0 && n_bits <= bv.size());
123 for (uptr i = 0; i < n_bits; i++) {
/external/bison/lib/
H A Dbitsetv.c29 bitsetv_alloc (bitset_bindex n_vecs, bitset_bindex n_bits, argument
38 bytes = bitset_bytes (type, n_bits);
53 bitset_init (bsetv[i], n_bits, type);
65 bitsetv_create (bitset_bindex n_vecs, bitset_bindex n_bits, unsigned int attr) argument
69 type = bitset_type_choose (n_bits, attr);
70 return bitsetv_alloc (n_vecs, n_bits, type);
H A Dbitset.c39 bitset_bytes (enum bitset_type type, bitset_bindex n_bits) argument
52 bytes = abitset_bytes (n_bits);
56 bytes = lbitset_bytes (n_bits);
60 bytes = ebitset_bytes (n_bits);
64 bytes = vbitset_bytes (n_bits);
74 bitset_init (bitset bset, bitset_bindex n_bits, enum bitset_type type) argument
77 return bitset_stats_init (bset, n_bits, type);
85 return abitset_init (bset, n_bits);
88 return lbitset_init (bset, n_bits);
91 return ebitset_init (bset, n_bits);
134 bitset_alloc(bitset_bindex n_bits, enum bitset_type type) argument
153 bitset_obstack_alloc(struct obstack *bobstack, bitset_bindex n_bits, enum bitset_type type) argument
171 bitset_create(bitset_bindex n_bits, unsigned int attr) argument
[all...]
H A Dabitset.c152 bitset_bindex n_bits = BITSET_SIZE_ (src); local
159 if (rbitno >= n_bits)
164 bitno = n_bits - (rbitno + 1);
182 *next = n_bits - (bitoff + bitcnt);
193 *next = n_bits - (bitoff + 1);
785 abitset_bytes (bitset_bindex n_bits) argument
793 size = ABITSET_N_WORDS (n_bits);
809 abitset_init (bitset bset, bitset_bindex n_bits) argument
813 size = ABITSET_N_WORDS (n_bits);
814 BITSET_NBITS_ (bset) = n_bits;
[all...]
H A Dvbitset.c56 vbitset_resize (bitset src, bitset_bindex n_bits) argument
61 if (n_bits == BITSET_NBITS_ (src))
62 return n_bits;
65 newsize = VBITSET_N_WORDS (n_bits);
110 BITSET_NBITS_ (src) = n_bits;
111 return n_bits;
175 bitset_bindex n_bits = BITSET_SIZE_ (src); local
182 if (rbitno >= n_bits)
187 bitno = n_bits - (rbitno + 1);
205 *next = n_bits
[all...]
H A Dbitset_stats.c677 bitset_stats_init (bitset bset, bitset_bindex n_bits, enum bitset_type type) argument
689 BITSET_NBITS_ (bset) = n_bits;
699 bytes = abitset_bytes (n_bits);
701 abitset_init (sbset, n_bits);
705 bytes = lbitset_bytes (n_bits);
707 lbitset_init (sbset, n_bits);
711 bytes = ebitset_bytes (n_bits);
713 ebitset_init (sbset, n_bits);
717 bytes = vbitset_bytes (n_bits);
719 vbitset_init (sbset, n_bits);
[all...]
H A Dlbitset.c580 bitset_bindex n_bits; local
586 n_bits = (elt->index + LBITSET_ELT_WORDS) * BITSET_WORD_BITS;
589 if (rbitno >= n_bits)
592 bitno = n_bits - (rbitno + 1);
639 *next = n_bits - (boffset + bcount);
655 *next = n_bits - (boffset + 1);
887 bitset_bindex n_bits; local
889 n_bits = BITSET_SIZE_ (dst);
890 last_bit = n_bits % LBITSET_ELT_BITS;
900 windex = n_bits / BITSET_WORD_BIT
[all...]
H A Dbbitset.h93 bitset_bindex n_bits; /* Number of bits. */ member in struct:bbitset_struct
110 #define BITSET_NBITS_(SRC) (SRC)->b.n_bits
H A Debitset.c123 ebitset_resize (bitset src, bitset_bindex n_bits) argument
128 if (n_bits == BITSET_NBITS_ (src))
129 return n_bits;
132 newsize = EBITSET_N_ELTS (n_bits);
174 BITSET_NBITS_ (src) = n_bits;
175 return n_bits;
569 bitset_bindex n_bits; local
585 n_bits = size * EBITSET_ELT_BITS;
588 if (rbitno >= n_bits)
593 bitno = n_bits
839 bitset_bindex n_bits; local
1336 ebitset_init(bitset bset, bitset_bindex n_bits) argument
[all...]
/external/webp/src/utils/
H A Dbit_reader.c211 uint32_t VP8LReadBits(VP8LBitReader* const br, int n_bits) { argument
212 assert(n_bits >= 0);
213 // Flag an error if end_of_stream or n_bits is more than allowed limit.
214 if (!br->eos_ && n_bits <= VP8L_MAX_NUM_BIT_READ) {
215 const uint32_t val = VP8LPrefetchBits(br) & kBitMask[n_bits];
216 const int new_bits = br->bit_pos_ + n_bits;
H A Dbit_writer.h117 void VP8LPutBitsInternal(VP8LBitWriter* const bw, uint32_t bits, int n_bits);
125 uint32_t bits, int n_bits) {
127 if (n_bits > 0) {
132 bw->used_ += n_bits;
135 VP8LPutBitsInternal(bw, bits, n_bits);
124 VP8LPutBits(VP8LBitWriter* const bw, uint32_t bits, int n_bits) argument
H A Dbit_writer.c266 void VP8LPutBitsInternal(VP8LBitWriter* const bw, uint32_t bits, int n_bits) { argument
267 assert(n_bits <= 32);
270 if (n_bits > 0) {
275 if (used + n_bits >= VP8L_WRITER_MAX_BITS) {
280 n_bits -= shift;
282 assert(n_bits <= VP8L_WRITER_MAX_BITS);
302 bw->used_ = used + n_bits;
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dradiotap_iter.h22 int n_bits; member in struct:ieee80211_radiotap_namespace
/external/wpa_supplicant_8/src/utils/
H A Dradiotap_iter.h22 int n_bits; member in struct:ieee80211_radiotap_namespace
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dradiotap_iter.h22 int n_bits; member in struct:ieee80211_radiotap_namespace
/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/
H A DLZWEncoder.java46 int n_bits; // number of bits/code field in class:LZWEncoder
50 int maxcode; // maximum code, given n_bits
88 // code: A n_bits-bit integer. If == -1, then EOF. This assumes
89 // that n_bits =< wordsize - 1.
159 n_bits = g_init_bits;
160 maxcode = MAXCODE(n_bits);
237 final int MAXCODE(int n_bits) { argument
238 return (1 << n_bits) - 1;
263 cur_bits += n_bits;
275 maxcode = MAXCODE(n_bits
[all...]
/external/libjpeg-turbo/
H A Dwrgif.c55 int n_bits; /* current number of bits/code */ member in struct:__anon9927
56 int maxcode; /* maximum code, given n_bits */
74 #define MAXCODE(n_bits) ((1 << (n_bits)) - 1)
108 /* Emit a code of n_bits bits */
112 dinfo->cur_bits += dinfo->n_bits;
149 dinfo->n_bits = i_bits;
150 dinfo->maxcode = MAXCODE(dinfo->n_bits);
166 * The given value must be less than n_bits wide.
/external/dbus/dbus/
H A Ddbus-sha.c560 int n_bits; local
596 n_bits = 0;
614 total_bits = n_bits + val;
615 while (n_bits < total_bits)
617 int byte_containing_next_bit = n_bits / 8;
618 int bit_containing_next_bit = 7 - (n_bits % 8);
638 ++n_bits;
646 length_bytes = (n_bits / 8 + ((n_bits % 8) ? 1 : 0));
651 length_bytes, n_bits, _dbus_string_get_lengt
[all...]
/external/v8/src/mips/
H A Ddisasm-mips.cc89 void PrintPCImm16(Instruction* instr, int delta_pc, int n_bits);
96 void PrintPCImm21(Instruction* instr, int delta_pc, int n_bits);
99 void PrintPCImm26(Instruction* instr, int delta_pc, int n_bits);
296 // PC + delta_pc + (offset << n_bits)
297 void Decoder::PrintPCImm16(Instruction* instr, int delta_pc, int n_bits) { argument
302 delta_pc + (offset << n_bits)));
357 // PC + delta_pc + (offset << n_bits)
358 void Decoder::PrintPCImm21(Instruction* instr, int delta_pc, int n_bits) { argument
366 delta_pc + (imm21 << n_bits)));
391 // PC + delta_pc + (offset << n_bits)
392 PrintPCImm26(Instruction* instr, int delta_pc, int n_bits) argument
573 int n_bits = 0; local
631 int n_bits = 0; local
662 int n_bits = 0; local
[all...]
/external/v8/src/mips64/
H A Ddisasm-mips64.cc89 void PrintPCImm16(Instruction* instr, int delta_pc, int n_bits);
96 void PrintPCImm21(Instruction* instr, int delta_pc, int n_bits);
99 void PrintPCImm26(Instruction* instr, int delta_pc, int n_bits);
299 // PC + delta_pc + (offset << n_bits)
300 void Decoder::PrintPCImm16(Instruction* instr, int delta_pc, int n_bits) { argument
305 delta_pc + (offset << n_bits)));
360 // PC + delta_pc + (offset << n_bits)
361 void Decoder::PrintPCImm21(Instruction* instr, int delta_pc, int n_bits) { argument
369 delta_pc + (imm21 << n_bits)));
395 // PC + delta_pc + (offset << n_bits)
396 PrintPCImm26(Instruction* instr, int delta_pc, int n_bits) argument
589 int n_bits = 0; local
647 int n_bits = 0; local
678 int n_bits = 0; local
[all...]
/external/valgrind/coregrind/m_gdbserver/
H A Dm_gdbserver.c1471 Int n_bits = VG_(strlen) (ws) - 2; local
1474 for (j = 0; j < n_bits; j++) {
1476 else if ('1' == parsews[j+2]) *szB |= (1 << (n_bits-j-1));
/external/vixl/test/
H A Dtest-simulator-a64.cc259 const unsigned n_bits = sizeof(Tn) * 8; local
262 reinterpret_cast<uintptr_t>(results), d_bits, n_bits);
283 name, n_bits / 4, static_cast<uint64_t>(inputs[n]),
916 const unsigned n_bits = sizeof(Tn) * 8; local
919 reinterpret_cast<uintptr_t>(results), d_bits, n_bits);
957 name, n_bits / 4, static_cast<uint64_t>(inputs[n]),
993 const unsigned n_bits = sizeof(Tn) * 8; local
997 reinterpret_cast<uintptr_t>(results), d_bits, n_bits);
1017 name, n_bits / 4, static_cast<uint64_t>(inputs[n]),
1050 const unsigned n_bits local
1130 const unsigned n_bits = sizeof(Tn) * 8; local
[all...]
/external/webp/src/enc/
H A Dvp8l.c673 int n_bits) {
676 VP8LPutBits(bw, (bits << depth) | symbol, depth + n_bits); local
715 int bits, n_bits; local
719 VP8LPrefixEncode(v->len, &code, &n_bits, &bits);
720 WriteHuffmanCodeWithExtraBits(bw, codes, 256 + code, bits, n_bits);
726 VP8LPrefixEncode(distance, &code, &n_bits, &bits);
728 VP8LPutBits(bw, bits, n_bits);
668 WriteHuffmanCodeWithExtraBits( VP8LBitWriter* const bw, const HuffmanTreeCode* const code, int code_index, int bits, int n_bits) argument

Completed in 2835 milliseconds