Home
last modified time | relevance | path

Searched refs:uint128 (Results 1 – 25 of 41) sorted by relevance

12

/third_party/protobuf/src/google/protobuf/stubs/
Dint128.h53 class PROTOBUF_EXPORT uint128 {
55 UINT128_CONSTEXPR uint128(); // Sets to 0, but don't trust on this behavior.
56 UINT128_CONSTEXPR uint128(uint64 top, uint64 bottom);
58 UINT128_CONSTEXPR uint128(int bottom);
59 UINT128_CONSTEXPR uint128(uint32 bottom); // Top 96 bits = 0
61 UINT128_CONSTEXPR uint128(uint64 bottom); // hi_ = 0
62 UINT128_CONSTEXPR uint128(const uint128_pod &val);
69 uint128& operator+=(const uint128& b);
70 uint128& operator-=(const uint128& b);
71 uint128& operator*=(const uint128& b);
[all …]
Dint128_unittest.cc46 uint128 zero(0); in TEST()
47 uint128 one(1); in TEST()
48 uint128 one_2arg(0, 1); in TEST()
49 uint128 two(0, 2); in TEST()
50 uint128 three(0, 3); in TEST()
51 uint128 big(2000, 2); in TEST()
52 uint128 big_minus_one(2000, 1); in TEST()
53 uint128 bigger(2001, 1); in TEST()
54 uint128 biggest(kuint128max); in TEST()
55 uint128 high_low(1, 0); in TEST()
[all …]
Dint128.cc76 static inline int Fls128(uint128 n) { in Fls128()
83 void uint128::DivModImpl(uint128 dividend, uint128 divisor, in DivModImpl()
84 uint128* quotient_ret, uint128* remainder_ret) { in DivModImpl()
96 uint128 quotient = 0; in DivModImpl()
99 uint128 shifted_divisor = divisor << difference; in DivModImpl()
113 uint128& uint128::operator/=(const uint128& divisor) { in operator /=()
114 uint128 quotient = 0; in operator /=()
115 uint128 remainder = 0; in operator /=()
120 uint128& uint128::operator%=(const uint128& divisor) { in operator %=()
121 uint128 quotient = 0; in operator %=()
[all …]
Dlogging.h70 class uint128; variable
93 LogMessage& operator<<(const uint128& value);
/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/
Dint128.h108 uint128 {
110 uint128() = default;
113 constexpr uint128(int v); // NOLINT(runtime/explicit)
114 constexpr uint128(unsigned int v); // NOLINT(runtime/explicit)
115 constexpr uint128(long v); // NOLINT(runtime/int)
116 constexpr uint128(unsigned long v); // NOLINT(runtime/int)
117 constexpr uint128(long long v); // NOLINT(runtime/int)
118 constexpr uint128(unsigned long long v); // NOLINT(runtime/int)
120 constexpr uint128(__int128 v); // NOLINT(runtime/explicit)
121 constexpr uint128(unsigned __int128 v); // NOLINT(runtime/explicit)
[all …]
Dint128.cc32 ABSL_DLL const uint128 kuint128max = MakeUint128(
43 inline ABSL_ATTRIBUTE_ALWAYS_INLINE int Fls128(uint128 n) { in Fls128()
56 inline void DivModImpl(uint128 dividend, uint128 divisor, uint128* quotient_ret, in DivModImpl()
57 uint128* remainder_ret) { in DivModImpl()
72 uint128 denominator = divisor; in DivModImpl()
73 uint128 quotient = 0; in DivModImpl()
95 uint128 MakeUint128FromFloat(T v) { in MakeUint128FromFloat()
118 uint128 MakeUint128FromFloat(long double v) { in MakeUint128FromFloat()
131 return (static_cast<uint128>(w0) << 100) | (static_cast<uint128>(w1) << 50) | in MakeUint128FromFloat()
132 static_cast<uint128>(w2); in MakeUint128FromFloat()
[all …]
Dint128_test.cc57 static_assert(std::is_constructible<absl::uint128, TypeParam>::value, in TYPED_TEST()
59 static_assert(std::is_assignable<absl::uint128&, TypeParam>::value, in TYPED_TEST()
61 static_assert(!std::is_assignable<TypeParam&, absl::uint128>::value, in TYPED_TEST()
68 static_assert(std::is_constructible<absl::uint128, TypeParam>::value, in TYPED_TEST()
70 static_assert(!std::is_assignable<absl::uint128&, TypeParam>::value, in TYPED_TEST()
72 static_assert(!std::is_assignable<TypeParam&, absl::uint128>::value, in TYPED_TEST()
80 static_assert(std::is_constructible<absl::uint128, __int128>::value, in TEST()
82 static_assert(std::is_assignable<absl::uint128&, __int128>::value, in TEST()
84 static_assert(!std::is_assignable<__int128&, absl::uint128>::value, in TEST()
87 static_assert(std::is_constructible<absl::uint128, unsigned __int128>::value, in TEST()
[all …]
Dint128_benchmark.cc60 BENCHMARK_TEMPLATE(BM_DivideClass128UniformDivisor, absl::uint128);
72 BENCHMARK_TEMPLATE(BM_RemainderClass128UniformDivisor, absl::uint128);
100 BENCHMARK_TEMPLATE(BM_DivideClass128SmallDivisor, absl::uint128);
112 BENCHMARK_TEMPLATE(BM_RemainderClass128SmallDivisor, absl::uint128);
115 std::vector<std::pair<absl::uint128, absl::uint128>> GetRandomClass128Sample() { in GetRandomClass128Sample()
116 std::vector<std::pair<absl::uint128, absl::uint128>> values; in GetRandomClass128Sample()
Dint128_no_intrinsic.inc42 constexpr int128::int128(uint128 v)
63 constexpr int128::int128(uint128 v)
240 int128_internal::BitCastToSigned(Uint128High64(uint128(lhs) * rhs)),
241 Uint128Low64(uint128(lhs) * rhs));
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dranden_slow.cc305 absl::uint128* state) { in BlockShuffle()
315 absl::uint128 source[RandenTraits::kFeistelBlocks]; in BlockShuffle()
318 const absl::uint128 v0 = source[shuffle[i]]; in BlockShuffle()
324 const absl::uint128 v0 = state[shuffle[0]]; in BlockShuffle()
325 const absl::uint128 v1 = state[shuffle[1]]; in BlockShuffle()
326 const absl::uint128 v2 = state[shuffle[2]]; in BlockShuffle()
327 const absl::uint128 v3 = state[shuffle[3]]; in BlockShuffle()
328 const absl::uint128 v4 = state[shuffle[4]]; in BlockShuffle()
329 const absl::uint128 v5 = state[shuffle[5]]; in BlockShuffle()
330 const absl::uint128 v6 = state[shuffle[6]]; in BlockShuffle()
[all …]
Dranden_hwaes.cc155 inline ABSL_TARGET_CRYPTO void SwapEndian(absl::uint128* state) { in SwapEndian()
280 inline ABSL_TARGET_CRYPTO void BlockShuffle(absl::uint128* state) { in BlockShuffle()
327 inline ABSL_TARGET_CRYPTO const absl::uint128* FeistelRound( in FeistelRound()
328 absl::uint128* state, in FeistelRound()
329 const absl::uint128* ABSL_RANDOM_INTERNAL_RESTRICT keys) { in FeistelRound()
390 absl::uint128* state, in Permute()
391 const absl::uint128* ABSL_RANDOM_INTERNAL_RESTRICT keys) { in Permute()
428 auto* state = reinterpret_cast<absl::uint128 * ABSL_RANDOM_INTERNAL_RESTRICT>( in Absorb()
431 reinterpret_cast<const absl::uint128 * ABSL_RANDOM_INTERNAL_RESTRICT>( in Absorb()
501 auto* state = reinterpret_cast<absl::uint128*>(state_void); in Generate()
[all …]
Dwide_multiply.h41 inline absl::uint128 MultiplyU64ToU128(uint64_t a, uint64_t b) { in MultiplyU64ToU128()
43 return absl::uint128(static_cast<__uint128_t>(a) * b); in MultiplyU64ToU128()
96 using result_type = absl::uint128;
Diostream_state_saver.h184 struct stream_u128_helper<absl::uint128> {
186 inline absl::uint128 read(IStream& in) {
194 inline void write(absl::uint128 val, OStream& out) {
Dwide_multiply_test.cc28 EXPECT_EQ(absl::uint128(0), MultiplyU64ToU128(0, 0)); in TEST()
Dpcg_engine.h230 using state_type = absl::uint128;
250 using state_type = absl::uint128;
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dduration.cc117 inline uint128 MakeU128(int64_t a) { in MakeU128()
118 uint128 u128 = 0; in MakeU128()
129 inline uint128 MakeU128Ticks(Duration d) { in MakeU128Ticks()
137 uint128 u128 = static_cast<uint64_t>(rep_hi); in MakeU128Ticks()
144 inline Duration MakeDurationFromU128(uint128 u128, bool is_neg) { in MakeDurationFromU128()
167 const uint128 kTicksPerSecond128 = static_cast<uint64_t>(kTicksPerSecond); in MakeDurationFromU128()
168 const uint128 hi = u128 / kTicksPerSecond128; in MakeDurationFromU128()
220 uint128 operator()(uint128 a, uint128 b) const { in operator ()()
226 ? static_cast<uint128>(Uint128Low64(a) * Uint128Low64(b)) in operator ()()
237 const uint128 a = MakeU128Ticks(d); in ScaleFixed()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dcharconv.cc245 unsigned BitWidth(uint128 value) { in BitWidth()
274 int TruncateToBitWidth(int bit_width, uint128* value) { in TruncateToBitWidth()
372 uint64_t ShiftRightAndRound(uint128 value, int shift, bool input_exact, in ShiftRightAndRound()
387 const uint128 shift_mask = (uint128(1) << shift) - 1; in ShiftRightAndRound()
388 const uint128 halfway_point = uint128(1) << (shift - 1); in ShiftRightAndRound()
390 const uint128 shifted_bits = value & shift_mask; in ShiftRightAndRound()
550 uint128 wide_binary_mantissa = parsed_decimal.mantissa; in CalculateFromParsedDecimal()
Dnumbers_test.cc334 VerifySimpleAtoiGood<absl::uint128>(0, 0); in TEST()
335 VerifySimpleAtoiGood<absl::uint128>(42, 42); in TEST()
336 VerifySimpleAtoiBad<absl::uint128>(-42); in TEST()
338 VerifySimpleAtoiBad<absl::uint128>(std::numeric_limits<int32_t>::min()); in TEST()
339 VerifySimpleAtoiGood<absl::uint128>(std::numeric_limits<int32_t>::max(), in TEST()
341 VerifySimpleAtoiGood<absl::uint128>(std::numeric_limits<uint32_t>::max(), in TEST()
343 VerifySimpleAtoiBad<absl::uint128>(std::numeric_limits<int64_t>::min()); in TEST()
344 VerifySimpleAtoiGood<absl::uint128>(std::numeric_limits<int64_t>::max(), in TEST()
346 VerifySimpleAtoiGood<absl::uint128>(std::numeric_limits<uint64_t>::max(), in TEST()
348 VerifySimpleAtoiGood<absl::uint128>( in TEST()
[all …]
Dnumbers.h134 bool safe_strtou128_base(absl::string_view text, absl::uint128* value,
259 absl::uint128* out) { in SimpleAtoi()
Dnumbers.cc761 const uint128 LookupTables<uint128>::kVmaxOverBase[] = {
1087 bool safe_strtou128_base(absl::string_view text, uint128* value, int base) { in safe_strtou128_base()
1088 return safe_uint_internal<absl::uint128>(text, value, base); in safe_strtou128_base()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Darg.cc50 using type = absl::uint128;
53 struct MakeUnsigned<absl::uint128> {
54 using type = absl::uint128;
62 struct IsSigned<absl::uint128> : std::false_type {};
93 auto u = static_cast<uint128>(v); in PrintAsDec()
97 u = uint128{} - u; in PrintAsDec()
102 void PrintAsDec(uint128 v, bool add_neg = false) { in PrintAsDec()
475 IntegralConvertResult FormatConvertImpl(absl::uint128 v, in FormatConvertImpl()
Dfloat_conversion.cc97 using BiggerInt = absl::conditional_t<sizeof(Int) == 4, uint64_t, uint128>; in MultiplyBy10WithCarry()
138 static void RunConversion(uint128 v, int exp, in RunConversion()
175 BinaryToDecimal(absl::Span<uint32_t> data, uint128 v, int exp) : data_(data) { in BinaryToDecimal()
247 uint128 v, int exp, absl::FunctionRef<void(FractionalDigitGenerator)> f) { in RunConversion()
303 FractionalDigitGenerator(absl::Span<uint32_t> data, uint128 v, int exp) in FractionalDigitGenerator()
325 int LeadingZeros(uint128 v) { in LeadingZeros()
360 char *PrintIntegralDigitsFromRightFast(uint128 v, char *p) { in PrintIntegralDigitsFromRightFast()
405 char *PrintFractionalDigitsFast(uint128 v, char *start, int exp, in PrintFractionalDigitsFast()
529 : PrintIntegralDigitsFromRightFast(static_cast<uint128>(v) << exp, in FormatFFast()
543 : PrintFractionalDigitsFast(static_cast<uint128>(v), in FormatFFast()
[all …]
/third_party/protobuf/src/google/protobuf/util/
Dtime_util.cc382 void ToUint128(const Duration& value, uint128* result, bool* negative) { in ToUint128()
394 void ToDuration(const uint128& value, bool negative, Duration* duration) { in ToDuration()
421 uint128 value; in operator *=()
447 uint128 value; in operator /=()
465 uint128 value1, value2; in operator %=()
468 uint128 result = value1 % value2; in operator %=()
481 uint128 value1, value2; in operator /()
/third_party/python/Modules/_decimal/
DREADME.txt20 2) uint128 - 64-bit Python, compiler provides __uint128_t (gcc)
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/internal/
Dlow_level_hash.cc28 absl::uint128 p = v0; in Mix()

12