/third_party/boost/boost/multiprecision/cpp_int/ |
D | comparison.hpp | 30 …n()) && (a.size() == b.size()) && std_constexpr::equal(a.limbs(), a.limbs() + a.size(), b.limbs()); in eval_eq() 38 …n()) && (a.size() == b.size()) && std_constexpr::equal(a.limbs(), a.limbs() + a.size(), b.limbs()); in eval_eq() 46 return (a.sign() == false) && (a.size() == 1) && (*a.limbs() == b); in eval_eq() 54 …return (a.sign() == (b < 0)) && (a.size() == 1) && (*a.limbs() == boost::multiprecision::detail::u… in eval_eq() 62 return (a.size() == 1) && (*a.limbs() == b); in eval_eq() 83 return *a.limbs() < b; in eval_lt() 97 return *a.limbs() > boost::multiprecision::detail::unsigned_abs(b); in eval_lt() 103 return *a.limbs() < boost::multiprecision::detail::unsigned_abs(b); in eval_lt() 115 return *a.limbs() < b; in eval_lt() 136 return *a.limbs() > b; in eval_gt() [all …]
|
D | add.hpp | 37 … result = static_cast<double_limb_type>(*a.limbs()) + static_cast<double_limb_type>(*b.limbs()); in add_unsigned() 42 typename CppInt2::const_limb_pointer pa = a.limbs(); in add_unsigned() 43 typename CppInt3::const_limb_pointer pb = b.limbs(); in add_unsigned() 44 typename CppInt1::limb_pointer pr = result.limbs(); in add_unsigned() 86 result.limbs()[x] = static_cast<limb_type>(carry); in add_unsigned() 102 typename CppInt1::limb_pointer pr = result.limbs(); in add_unsigned() 103 typename CppInt2::const_limb_pointer pa = a.limbs(); in add_unsigned() 128 result.limbs()[x] = static_cast<limb_type>(carry); in add_unsigned() 151 limb_type al = *a.limbs(); in subtract_unsigned() 152 limb_type bl = *b.limbs(); in subtract_unsigned() [all …]
|
D | misc.hpp | 71 …tic_cast<boost::multiprecision::limb_type>((std::numeric_limits<R>::max)()) <= backend.limbs()[0])) in eval_convert_to() 76 …atic_cast<boost::multiprecision::limb_type>((std::numeric_limits<R>::max)()) <= backend.limbs()[0]) in eval_convert_to() 82 *result = static_cast<R>(backend.limbs()[0]); in eval_convert_to() 85 *result = static_cast<R>(backend.limbs()[0]); in eval_convert_to() 92 *result += static_cast<R>(backend.limbs()[i]) << shift; in eval_convert_to() 102 *result += (static_cast<R>(backend.limbs()[i]) & mask) << shift; in eval_convert_to() 103 …if ((static_cast<R>(backend.limbs()[i]) & static_cast<limb_type>(~mask)) || (i + 1 < backend.size(… in eval_convert_to() 140 …d<MinBits1, MaxBits1, SignType1, Checked1, Allocator1>::const_limb_pointer p = backend.limbs(); in eval_convert_to() 156 return (val.size() == 1) && (val.limbs()[0] == 0); in eval_is_zero() 193 while (!a.limbs()[index] && (index < a.size())) in eval_lsb() [all …]
|
D | import_export.hpp | 29 val.limbs()[limb] = value; in assign_bits() 32 val.limbs()[limb] |= value; in assign_bits() 58 *val.limbs() |= value; in assign_bits() 78 std::memset(newval.limbs(), 0, newval.size() * sizeof(limb_type)); in resize_to_bit_size() 83 *newval.limbs() = 0; in resize_to_bit_size() 102 size_type limbs = std::distance(i, j); in import_bits_generic() local 103 size_type bits = limbs * chunk_size; in import_bits_generic() 134 result.limbs()[result.size() - 1] = 0u; in import_bits_fast() 135 std::memcpy(result.limbs(), i, (std::min)(byte_len, result.size() * sizeof(limb_type))); in import_bits_fast() 146 … limb_len = byte_len / sizeof(result.limbs()[0]); in import_bits_fast() [all …]
|
D | bitwise.hpp | 76 typename CppInt1::limb_pointer pr = result.limbs(); in bitwise_op() 77 typename CppInt2::const_limb_pointer po = o.limbs(); in bitwise_op() 178 result.limbs()[x] = static_cast<limb_type>(carry); in bitwise_op() 204 typename CppInt1::limb_pointer pr = result.limbs(); in bitwise_op() 205 typename CppInt2::const_limb_pointer po = o.limbs(); in bitwise_op() 268 result.limbs()[0] &= l; in eval_bitwise_and() 278 result.limbs()[0] |= l; in eval_bitwise_or() 287 result.limbs()[0] ^= l; in eval_bitwise_xor() 312 result.limbs()[i] = ~o.limbs()[i]; in eval_complement() 314 result.limbs()[i] = ~static_cast<limb_type>(0); in eval_complement() [all …]
|
D | serialize.hpp | 58 limb_type* pl = val.limbs(); in do_serialize() 84 limb_type* pl = val.limbs(); in do_serialize() 117 *val.limbs() = l; in do_serialize() 129 typename Int::local_limb_type l = *val.limbs(); in do_serialize() 150 ar.load_binary(val.limbs(), c * sizeof(limb_type)); in do_serialize() 165 ar.save_binary(val.limbs(), c * sizeof(limb_type)); in do_serialize() 175 ar.load_binary(val.limbs(), sizeof(*val.limbs())); in do_serialize() 187 ar.save_binary(val.limbs(), sizeof(*val.limbs())); in do_serialize()
|
D | divide.hpp | 73 divide_unsigned_helper(result, x, y.limbs()[y_order], r); in divide_unsigned_helper() 77 typename CppInt2::const_limb_pointer px = x.limbs(); in divide_unsigned_helper() 78 typename CppInt3::const_limb_pointer py = y.limbs(); in divide_unsigned_helper() 139 typename CppInt1::const_limb_pointer prem = r.limbs(); in divide_unsigned_helper() 144 pr = result->limbs(); in divide_unsigned_helper() 192 t.limbs()[shift] = guess; in divide_unsigned_helper() 194 t.limbs()[i] = 0; in divide_unsigned_helper() 203 t.limbs()[shift] = guess; in divide_unsigned_helper() 205 t.limbs()[i] = 0; in divide_unsigned_helper() 216 typename CppInt1::limb_pointer pt = t.limbs(); in divide_unsigned_helper() [all …]
|
/third_party/boost/boost/multiprecision/ |
D | cpp_int.hpp | 231 BOOST_CONSTEXPR data_type(limb_type* limbs, unsigned len) BOOST_NOEXCEPT : ld{ len, limbs } in data_type() argument 234 BOOST_CONSTEXPR data_type(limb_type* limbs, unsigned len) BOOST_NOEXCEPT in data_type() argument 237 ld.data = limbs; in data_type() 295 …scoped_shared_storage(limb_type* limbs, unsigned n) : data(limbs), capacity(n), allocated(0), is_a… in scoped_shared_storage() 341 …BOOST_MP_FORCEINLINE limb_pointer limbs() BOOST_NOEXCEPT { return m_internal ? m_data.la … in limbs() function 342 …BOOST_MP_FORCEINLINE const_limb_pointer limbs() const BOOST_NOEXCEPT { return m_internal ? m_da… in limbs() function 351 if (limbs()[0] == 0) in sign() 371 std::memcpy(pl, limbs(), size() * sizeof(limbs()[0])); in resize() 373 allocator().deallocate(limbs(), capacity()); in resize() 387 limb_pointer p = limbs(); in normalize() [all …]
|
D | cpp_bin_float.hpp | 619 if (!bits_to_keep && !res.bits().limbs()[0]) 1135 if ((q.limbs()[0] & 1u) && (eval_get_sign(r) || (q.limbs()[0] & 2u))) in eval_divide() 1156 q.limbs()[0] |= static_cast<limb_type>(1u) << (lshift - 1); in eval_divide() 1158 q.limbs()[0] |= (static_cast<limb_type>(1u) << (lshift - 1)) + static_cast<limb_type>(1u); in eval_divide() 1253 if ((q.limbs()[0] & 1u) && eval_get_sign(r)) in eval_divide() 1274 q.limbs()[0] |= static_cast<limb_type>(1u) << (lshift - 1); in eval_divide() 1276 q.limbs()[0] |= (static_cast<limb_type>(1u) << (lshift - 1)) + static_cast<limb_type>(1u); in eval_divide() 1489 …t>::digits / (sizeof(*arg.bits().limbs()) * CHAR_BIT) + (std::numeric_limits<Float>::digits % (siz… in eval_convert_to() 1492 e += first_limb_needed * sizeof(*arg.bits().limbs()) * CHAR_BIT; in eval_convert_to() 1495 …*res += std::ldexp(static_cast<Float>(arg.bits().limbs()[first_limb_needed]), static_cast<int>(e)); in eval_convert_to() [all …]
|
/third_party/boost/libs/math/reporting/performance/ |
D | test_gcd.cpp | 316 eval_gcd(result, b, *a.limbs()); in eval_gcd_new() 321 eval_gcd(result, a, *b.limbs()); in eval_gcd_new() 376 *up = boost::integer::gcd_detail::mixed_binary_gcd(*vp->limbs(), *up->limbs()); in eval_gcd_new() 380 …i = vp->limbs()[0] | (static_cast<double_limb_type>(vp->limbs()[1]) << sizeof(limb_type) * CHAR_BI… in eval_gcd_new() 381 …j = (up->size() == 1) ? *up->limbs() : up->limbs()[0] | (static_cast<double_limb_type>(up->limbs()… in eval_gcd_new()
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_mpi.data | 358 Multi-limb mbedtls_mpi_lt_mpi_ct (X>Y, equal MS limbs) 367 Multi-limb mbedtls_mpi_lt_mpi_ct (Alternating limbs) #1 370 Multi-limb mbedtls_mpi_lt_mpi_ct (Alternating limbs) #2 373 Multi-limb mbedtls_mpi_lt_mpi_ct (Alternating limbs) #3 376 Multi-limb mbedtls_mpi_lt_mpi_ct (Alternating limbs) #4 670 Shrink 0 limbs in a buffer of size 0 to 0 673 Shrink 2 limbs in a buffer of size 2 to 4 676 Shrink 2 limbs in a buffer of size 4 to 4 679 Shrink 2 limbs in a buffer of size 8 to 4 682 Shrink 4 limbs in a buffer of size 8 to 4 [all …]
|
D | test_suite_ecp.data | 587 ECP mod p192 small (more than 192 bits, less limbs than 2 * 192 bits)
|
/third_party/boost/libs/multiprecision/example/ |
D | hashing_examples.cpp | 50 …64(reinterpret_cast<const char*>(val.backend().limbs()), val.backend().size() * sizeof(val.backend… in operator ()()
|
/third_party/boost/libs/multiprecision/test/ |
D | test_move.cpp | 355 void const* p = a.backend().limbs(); in main() 357 BOOST_TEST(b.backend().limbs() == p); in main() 367 p = d.backend().limbs(); in main() 368 BOOST_TEST(p != e.backend().limbs()); in main() 370 BOOST_TEST(e.backend().limbs() == p); in main()
|
D | test_int_io.cpp | 66 …static const unsigned limbs = std::numeric_limits<T>::is_specialized && std::numeric_limits<T>::is… in generate_random() local 68 static boost::random::uniform_int_distribution<unsigned> ui(0, limbs); in generate_random()
|
D | test_cpp_int_import_export.cpp | 41 …static const unsigned limbs = std::numeric_limits<T>::is_specialized && std::numeric_limits<T>::is… in generate_random() local 43 static boost::random::uniform_int_distribution<unsigned> ui(0, limbs); in generate_random()
|
/third_party/mbedtls/library/ |
D | bignum.c | 187 static int mbedtls_mpi_resize_clear( mbedtls_mpi *X, size_t limbs ) in mbedtls_mpi_resize_clear() argument 189 if( limbs == 0 ) in mbedtls_mpi_resize_clear() 194 else if( X->n == limbs ) in mbedtls_mpi_resize_clear() 196 memset( X->p, 0, limbs * ciL ); in mbedtls_mpi_resize_clear() 203 return( mbedtls_mpi_grow( X, limbs ) ); in mbedtls_mpi_resize_clear() 757 static void mpi_bigendian_to_host( mbedtls_mpi_uint * const p, size_t limbs ) in mpi_bigendian_to_host() argument 761 if( limbs == 0 ) in mpi_bigendian_to_host() 773 for( cur_limb_left = p, cur_limb_right = p + ( limbs - 1 ); in mpi_bigendian_to_host() 794 size_t const limbs = CHARS_TO_LIMBS( buflen ); in mbedtls_mpi_read_binary_le() local 797 MBEDTLS_MPI_CHK( mbedtls_mpi_resize_clear( X, limbs ) ); in mbedtls_mpi_read_binary_le() [all …]
|
/third_party/glib/glib/gnulib/ |
D | vasnprintf.c | 349 mp_limb_t *limbs; /* Bits in little-endian order, allocated with malloc(). */ member 366 p1 = src1.limbs; in multiply() 368 p2 = src2.limbs; in multiply() 373 p1 = src2.limbs; in multiply() 375 p2 = src1.limbs; in multiply() 382 dest->limbs = (mp_limb_t *) malloc (1); in multiply() 415 dest->limbs = dp; in multiply() 417 return dest->limbs; in multiply() 481 const mp_limb_t *a_ptr = a.limbs; in divide() 483 const mp_limb_t *b_ptr = b.limbs; in divide() [all …]
|
/third_party/gettext/gettext-runtime/libasprintf/ |
D | vasnprintf.c | 415 mp_limb_t *limbs; /* Bits in little-endian order, allocated with malloc(). */ member 432 p1 = src1.limbs; in multiply() 434 p2 = src2.limbs; in multiply() 439 p1 = src2.limbs; in multiply() 441 p2 = src1.limbs; in multiply() 448 dest->limbs = (mp_limb_t *) malloc (1); in multiply() 481 dest->limbs = dp; in multiply() 483 return dest->limbs; in multiply() 547 const mp_limb_t *a_ptr = a.limbs; in divide() 549 const mp_limb_t *b_ptr = b.limbs; in divide() [all …]
|
/third_party/gettext/gettext-runtime/intl/ |
D | vasnprintf.c | 415 mp_limb_t *limbs; /* Bits in little-endian order, allocated with malloc(). */ member 432 p1 = src1.limbs; in multiply() 434 p2 = src2.limbs; in multiply() 439 p1 = src2.limbs; in multiply() 441 p2 = src1.limbs; in multiply() 448 dest->limbs = (mp_limb_t *) malloc (1); in multiply() 481 dest->limbs = dp; in multiply() 483 return dest->limbs; in multiply() 547 const mp_limb_t *a_ptr = a.limbs; in divide() 549 const mp_limb_t *b_ptr = b.limbs; in divide() [all …]
|
/third_party/boost/boost/multiprecision/cpp_bin_float/ |
D | io.hpp | 49 if ((roundup == 2) || ((roundup == 1) && (result.backend().limbs()[0] & 1))) in restricted_multiply() 317 if ((roundup == 2) || ((roundup == 1) && t.backend().limbs()[0] & 1)) in operator =() 423 else if ((roundup == 2) || ((roundup == 1) && q.backend().limbs()[0] & 1)) in operator =()
|
/third_party/openssl/crypto/bn/ |
D | rsa_sup_mul.c | 457 static void BN_to_limb(const BIGNUM *bn, limb_t *buf, size_t limbs) in BN_to_limb() argument 461 limb_t *ptr = buf + (limbs - real_limbs); in BN_to_limb()
|
/third_party/openssl/Configurations/ |
D | README | 205 THIRTY_TWO_BIT bignum limbs are 32 bits, 212 BN_LLONG bignum limbs are 32 bits, 216 SIXTY_FOUR_BIT_LONG bignum limbs are 64 bits 218 SIXTY_FOUR_BIT bignums limbs are 64 bits,
|
/third_party/mbedtls/ |
D | ChangeLog | 566 * Fix a crash in mbedtls_mpi_debug_mpi on a bignum having 0 limbs. This 577 A=0 represented with 0 limbs. Up to and including Mbed TLS 2.26, this bug 620 mbedtls_mpi_read_string() now construct an mbedtls_mpi object with 0 limbs 707 |A| - |B| where |B| is larger than |A| and has more limbs (so the 3584 big-endian platform when size was not an integer number of limbs 4014 big-endian platform when size was not an integer number of limbs
|
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/resources/ |
D | Transliterator_Kanji_English.txt | 4246 肢>'[human limbs]';
|