Home
last modified time | relevance | path

Searched refs:CHAR_BIT (Results 1 – 25 of 268) sorted by relevance

1234567891011

/third_party/boost/boost/multiprecision/cpp_int/
Dimport_export.hpp17 unsigned limb = bit_location / (sizeof(limb_type) * CHAR_BIT); in assign_bits()
18 unsigned shift = bit_location % (sizeof(limb_type) * CHAR_BIT); in assign_bits()
20 …limb_type mask = chunk_bits >= sizeof(limb_type) * CHAR_BIT ? ~static_cast<limb_type>(0u) : (stati… in assign_bits()
34 if (chunk_bits > sizeof(limb_type) * CHAR_BIT - shift) in assign_bits()
36 shift = sizeof(limb_type) * CHAR_BIT - shift; in assign_bits()
52 if ((bit_location >= sizeof(local_limb_type) * CHAR_BIT) && bits) in assign_bits()
56 …local_limb_type mask = chunk_bits >= sizeof(local_limb_type) * CHAR_BIT ? ~static_cast<local_limb… in assign_bits()
62 bit_location = sizeof(local_limb_type) * CHAR_BIT - bit_location; in assign_bits()
63 if ((bit_location < sizeof(bits) * CHAR_BIT) && (bits >>= bit_location)) in assign_bits()
71 unsigned limb_count = static_cast<unsigned>(bits / (sizeof(limb_type) * CHAR_BIT)); in resize_to_bit_size()
[all …]
Dserialize.hpp66 pl[i] |= static_cast<limb_type>(byte) << (j * CHAR_BIT); in do_serialize()
94 … unsigned char byte = static_cast<unsigned char>((l >> (j * CHAR_BIT)) & ((1u << CHAR_BIT) - 1)); in do_serialize()
115 l |= static_cast<typename Int::local_limb_type>(b) << (i * CHAR_BIT); in do_serialize()
135 …typename Int::local_limb_type>(l >> (i * CHAR_BIT)) & static_cast<typename Int::local_limb_type>((… in do_serialize()
/third_party/boost/boost/
Dinteger.hpp84 …template <> struct exact_signed_base_helper<sizeof(signed char)* CHAR_BIT> { typedef signed char e…
85 …template <> struct exact_unsigned_base_helper<sizeof(unsigned char)* CHAR_BIT> { typedef unsigned …
87 template <> struct exact_signed_base_helper<sizeof(short)* CHAR_BIT> { typedef short exact; };
88 …template <> struct exact_unsigned_base_helper<sizeof(unsigned short)* CHAR_BIT> { typedef unsigned…
91 template <> struct exact_signed_base_helper<sizeof(int)* CHAR_BIT> { typedef int exact; };
92 …template <> struct exact_unsigned_base_helper<sizeof(unsigned int)* CHAR_BIT> { typedef unsigned i…
96 template <> struct exact_signed_base_helper<sizeof(long)* CHAR_BIT> { typedef long exact; };
97 …template <> struct exact_unsigned_base_helper<sizeof(unsigned long)* CHAR_BIT> { typedef unsigned …
104 …template <> struct exact_signed_base_helper<sizeof(boost::long_long_type)* CHAR_BIT> { typedef boo…
105 …template <> struct exact_unsigned_base_helper<sizeof(boost::ulong_long_type)* CHAR_BIT> { typedef …
[all …]
Dcrc.hpp408 boost::array< unsigned char, (UINTMAX_C( 1 ) << CHAR_BIT) >
411 boost::array<unsigned char, ( UINTMAX_C(1) << CHAR_BIT )> result; in make_byte_reflection_table()
437 static boost::array<unsigned char, ( UINTMAX_C(1) << CHAR_BIT )> const in reflect_byte()
456 { return reflect_byte(x) >> (CHAR_BIT - word_length); } in reflect_sub_byte()
893 : public boost::conditional< (BitLength > CHAR_BIT),
1090 : public crc_table_t<Order, CHAR_BIT, TruncatedPolynomial, false>
1092 typedef crc_table_t<Order, CHAR_BIT, TruncatedPolynomial, false>
1118 unsigned char const index = ( remainder >> (Order - CHAR_BIT) ) in augmented_crc_update()
1122 remainder <<= CHAR_BIT; in augmented_crc_update()
1150 unsigned char const index = ( (remainder >> ( Order - CHAR_BIT in crc_update()
[all …]
Dlimits.hpp53 …ST_LLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 1LL << (sizeof(BOOST_LLT) * CHAR_BIT - 1); } in BOOST_PREVENT_MACRO_SUBSTITUTION()
56 BOOST_STATIC_CONSTANT(int, digits = sizeof(BOOST_LLT) * CHAR_BIT -1);
57 BOOST_STATIC_CONSTANT(int, digits10 = (CHAR_BIT * sizeof (BOOST_LLT) - 1) * 301L / 1000);
109 BOOST_STATIC_CONSTANT(int, digits = sizeof(BOOST_LLT) * CHAR_BIT);
110 BOOST_STATIC_CONSTANT(int, digits10 = (CHAR_BIT * sizeof (BOOST_LLT)) * 301L / 1000);
/third_party/glib/glib/gnulib/
Dfloat+.h138 #define SIZEOF_FLT ((FLT_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT)
139 #define SIZEOF_DBL ((DBL_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT)
140 #define SIZEOF_LDBL ((LDBL_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT)
/third_party/openssl/include/internal/
Dnumbers.h18 # define __MAXINT__(T) ((T) ((((T) 1) << ((sizeof(T) * CHAR_BIT) - 1)) ^ __MAXUINT__(T)))
24 # define __MAXINT__(T) ((T) ((((T) 1) << ((sizeof(T) * CHAR_BIT) - 1)) ^ __MAXUINT__(T)))
29 … __MAXINT__(T) ((T) (((((T) 1) << ((sizeof(T) * CHAR_BIT) - 2)) - 1) | (((T) 1) << ((sizeof(T) * C…
30 # define __MAXUINT__(T) ((T) (__MAXINT__(T) | (((T) 1) << ((sizeof(T) * CHAR_BIT) - 1))))
/third_party/boost/boost/spirit/home/x3/binary/
Dbinary.hpp90 static_assert(bits % CHAR_BIT == 0, in parse()
93 endian::endian_load<T, bits / CHAR_BIT, endian>(buf), in parse()
122 BOOST_SPIRIT_MAKE_BINARY_PRIMITIVE(bin_float, native, float, sizeof(float) * CHAR_BIT)
123 BOOST_SPIRIT_MAKE_BINARY_PRIMITIVE(big_bin_float, big, float, sizeof(float) * CHAR_BIT)
124 BOOST_SPIRIT_MAKE_BINARY_PRIMITIVE(little_bin_float, little, float, sizeof(float) * CHAR_BIT)
125 BOOST_SPIRIT_MAKE_BINARY_PRIMITIVE(bin_double, native, double, sizeof(double) * CHAR_BIT)
126 BOOST_SPIRIT_MAKE_BINARY_PRIMITIVE(big_bin_double, big, double, sizeof(double) * CHAR_BIT)
127 BOOST_SPIRIT_MAKE_BINARY_PRIMITIVE(little_bin_double, little, double, sizeof(double) * CHAR_BIT)
/third_party/gstreamer/gstplugins_good/gst/rtp/
Ddboolhuff.h19 # define VP8_BD_VALUE_SIZE ((int)sizeof(VP8_BD_VALUE)*CHAR_BIT)
57 size_t bits_left = ((_bufend)-(_bufptr))*CHAR_BIT; \
59 x = shift + CHAR_BIT - bits_left; \
69 (_count) += CHAR_BIT; \
71 shift -= CHAR_BIT; \
/third_party/glib/glib/
Dglib-init.c43 G_STATIC_ASSERT (CHAR_BIT == 8);
77 G_STATIC_ASSERT (sizeof (gint8) * CHAR_BIT == 8);
78 G_STATIC_ASSERT (sizeof (guint8) * CHAR_BIT == 8);
79 G_STATIC_ASSERT (sizeof (gint16) * CHAR_BIT == 16);
80 G_STATIC_ASSERT (sizeof (guint16) * CHAR_BIT == 16);
81 G_STATIC_ASSERT (sizeof (gint32) * CHAR_BIT == 32);
82 G_STATIC_ASSERT (sizeof (guint32) * CHAR_BIT == 32);
83 G_STATIC_ASSERT (sizeof (gint64) * CHAR_BIT == 64);
84 G_STATIC_ASSERT (sizeof (guint64) * CHAR_BIT == 64);
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/
Ddboolhuff.c46 size_t bits_left = bytes_left * CHAR_BIT; in vp8dx_bool_decoder_fill()
47 int x = (int) (shift + CHAR_BIT - bits_left); in vp8dx_bool_decoder_fill()
65 count += CHAR_BIT; in vp8dx_bool_decoder_fill()
69 shift -= CHAR_BIT; in vp8dx_bool_decoder_fill()
/third_party/boost/libs/regex/src/
Dw32_regex_traits.cpp120 char char_map[1 << CHAR_BIT]; in init()
121 for(int ii = 0; ii < (1 << CHAR_BIT); ++ii) in init()
124 …tringA(this->m_locale, LCMAP_LOWERCASE, char_map, 1 << CHAR_BIT, this->m_lower_map, 1 << CHAR_BIT); in init()
130 WCHAR wide_char_map[1 << CHAR_BIT]; in init()
131 …v_r = ::MultiByteToWideChar(code_page, 0, char_map, 1 << CHAR_BIT, wide_char_map, 1 << CHAR_BIT); in init()
134 WCHAR wide_lower_map[1 << CHAR_BIT]; in init()
135 …gW(this->m_locale, LCMAP_LOWERCASE, wide_char_map, 1 << CHAR_BIT, wide_lower_map, 1 << CHAR_BIT); in init()
138 …eCharToMultiByte(code_page, 0, wide_lower_map, r, this->m_lower_map, 1 << CHAR_BIT, NULL, NULL); in init()
141 if(r < (1 << CHAR_BIT)) in init()
145 for(int jj = r; jj < (1 << CHAR_BIT); ++jj) in init()
[all …]
/third_party/boost/boost/multiprecision/
Dinteger.hpp72 …number<cpp_int_backend<sizeof(I) * CHAR_BIT * 2, sizeof(I) * CHAR_BIT * 2, (is_signed<I>::value ? …
149 if (index >= sizeof(Integer) * CHAR_BIT) in bit_test()
160 if (index >= sizeof(Integer) * CHAR_BIT) in bit_set()
172 if (index >= sizeof(Integer) * CHAR_BIT) in bit_unset()
184 if (index >= sizeof(Integer) * CHAR_BIT) in bit_flip()
/third_party/boost/libs/integer/test/
Dinteger_test.cpp88 (sizeof(unsigned char) * CHAR_BIT == Bits) in do_test_bits()
89 || (sizeof(unsigned short) * CHAR_BIT == Bits) in do_test_bits()
90 || (sizeof(unsigned int) * CHAR_BIT == Bits) in do_test_bits()
91 || (sizeof(unsigned long) * CHAR_BIT == Bits) in do_test_bits()
93 || (sizeof(boost::ulong_long_type) * CHAR_BIT == Bits) in do_test_bits()
112 BOOST_TEST(sizeof(least_int) * CHAR_BIT >= Bits); in do_test_bits()
113 BOOST_TEST(sizeof(least_uint) * CHAR_BIT >= Bits); in do_test_bits()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DPointerEmbeddedInt.h32 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT>
38 static_assert(Bits < sizeof(uintptr_t) * CHAR_BIT,
44 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
/third_party/e2fsprogs/intl/
Dvasnprintf.c332 (unsigned int) (sizeof (unsigned long long) * CHAR_BIT in VASNPRINTF()
342 (unsigned int) (sizeof (unsigned long) * CHAR_BIT in VASNPRINTF()
350 (unsigned int) (sizeof (unsigned int) * CHAR_BIT in VASNPRINTF()
362 (unsigned int) (sizeof (unsigned long long) * CHAR_BIT in VASNPRINTF()
371 (unsigned int) (sizeof (unsigned long) * CHAR_BIT in VASNPRINTF()
378 (unsigned int) (sizeof (unsigned int) * CHAR_BIT in VASNPRINTF()
389 (unsigned int) (sizeof (unsigned long long) * CHAR_BIT in VASNPRINTF()
398 (unsigned int) (sizeof (unsigned long) * CHAR_BIT in VASNPRINTF()
405 (unsigned int) (sizeof (unsigned int) * CHAR_BIT in VASNPRINTF()
468 (unsigned int) (sizeof (void *) * CHAR_BIT in VASNPRINTF()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceUtils.h41 (static_cast<unsigned int>(N) < (CHAR_BIT * sizeof(value)))); in IsInt()
48 (static_cast<unsigned int>(N) < (CHAR_BIT * sizeof(value)))); in IsUint()
57 (static_cast<unsigned int>(N) < (CHAR_BIT * sizeof(Value)))); in IsAbsoluteUint()
141 ((1 << (CHAR_BIT * sizeof(uint32_t) - __builtin_clz(Size))) - 1) - 1;
/third_party/gstreamer/gstreamer/gst/printf/
Dvasnprintf.c444 …tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.30103 /* binary -> decimal… in vasnprintf()
452 …tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.30103 /* binary -> decimal… in vasnprintf()
458 …tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.30103 /* binary -> decimal… in vasnprintf()
468 …tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.333334 /* binary ->… in vasnprintf()
475 …tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.333334 /* binary -> octal */ in vasnprintf()
480 …tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.333334 /* binary -> octal */ in vasnprintf()
490 …tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.25 /* binary -> hexadec… in vasnprintf()
498 …tmp_length = (unsigned int) (sizeof (unsigned __int64) * CHAR_BIT * 0.25 /* binary -> hexadec… in vasnprintf()
505 … tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ in vasnprintf()
510 … tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ in vasnprintf()
[all …]
/third_party/boost/boost/regex/pending/
Dunicode_iterator.hpp150 BOOST_STATIC_ASSERT(sizeof(base_value_type)*CHAR_BIT == 32);
151 BOOST_STATIC_ASSERT(sizeof(U16Type)*CHAR_BIT == 16);
265 BOOST_STATIC_ASSERT(sizeof(base_value_type)*CHAR_BIT == 16);
266 BOOST_STATIC_ASSERT(sizeof(U32Type)*CHAR_BIT == 32);
380 BOOST_STATIC_ASSERT(sizeof(base_value_type)*CHAR_BIT == 32);
381 BOOST_STATIC_ASSERT(sizeof(U8Type)*CHAR_BIT == 8);
508 BOOST_STATIC_ASSERT(sizeof(base_value_type)*CHAR_BIT == 8);
509 BOOST_STATIC_ASSERT(sizeof(U32Type)*CHAR_BIT == 32);
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitstreamReader.h540 return NextChar * CHAR_BIT - BitsInCurWord; in GetCurrentBitNo()
545 return BitStream->getErrorOffset() * CHAR_BIT + Position; in getErrorBitNo()
614 return uintptr_t(BitNo / CHAR_BIT) & ~(sizeof(word_t) - 1); in getStartWordByteForBit()
619 return unsigned(BitNo & (sizeof(word_t) * CHAR_BIT - 1)); in getWordBitNo()
669 BitsInCurWord = BytesRead * CHAR_BIT; in fillCurWord()
673 static const unsigned BitsInWord = sizeof(word_t) * CHAR_BIT; in Read()
752 unsigned BitsToSkip = BitsInCurWord % CHAR_BIT; in SkipToByteBoundary()
801 size_t SkipTo = GetCurrentBitNo() + NumFourBytes * 4 * CHAR_BIT; in SkipBlock()
802 if (AtEndOfStream() || !canSkipToPos(SkipTo / CHAR_BIT)) in SkipBlock()
/third_party/grpc/third_party/address_sorting/
Daddress_sorting.c75 int high_bit = 1 << (CHAR_BIT - 1); in ipv6_prefix_match_length()
76 int a_val = a[cur_bit / CHAR_BIT] & (high_bit >> (cur_bit % CHAR_BIT)); in ipv6_prefix_match_length()
77 int b_val = b[cur_bit / CHAR_BIT] & (high_bit >> (cur_bit % CHAR_BIT)); in ipv6_prefix_match_length()
/third_party/optimized-routines/networking/aarch64/
Dchksum_simd.c28 uint64_t mask = ALL_ONES << (CHAR_BIT * off); in slurp_head64()
47 uint64_t mask = ALL_ONES >> (CHAR_BIT * (8 - nbytes)); in slurp_tail64()
48 Assert(__builtin_popcountl(mask) / CHAR_BIT == nbytes); in slurp_tail64()
/third_party/boost/libs/serialization/example/
Dportable_binary_oarchive.cpp35 ll >>= CHAR_BIT; in save_impl()
78 save(static_cast<unsigned char>(m_flags >> CHAR_BIT)); in init()
/third_party/boost/boost/compute/container/
Ddynamic_bitset.hpp47 BOOST_STATIC_CONSTANT(size_type, bits_per_block = sizeof(block_type) * CHAR_BIT);
176 const size_type bit = n % (sizeof(block_type) * CHAR_BIT); in test()
177 const size_type block = n / (sizeof(block_type) * CHAR_BIT); in test()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
Dtest_arith_main.cpp119 << (CHAR_BIT * sizeof(TypeUnsigned)) << "(" << Value1 in testsInt()
155 << (CHAR_BIT * sizeof(TypeUnsigned)) << "(" << Value1 in testsInt()
216 Element2 &= CHAR_BIT * sizeof(ElementTypeUnsigned) - 1; in testsVecInt()
235 << (CHAR_BIT * sizeof(ElementTypeUnsigned)) << "(" in testsVecInt()
281 << (CHAR_BIT * sizeof(Type)) << "(" << Value1 << ", " in testsFp()
298 std::cout << std::fixed << "test_sqrt" << (CHAR_BIT * sizeof(Type)) << "(" in testsFp()
310 std::cout << std::fixed << "test_fabs" << (CHAR_BIT * sizeof(Type)) << "(" in testsFp()

1234567891011