Home
last modified time | relevance | path

Searched refs:bit_length (Results 1 – 25 of 36) sorted by relevance

12

/third_party/boost/libs/sort/example/
Dbinaryalrbreaker.cpp72 unsigned bit_length = total_length - radix_threshold; in main() local
74 for (; bit_length >= ++bit_offset; bit_length -= bit_offset) in main()
76 for (int ii = (1 << bit_length) - 1; ii >= 0; --ii) in main()
77 fill_vector(input, ii, total_length - bit_length, in main()
/third_party/python/Lib/idlelib/idle_test/
Dtest_delegator.py20 bl = mydel.bit_length
21 self.assertIs(bl, int.bit_length)
22 self.assertIs(mydel.__dict__['bit_length'], int.bit_length)
/third_party/python/Lib/test/
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:
Dtest_long.py62 shift = n.bit_length() - PRECISION
97 d = a.bit_length() - b.bit_length()
988 k = x.bit_length()
1005 self.assertEqual((0).bit_length(), 0)
1006 self.assertEqual((1).bit_length(), 1)
1007 self.assertEqual((-1).bit_length(), 1)
1008 self.assertEqual((2).bit_length(), 2)
1009 self.assertEqual((-2).bit_length(), 2)
1012 self.assertEqual((a-1).bit_length(), i)
1013 self.assertEqual((1-a).bit_length(), i)
[all …]
Dtest_time.py116 if platform.system() == "AIX" and (sys.maxsize.bit_length() <= 32):
/third_party/boost/boost/sort/spreadsort/detail/
Dspreadsort_common.hpp94 unsigned bit_length = ((((max_splits - 1) + remainder)/max_splits) in get_min_count() local
97 if (bit_length >= (8 * sizeof(size_t))) in get_min_count()
100 return typed_one << bit_length; in get_min_count()
/third_party/ffmpeg/libavcodec/
Dsbc.c58 int bit_length = len & 7; in ff_sbc_crc8() local
63 if (bit_length) { in ff_sbc_crc8()
65 while (bit_length--) { in ff_sbc_crc8()
Dh264_ps.h165 H264ParamSets *ps, int bit_length);
Dcbs_h265_syntax_template.c72 current->bit_length = k; in FUNC()
75 allocate(current->data, (current->bit_length + 7) / 8); in FUNC()
76 for (k = 0; k < current->bit_length; k++) { in FUNC()
82 for (k = 0; k < current->bit_length; k++) in FUNC()
Dh264_ps.c750 H264ParamSets *ps, int bit_length) in ff_h264_decode_picture_parameter_set() argument
852 bits_left = bit_length - get_bits_count(gb); in ff_h264_decode_picture_parameter_set()
Dcbs_h265.h180 size_t bit_length; member
/third_party/weston/libweston/backend-drm/
Dvaapi-recorder.c661 void *data, int bit_length) in create_packed_header_buffers() argument
667 packed_header.bit_length = bit_length; in create_packed_header_buffers()
679 (bit_length + 7) / 8, 1, data, &buffers[1]); in create_packed_header_buffers()
693 int bit_length; in encoder_prepare_headers() local
698 bit_length = build_packed_seq_buffer(r, &data); in encoder_prepare_headers()
700 data, bit_length); in encoder_prepare_headers()
703 bit_length = build_packed_pic_buffer(r, &data); in encoder_prepare_headers()
705 data, bit_length); in encoder_prepare_headers()
/third_party/python/Lib/
Dcrypt.py52 log_rounds = int.bit_length(rounds-1)
Dipaddress.py200 return min(bits, (~number & (number-1)).bit_length())
250 (last_int - first_int + 1).bit_length() - 1)
Drandom.py245 k = n.bit_length() # don't use (n-1) here because n can be 1
Denum.py1009 return value.bit_length() - 1
D_pydecimal.py706 k = d.bit_length() - 1
1015 shift2 = min((n & -n).bit_length() - 1, d2)
5670 _nbits = int.bit_length
/third_party/boost/boost/
Dcrc.hpp190 void process_bits( unsigned char bits, std::size_t bit_length );
1766 std::size_t bit_length in process_bits() argument
1770 bits <<= CHAR_BIT - bit_length; in process_bits()
1774 for ( std::size_t i = bit_length ; i > 0u ; --i, bits <<= 1u ) in process_bits()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dgen_vk_internal_shaders.py237 enums.sort(key=lambda enum: (1 << (len(enum[1]) - 1).bit_length()) / float(len(enum[1])))
244 enum_bits = [(len(enum[1]) - 1).bit_length() for enum in enums]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
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/flutter/skia/third_party/externals/libwebp/src/enc/
Dvp8l_enc.c486 const int bit_length = huffman_codes[i].num_symbols; in GetHuffBitLengthsAndCodes() local
489 codes += bit_length; in GetHuffBitLengthsAndCodes()
490 lengths += bit_length; in GetHuffBitLengthsAndCodes()
491 if (max_num_symbols < bit_length) { in GetHuffBitLengthsAndCodes()
492 max_num_symbols = bit_length; in GetHuffBitLengthsAndCodes()
/third_party/python/Doc/whatsnew/
D3.1.rst126 * The :func:`int` type gained a ``bit_length`` method that returns the
132 >>> n.bit_length()
135 >>> n.bit_length()
137 >>> (n+1).bit_length()
/third_party/skia/third_party/externals/libwebp/src/enc/
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/
Dmac_tool.py698 return 2 ** (x).bit_length()
/third_party/python/Lib/test/support/
D__init__.py1880 bits = n.bit_length() * 2 # bits in n**2

12