Home
last modified time | relevance | path

Searched refs:max_bits (Results 1 – 25 of 42) sorted by relevance

12

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dbitfield.c17 size_t max_bits; member
21 struct bitfield * bitfield_alloc(size_t max_bits) in bitfield_alloc() argument
25 bf = os_zalloc(sizeof(*bf) + (max_bits + 7) / 8); in bitfield_alloc()
29 bf->max_bits = max_bits; in bitfield_alloc()
42 if (bit >= bf->max_bits) in bitfield_set()
50 if (bit >= bf->max_bits) in bitfield_clear()
58 if (bit >= bf->max_bits) in bitfield_is_set()
79 for (i = 0; i < (bf->max_bits + 7) / 8; i++) { in bitfield_get_first_zero()
83 if (i == (bf->max_bits + 7) / 8) in bitfield_get_first_zero()
86 if (i >= bf->max_bits) in bitfield_get_first_zero()
Dbitfield.h14 struct bitfield * bitfield_alloc(size_t max_bits);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dbitfield.c17 size_t max_bits; member
21 struct bitfield * bitfield_alloc(size_t max_bits) in bitfield_alloc() argument
25 bf = os_zalloc(sizeof(*bf) + (max_bits + 7) / 8); in bitfield_alloc()
29 bf->max_bits = max_bits; in bitfield_alloc()
42 if (bit >= bf->max_bits) in bitfield_set()
50 if (bit >= bf->max_bits) in bitfield_clear()
58 if (bit >= bf->max_bits) in bitfield_is_set()
79 for (i = 0; i < (bf->max_bits + 7) / 8; i++) { in bitfield_get_first_zero()
83 if (i == (bf->max_bits + 7) / 8) in bitfield_get_first_zero()
86 if (i >= bf->max_bits) in bitfield_get_first_zero()
Dbitfield.h14 struct bitfield * bitfield_alloc(size_t max_bits);
/third_party/boost/boost/multiprecision/cpp_bin_float/
Dio.hpp22 inline I restricted_multiply(cpp_int& result, const cpp_int& a, const cpp_int& b, I max_bits, boost… in restricted_multiply() argument
27 if (gb > max_bits) in restricted_multiply()
29 rshift = gb - max_bits; in restricted_multiply()
59 inline I restricted_pow(cpp_int& result, const cpp_int& a, I e, I max_bits, boost::int64_t& error) in restricted_pow() argument
70 return restricted_multiply(result, a, a, max_bits, error); in restricted_pow()
74 exp = restricted_multiply(result, a, a, max_bits, error); in restricted_pow()
75 exp += restricted_multiply(result, result, a, max_bits, error); in restricted_pow()
79 exp = restricted_pow(result, a, p, max_bits, error); in restricted_pow()
81 exp += restricted_multiply(result, result, result, max_bits, error); in restricted_pow()
83 exp += restricted_multiply(result, result, a, max_bits, error); in restricted_pow()
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/lzw/
Dftzopen.c78 state->free_bits = state->num_bits < state->max_bits in ft_lzwstate_get_code()
274 FT_Byte max_bits; in ft_lzwstate_io() local
280 FT_Stream_TryRead( state->source, &max_bits, 1 ) != 1 ) in ft_lzwstate_io()
283 state->max_bits = max_bits & LZW_BIT_MASK; in ft_lzwstate_io()
284 state->block_mode = max_bits & LZW_BLOCK_MASK; in ft_lzwstate_io()
285 state->max_free = (FT_UInt)( ( 1UL << state->max_bits ) - 256 ); in ft_lzwstate_io()
287 if ( state->max_bits > LZW_MAX_BITS ) in ft_lzwstate_io()
295 state->free_bits = state->num_bits < state->max_bits in ft_lzwstate_io()
Dftzopen.h124 FT_UInt max_bits; /* max code bits, from file header */ member
/third_party/freetype/src/lzw/
Dftzopen.c78 state->free_bits = state->num_bits < state->max_bits in ft_lzwstate_get_code()
274 FT_Byte max_bits; in ft_lzwstate_io() local
280 FT_Stream_TryRead( state->source, &max_bits, 1 ) != 1 ) in ft_lzwstate_io()
283 state->max_bits = max_bits & LZW_BIT_MASK; in ft_lzwstate_io()
284 state->block_mode = max_bits & LZW_BLOCK_MASK; in ft_lzwstate_io()
285 state->max_free = (FT_UInt)( ( 1UL << state->max_bits ) - 256 ); in ft_lzwstate_io()
287 if ( state->max_bits > LZW_MAX_BITS ) in ft_lzwstate_io()
295 state->free_bits = state->num_bits < state->max_bits in ft_lzwstate_io()
Dftzopen.h124 FT_UInt max_bits; /* max code bits, from file header */ member
/third_party/skia/third_party/externals/freetype/src/lzw/
Dftzopen.c78 state->free_bits = state->num_bits < state->max_bits in ft_lzwstate_get_code()
279 FT_Byte max_bits; in ft_lzwstate_io() local
285 FT_Stream_TryRead( state->source, &max_bits, 1 ) != 1 ) in ft_lzwstate_io()
288 state->max_bits = max_bits & LZW_BIT_MASK; in ft_lzwstate_io()
289 state->block_mode = max_bits & LZW_BLOCK_MASK; in ft_lzwstate_io()
290 state->max_free = (FT_UInt)( ( 1UL << state->max_bits ) - 256 ); in ft_lzwstate_io()
292 if ( state->max_bits > LZW_MAX_BITS ) in ft_lzwstate_io()
300 state->free_bits = state->num_bits < state->max_bits in ft_lzwstate_io()
Dftzopen.h124 FT_UInt max_bits; /* max code bits, from file header */ member
/third_party/skia/third_party/externals/brotli/c/enc/
Dbrotli_bit_stream.c245 size_t max_bits, in StoreSimpleHuffmanTree() argument
265 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in StoreSimpleHuffmanTree()
266 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in StoreSimpleHuffmanTree()
268 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in StoreSimpleHuffmanTree()
269 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in StoreSimpleHuffmanTree()
270 BrotliWriteBits(max_bits, symbols[2], storage_ix, storage); in StoreSimpleHuffmanTree()
272 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in StoreSimpleHuffmanTree()
273 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in StoreSimpleHuffmanTree()
274 BrotliWriteBits(max_bits, symbols[2], storage_ix, storage); in StoreSimpleHuffmanTree()
275 BrotliWriteBits(max_bits, symbols[3], storage_ix, storage); in StoreSimpleHuffmanTree()
[all …]
Dbrotli_bit_stream.h39 const size_t max_bits, uint8_t* depth, uint16_t* bits, size_t* storage_ix,
/third_party/node/deps/brotli/c/enc/
Dbrotli_bit_stream.c245 size_t max_bits, in StoreSimpleHuffmanTree() argument
265 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in StoreSimpleHuffmanTree()
266 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in StoreSimpleHuffmanTree()
268 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in StoreSimpleHuffmanTree()
269 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in StoreSimpleHuffmanTree()
270 BrotliWriteBits(max_bits, symbols[2], storage_ix, storage); in StoreSimpleHuffmanTree()
272 BrotliWriteBits(max_bits, symbols[0], storage_ix, storage); in StoreSimpleHuffmanTree()
273 BrotliWriteBits(max_bits, symbols[1], storage_ix, storage); in StoreSimpleHuffmanTree()
274 BrotliWriteBits(max_bits, symbols[2], storage_ix, storage); in StoreSimpleHuffmanTree()
275 BrotliWriteBits(max_bits, symbols[3], storage_ix, storage); in StoreSimpleHuffmanTree()
[all …]
Dbrotli_bit_stream.h39 const size_t max_bits, uint8_t* depth, uint16_t* bits, size_t* storage_ix,
/third_party/mesa3d/src/mapi/glapi/gen/
DglX_server_table.py58 self.max_bits = 1
59 self.next_opcode_threshold = (1 << self.max_bits)
82 self.max_bits = bits
94 remaining_bits = self.max_bits - total
284 self.dump_tree(tree, 0, self.max_bits, 0, 1)
334 print ' %u,' % (self.max_bits)
/third_party/mbedtls/tests/src/
Dasn1_helpers.c31 size_t min_bits, size_t max_bits, in mbedtls_test_asn1_skip_integer() argument
65 TEST_ASSERT( actual_bits <= max_bits ); in mbedtls_test_asn1_skip_integer()
/third_party/ffmpeg/libavcodec/
Dtruemotion2.c105 int max_bits; ///< maximum length of code member
121 if (length > huff->max_bits) { in tm2_read_tree()
123 huff->max_bits); in tm2_read_tree()
154 huff.max_bits = get_bits(&ctx->gb, 5); in tm2_build_huff_table()
161 (huff.max_bits < 0) || (huff.max_bits > 25)) { in tm2_build_huff_table()
163 "length: %i, max code length: %i\n", huff.val_bits, huff.max_bits); in tm2_build_huff_table()
172 if (huff.max_bits == 0) in tm2_build_huff_table()
173 huff.max_bits = 1; in tm2_build_huff_table()
187 if (res >= 0 && res != huff.max_bits) { in tm2_build_huff_table()
189 res, huff.max_bits); in tm2_build_huff_table()
[all …]
Dralf.c82 int max_bits = 0; in init_ralf_vlc() local
90 max_bits = FFMAX(max_bits, cur_len); in init_ralf_vlc()
102 return ff_init_vlc_sparse(vlc, FFMIN(max_bits, 9), elems, in init_ralf_vlc()
Dopus.c843 int max_bits; in ff_celt_bitalloc() local
865 max_bits = FFMIN((f->pulses[i] >> 3) >> (f->channels - 1), CELT_MAX_FINE_BITS); in ff_celt_bitalloc()
866 max_bits = FFMAX(max_bits, 0); in ff_celt_bitalloc()
867 f->fine_bits[i] = av_clip(fine_bits, 0, max_bits); in ff_celt_bitalloc()
/third_party/boost/boost/random/detail/
Dseed_impl.hpp79 const int max_bits = std::numeric_limits<int_type>::digits; in pow2() local
80 T multiplier = T(int_type(1) << (max_bits - 1)) * 2; in pow2()
81 return (int_type(1) << (n % max_bits)) * in pow2()
82 const_pow<std::numeric_limits<T>::digits / max_bits>(multiplier, n / max_bits); in pow2()
/third_party/mbedtls/tests/include/test/
Dasn1_helpers.h47 size_t min_bits, size_t max_bits,
/third_party/flutter/skia/third_party/externals/freetype/src/pshinter/
Dpshrec.h97 FT_UInt max_bits; member
/third_party/skia/third_party/externals/freetype/src/pshinter/
Dpshrec.h96 FT_UInt max_bits; member
/third_party/freetype/src/pshinter/
Dpshrec.h96 FT_UInt max_bits; member

12