Home
last modified time | relevance | path

Searched refs:limb_type (Results 1 – 13 of 13) sorted by relevance

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/multiprecision/cpp_int/
H A Dliterals.hpp16 template <> struct hex_value<'0'> { static constexpr limb_type value = 0; };
17 template <> struct hex_value<'1'> { static constexpr limb_type value = 1; };
18 template <> struct hex_value<'2'> { static constexpr limb_type value = 2; };
19 template <> struct hex_value<'3'> { static constexpr limb_type value = 3; };
20 template <> struct hex_value<'4'> { static constexpr limb_type value = 4; };
21 template <> struct hex_value<'5'> { static constexpr limb_type value = 5; };
22 template <> struct hex_value<'6'> { static constexpr limb_type value = 6; };
23 template <> struct hex_value<'7'> { static constexpr limb_type value = 7; };
24 template <> struct hex_value<'8'> { static constexpr limb_type value = 8; };
25 template <> struct hex_value<'9'> { static constexpr limb_type value = 9; };
[all …]
H A Dbitwise.hpp81 limb_type next_limb = 0; in bitwise_op()
90 pr[i] = op(pr[i], limb_type(0)); in bitwise_op()
99 pr[i] = op(pr[i], static_cast<limb_type>(carry)); in bitwise_op()
104 carry += static_cast<double_limb_type>(~limb_type(0)); in bitwise_op()
105 pr[i] = op(pr[i], static_cast<limb_type>(carry)); in bitwise_op()
109 carry += static_cast<double_limb_type>(~limb_type(0)); in bitwise_op()
110 next_limb = op(limb_type(0), static_cast<limb_type>(carry)); in bitwise_op()
122 pr[i] = op(static_cast<limb_type>(carry), po[i]); in bitwise_op()
128 pr[i] = op(static_cast<limb_type>(carry), limb_type(0)); in bitwise_op()
132 carry += static_cast<double_limb_type>(~limb_type(0)); in bitwise_op()
[all …]
H A Dmultiply.hpp23 …const limb_type& val) BOOST_MP_NOEXCEPT_IF((is_non_throwing_cpp_int<cpp_int_backend<MinBits1, MaxB… in eval_multiply()
27 result = static_cast<limb_type>(0); in eval_multiply()
40 *p = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in eval_multiply()
42 *p = static_cast<limb_type>(carry); in eval_multiply()
52 result.limbs()[i] = static_cast<limb_type>(carry); in eval_multiply()
99 limb_type l = *pa; in eval_multiply()
108 limb_type l = *pb; in eval_multiply()
130 static const double_limb_type limb_max = ~static_cast<limb_type>(0u); in eval_multiply()
135 std::memset(pr, 0, result.size() * sizeof(limb_type)); in eval_multiply()
153 pr[i + j] = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in eval_multiply()
[all …]
H A Dimport_export.hpp18 unsigned limb = bit_location / (sizeof(limb_type) * CHAR_BIT); in assign_bits()
19 unsigned shift = bit_location % (sizeof(limb_type) * CHAR_BIT); in assign_bits()
21limb_type mask = chunk_bits >= sizeof(limb_type) * CHAR_BIT ? ~static_cast<limb_type>(0u) : (stati… in assign_bits()
23 limb_type value = static_cast<limb_type>(bits & mask) << shift; in assign_bits()
35 if(chunk_bits > sizeof(limb_type) * CHAR_BIT - shift) in assign_bits()
37 shift = sizeof(limb_type) * CHAR_BIT - shift; in assign_bits()
73 unsigned limb_count = static_cast<unsigned>(bits / (sizeof(limb_type) * CHAR_BIT)); in resize_to_bit_size()
74 if(bits % (sizeof(limb_type) * CHAR_BIT)) in resize_to_bit_size()
76 …x_limbs = MaxBits ? MaxBits / (CHAR_BIT * sizeof(limb_type)) + ((MaxBits % (CHAR_BIT * sizeof(limb… in resize_to_bit_size()
80 std::memset(newval.limbs(), 0, newval.size() * sizeof(limb_type)); in resize_to_bit_size()
[all …]
H A Dcpp_int_config.hpp68 typedef detail::largest_unsigned_type<64>::type limb_type; typedef
72 static const limb_type max_block_10 = 1000000000000000000uLL;
73 static const limb_type digits_per_block_10 = 18;
75 inline limb_type block_multiplier(unsigned count) in block_multiplier()
77 static const limb_type values[digits_per_block_10] in block_multiplier()
104 typedef detail::largest_unsigned_type<32>::type limb_type;
108 static const limb_type max_block_10 = 1000000000;
109 static const limb_type digits_per_block_10 = 9;
111 inline limb_type block_multiplier(unsigned count)
113 static const limb_type values[digits_per_block_10]
[all …]
H A Dadd.hpp53 *pr = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in add_unsigned()
55 *pr = static_cast<limb_type>(carry); in add_unsigned()
68 … std::copy(pa, pa + (pr_end - pr), stdext::checked_array_iterator<limb_type*>(pr, result.size())); in add_unsigned()
76 *pr = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in add_unsigned()
78 *pr = static_cast<limb_type>(carry); in add_unsigned()
88 result.limbs()[x] = static_cast<limb_type>(carry); in add_unsigned()
97 inline void add_unsigned(CppInt1& result, const CppInt2& a, const limb_type& o) BOOST_MP_NOEXCEPT_I… in add_unsigned()
112 pr[i] = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in add_unsigned()
114 pr[i] = static_cast<limb_type>(carry); in add_unsigned()
130 result.limbs()[x] = static_cast<limb_type>(carry); in add_unsigned()
[all …]
H A Dserialize.hpp52 limb_count = byte_count / sizeof(limb_type) + ((byte_count % sizeof(limb_type)) ? 1 : 0); in do_serialize()
54 limb_type* pl = val.limbs(); in do_serialize()
58 for(std::size_t j = 0; (j < sizeof(limb_type)) && byte_count; ++j) in do_serialize()
62 pl[i] |= static_cast<limb_type>(byte) << (j * CHAR_BIT); in do_serialize()
79 limb_type* pl = val.limbs(); in do_serialize()
81 std::size_t byte_count = limb_count * sizeof(limb_type); in do_serialize()
86 limb_type l = pl[i]; in do_serialize()
87 for(std::size_t j = 0; j < sizeof(limb_type); ++j) in do_serialize()
143 ar.load_binary(val.limbs(), c * sizeof(limb_type)); in do_serialize()
158 ar.save_binary(val.limbs(), c * sizeof(limb_type)); in do_serialize()
H A Ddivide.hpp65 limb_type y_order = y.size() - 1; in divide_unsigned_helper()
81 limb_type r_order = x.size() - 1; in divide_unsigned_helper()
94 *result = static_cast<limb_type>(0u); in divide_unsigned_helper()
159 limb_type guess; in divide_unsigned_helper()
170 guess = static_cast<limb_type>(v); in divide_unsigned_helper()
184 guess = static_cast<limb_type>(v); in divide_unsigned_helper()
190 limb_type shift = r_order - y_order; in divide_unsigned_helper()
231 pt[i + shift] = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in divide_unsigned_helper()
233 pt[i + shift] = static_cast<limb_type>(carry); in divide_unsigned_helper()
240 pt[t.size() - 1] = static_cast<limb_type>(carry & ~static_cast<limb_type>(0)); in divide_unsigned_helper()
[all …]
H A Dmisc.hpp183 limb_type mask = shift ? limb_type(1u) << shift : limb_type(1u); in eval_bit_test()
195 limb_type mask = shift ? limb_type(1u) << shift : limb_type(1u); in eval_bit_set()
214 limb_type mask = shift ? limb_type(1u) << shift : limb_type(1u); in eval_bit_unset()
227 limb_type mask = shift ? limb_type(1u) << shift : limb_type(1u); in eval_bit_flip()
258 limb_type y, in eval_qr()
284 if((sizeof(Integer) <= sizeof(limb_type)) || (val <= (std::numeric_limits<limb_type>::max)())) in eval_integer_modulus()
287 …kend<MinBits1, MaxBits1, SignType1, Checked1, Allocator1>*>(0), x, static_cast<limb_type>(val), d); in eval_integer_modulus()
303 inline limb_type integer_gcd_reduce(limb_type u, limb_type v) in integer_gcd_reduce()
325 if(v <= ~static_cast<limb_type>(0)) in integer_gcd_reduce()
327 u = integer_gcd_reduce(static_cast<limb_type>(v), static_cast<limb_type>(u)); in integer_gcd_reduce()
[all …]
H A Dvalue_pack.hpp13 template <limb_type...VALUES>
22 template <limb_type...VALUES>
H A Dcomparison.hpp63 …int_backend<MinBits, MaxBits, signed_magnitude, Checked, Allocator>& a, limb_type b) BOOST_NOEXCEPT in eval_eq()
83 …t_backend<MinBits, MaxBits, unsigned_magnitude, Checked, Allocator>& a, limb_type b) BOOST_NOEXCEPT in eval_eq()
94 …s, unsigned_magnitude, Checked, Allocator>(b)) : eval_eq(a, static_cast<limb_type>(b)); // Use bit… in eval_eq()
101 …int_backend<MinBits, MaxBits, signed_magnitude, Checked, Allocator>& a, limb_type b) BOOST_NOEXCEPT in eval_lt()
135 …t_backend<MinBits, MaxBits, unsigned_magnitude, Checked, Allocator>& a, limb_type b) BOOST_NOEXCEPT in eval_lt()
147 …return (b < 0) ? a.compare(b) < 0 : eval_lt(a, static_cast<limb_type>(b)); // Use bit pattern of b… in eval_lt()
154 …int_backend<MinBits, MaxBits, signed_magnitude, Checked, Allocator>& a, limb_type b) BOOST_NOEXCEPT in eval_gt()
190 …t_backend<MinBits, MaxBits, unsigned_magnitude, Checked, Allocator>& a, limb_type b) BOOST_NOEXCEPT in eval_gt()
202 …return (b < 0) ? a.compare(b) > 0 : eval_gt(a, static_cast<limb_type>(b)); // Use bit pattern of b… in eval_gt()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/multiprecision/
H A Dcpp_int.hpp43 …tor = typename mpl::if_c<MinBits && (MinBits == MaxBits), void, std::allocator<limb_type> >::type >
172 …signed_magnitude, Checked, Allocator, false> : private Allocator::template rebind<limb_type>::other
174 typedef typename Allocator::template rebind<limb_type>::other allocator_type;
192 BOOST_STATIC_CONSTANT(unsigned, limb_bits = sizeof(limb_type) * CHAR_BIT);
193 BOOST_STATIC_CONSTANT(limb_type, max_limb_value = ~static_cast<limb_type>(0u));
194 BOOST_STATIC_CONSTANT(limb_type, sign_bit_mask = static_cast<limb_type>(1u) << (limb_bits - 1));
198 : (sizeof(limb_data) / sizeof(limb_type)));
205 limb_type la[internal_limb_count];
206 limb_type first;
210 BOOST_CONSTEXPR data_type(limb_type i) : first(i) {} in data_type()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/multiprecision/detail/
H A Dgeneric_interconvert.hpp88 typedef typename canonical<unsigned char, From>::type limb_type; in generic_interconvert() typedef
90 typedef typename canonical<limb_type, To>::type to_type; in generic_interconvert()
96 limb_type limb; in generic_interconvert()
97 limb_type mask = static_cast<limb_type>(~static_cast<limb_type>(0)); in generic_interconvert()
102 eval_right_shift(t, std::numeric_limits<limb_type>::digits); in generic_interconvert()
107 unsigned shift = std::numeric_limits<limb_type>::digits; in generic_interconvert()
113 eval_right_shift(t, std::numeric_limits<limb_type>::digits); in generic_interconvert()
116 shift += std::numeric_limits<limb_type>::digits; in generic_interconvert()