Home
last modified time | relevance | path

Searched refs:bit_length (Results 1 - 25 of 40) sorted by relevance

12

/third_party/python/Lib/idlelib/idle_test/
H A Dtest_delegator.py19 # Add real int attribute 'bit_length' by accessing it.
20 bl = mydel.bit_length
21 self.assertIs(bl, int.bit_length)
22 self.assertIs(mydel.__dict__['bit_length'], int.bit_length)
23 self.assertEqual(mydel._Delegator__cache, {'bit_length'})
27 self.assertEqual(mydel._Delegator__cache, {'bit_length', 'numerator'})
38 self.assertNotIn('bit_length', mydel.__dict__)
/third_party/python/Lib/test/
H A Dtest_strtod.py50 d = a.bit_length() - b.bit_length()
59 if q.bit_length() == mant_dig+1:
64 assert q.bit_length() <= mant_dig and e >= min_exp - mant_dig
65 assert q.bit_length() == mant_dig or e == min_exp - mant_dig
68 if e + q.bit_length() > max_exp:
H A Dtest_long.py62 shift = n.bit_length() - PRECISION
97 d = a.bit_length() - b.bit_length()
1094 k = x.bit_length()
1102 # Alternative definition: x.bit_length() == 1 + floor(log_2(x))
1111 self.assertEqual((0).bit_length(), 0)
1112 self.assertEqual((1).bit_length(), 1)
1113 self.assertEqual((-1).bit_length(), 1)
1114 self.assertEqual((2).bit_length(), 2)
1115 self.assertEqual((-2).bit_length(),
[all...]
/third_party/node/deps/npm/node_modules/@tufjs/models/dist/
H A Drole.js179 * The total number of bins is 2 to the power of the passed ``bit_length``.
199 // hex. If bit_length = 10 then number_of_bins = 1024 or bin names will
219 * the left-most 'bit_length' of bits of the file path hash digest to
220 * int, using it as bin index between 0 and '2**bit_length - 1'.
232 // bit_length bits that we care about.
271 bit_length: this.bitLength,
277 const { keyids, threshold, bit_length, name_prefix, ...rest } = data;
284 if (typeof bit_length !== 'number') {
285 throw new TypeError('bit_length must be a number');
293 bitLength: bit_length,
[all...]
/third_party/ffmpeg/libavcodec/
H A Dsbc.c57 int bit_length = len & 7; in ff_sbc_crc8() local
62 if (bit_length) { in ff_sbc_crc8()
64 while (bit_length--) { in ff_sbc_crc8()
H A Dh264_ps.h170 H264ParamSets *ps, int bit_length);
H A Dh264_ps.c748 H264ParamSets *ps, int bit_length) in ff_h264_decode_picture_parameter_set()
783 if (!(bit_length & 7) && pps->data_size < sizeof(pps->data)) in ff_h264_decode_picture_parameter_set()
854 bits_left = bit_length - get_bits_count(gb); in ff_h264_decode_picture_parameter_set()
747 ff_h264_decode_picture_parameter_set(GetBitContext *gb, AVCodecContext *avctx, H264ParamSets *ps, int bit_length) ff_h264_decode_picture_parameter_set() argument
H A Dcbs_h265_syntax_template.c72 current->bit_length = k; in extension_data()
75 allocate(current->data, (current->bit_length + 7) / 8); in extension_data()
76 for (k = 0; k < current->bit_length; k++) { in extension_data()
82 for (k = 0; k < current->bit_length; k++) in extension_data()
H A Dcbs_h265.h180 size_t bit_length; member
/third_party/node/deps/openssl/openssl/crypto/modes/asm/
H A Daes-gcm-armv8_64.pl162 $bit_length="x1";
284 lsr $main_end_input_ptr, $bit_length, #3 @ byte_len
288 add $end_input_ptr, $input_ptr, $bit_length, lsr #3 @ end_input_ptr
1039 and $bit_length, $bit_length, #127 @ bit_length %= 128
1043 sub $bit_length, $bit_length, #128 @ bit_length -= 128
1045 neg $bit_length,
[all...]
/third_party/openssl/crypto/modes/asm/
H A Daes-gcm-armv8_64.pl162 $bit_length="x1";
284 lsr $main_end_input_ptr, $bit_length, #3 @ byte_len
288 add $end_input_ptr, $input_ptr, $bit_length, lsr #3 @ end_input_ptr
1039 and $bit_length, $bit_length, #127 @ bit_length %= 128
1043 sub $bit_length, $bit_length, #128 @ bit_length -= 128
1045 neg $bit_length,
[all...]
/third_party/mbedtls/scripts/mbedtls_dev/
H A Dbignum_common.py62 bit_length = max(val.bit_length(), 1)
63 return (bit_length + bits_in_limb - 1) // bits_in_limb
H A Dbignum_core.py97 bits = "({} bits in {} limbs)".format(self.int_n.bit_length(), self.val_n_max_limbs)
/third_party/node/deps/v8/src/bigint/
H A Dtostring.cc588 const int bit_length = BitLength(X);
592 result = DIV_CEIL(bit_length, bits_per_char) + sign;
600 uint64_t chars_required = bit_length;
/third_party/rust/crates/minimal-lexical/tests/
H A Dvec_tests.rs337 assert_eq!(bigint::bit_length(&x), 97); in bit_length_test()
340 assert_eq!(bigint::bit_length(&x), 98); in bit_length_test()
343 assert_eq!(bigint::bit_length(&x), 32); in bit_length_test()
/third_party/rust/crates/minimal-lexical/src/
H A Dbigint.rs97 pub fn bit_length(&self) -> u32 { in bit_length() functions
98 bit_length(&self.data) in bit_length()
699 pub fn bit_length(x: &[Limb]) -> u32 { in bit_length() functions
H A Dslow.rs80 let exp = bigmant.bit_length() as i32 - 64 + F::EXPONENT_BIAS; in positive_digit_comp()
/third_party/python/Lib/
H A Dcrypt.py56 log_rounds = int.bit_length(rounds-1)
H A Denum.py143 ceiling = 2 ** (num).bit_length()
281 enum_class._all_bits_ = 2 ** ((enum_class._flag_mask_).bit_length()) - 1
1398 max_bits = max(value.bit_length(), flag_mask.bit_length())
1410 max(all_bits+1, 2**(value.bit_length()))
1562 return value.bit_length() - 1
1759 enum_class._all_bits_ = 2 ** ((single_bits|multi_bits).bit_length()) - 1
H A Dstatistics.py374 q = (n.bit_length() - m.bit_length() - _sqrt_bit_width) // 2
H A Dipaddress.py197 return min(bits, (~number & (number-1)).bit_length())
247 (last_int - first_int + 1).bit_length() - 1)
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A Dgen_vk_internal_shaders.py278 return (1 << (len(enum) - 1).bit_length()) / float(len(enum))
288 enum_bits = [(len(enum[1]) - 1).bit_length() for enum in enums]
/third_party/skia/third_party/externals/libwebp/src/enc/
H A Dvp8l_enc.c727 const int bit_length = huffman_codes[i].num_symbols; in GetHuffBitLengthsAndCodes() local
730 codes += bit_length; in GetHuffBitLengthsAndCodes()
731 lengths += bit_length; in GetHuffBitLengthsAndCodes()
732 if (max_num_symbols < bit_length) { in GetHuffBitLengthsAndCodes()
733 max_num_symbols = bit_length; in GetHuffBitLengthsAndCodes()
/third_party/node/tools/gyp/pylib/gyp/
H A Dmac_tool.py693 return 2 ** (x).bit_length()
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dmac_tool.py693 return 2 ** (x).bit_length()

Completed in 32 milliseconds

12