Home
last modified time | relevance | path

Searched refs:unsigned_type (Results 1 – 18 of 18) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Dlog_uniform_int_distribution.h46 using unsigned_type =
63 range_(static_cast<unsigned_type>(max_) - in min_()
64 static_cast<unsigned_type>(min_)), in min_()
74 static_cast<unsigned_type>( in min_()
75 std::numeric_limits<unsigned_type>::digits)); in min_()
108 unsigned_type range() const { return range_; } in range()
113 unsigned_type range_; // max - min
165 unsigned_type Generate(URNG& g, // NOLINT(runtime/references)
173 typename log_uniform_int_distribution<IntType>::unsigned_type
188 unsigned_type base_e, top_e; in Generate()
[all …]
Duniform_int_distribution.h60 using unsigned_type =
74 range_(static_cast<unsigned_type>(hi) - in lo_()
75 static_cast<unsigned_type>(lo)) { in lo_()
82 return static_cast<result_type>(static_cast<unsigned_type>(lo_) + range_); in b()
95 unsigned_type range() const { return range_; } in range()
98 unsigned_type range_;
152 unsigned_type Generate(URBG& g, // NOLINT(runtime/references)
153 unsigned_type R);
199 random_internal::FastUniformBits<unsigned_type> fast_bits; in Generate()
200 unsigned_type bits = fast_bits(g); in Generate()
[all …]
/third_party/abseil-cpp/absl/random/
Dlog_uniform_int_distribution.h45 using unsigned_type =
62 range_(static_cast<unsigned_type>(max_) - in min_()
63 static_cast<unsigned_type>(min_)), in min_()
72 std::numeric_limits<unsigned_type>::digits); in min_()
105 unsigned_type range() const { return range_; } in range()
110 unsigned_type range_; // max - min
162 unsigned_type Generate(URNG& g, // NOLINT(runtime/references)
170 typename log_uniform_int_distribution<IntType>::unsigned_type
185 unsigned_type base_e, top_e; in Generate()
187 base_e = static_cast<unsigned_type>(1) << d; in Generate()
[all …]
Duniform_int_distribution.h60 using unsigned_type =
74 range_(static_cast<unsigned_type>(hi) - in lo_()
75 static_cast<unsigned_type>(lo)) { in lo_()
82 return static_cast<result_type>(static_cast<unsigned_type>(lo_) + range_); in b()
95 unsigned_type range() const { return range_; } in range()
98 unsigned_type range_;
152 unsigned_type Generate(URBG& g, // NOLINT(runtime/references)
153 unsigned_type R);
199 random_internal::FastUniformBits<unsigned_type> fast_bits; in Generate()
200 unsigned_type bits = fast_bits(g); in Generate()
[all …]
/third_party/boost/boost/geometry/strategies/cartesian/
Dside_of_intersection.hpp62 typedef typename boost::make_unsigned<T>::type unsigned_type; typedef
63 static const unsigned_type base = unsigned_type(1) << half_bits; // 2^half_bits
66 unsigned_type m_ms;
67 unsigned_type m_ls;
69 multiplicable_integral(int sign, unsigned_type ms, unsigned_type ls) in multiplicable_integral()
75 unsigned_type val_u = val > 0 ? in multiplicable_integral()
76 unsigned_type(val) in multiplicable_integral()
78 unsigned_type((std::numeric_limits<T>::max)()) + 1 in multiplicable_integral()
79 : unsigned_type(-val); in multiplicable_integral()
90 unsigned_type z2 = a.m_ms * b.m_ms; in operator *()
[all …]
/third_party/boost/boost/random/detail/
Dconst_mod.hpp37 return (unsigned_type(x)) & (unsigned_m() - 1); in apply()
48 return (unsigned_type(x) + unsigned_type(c)) & (unsigned_m() - 1); in add()
60 return unsigned_type(a) * unsigned_type(x) & (unsigned_m() - 1); in mult()
76 return (unsigned_type(a) * unsigned_type(x) + unsigned_type(c)) & (unsigned_m() - 1); in mult_add()
105 typedef typename make_unsigned<IntType>::type unsigned_type; typedef in boost::random::const_mod
149 static unsigned_type unsigned_m() in unsigned_m()
152 return unsigned_type((std::numeric_limits<IntType>::max)()) + 1; in unsigned_m()
154 return unsigned_type(m); in unsigned_m()
Dseed_impl.hpp136 typedef typename boost::random::traits::make_unsigned<IntType>::type unsigned_type; in generate_from_int() typedef
139 unsigned_type range = boost::random::detail::subtract<IntType>()((eng.max)(), (eng.min)()); in generate_from_int()
142 (range == (std::numeric_limits<unsigned_type>::max)()) ? in generate_from_int()
143 std::numeric_limits<unsigned_type>::digits : in generate_from_int()
148 unsigned_type excess = (range + 1) >> (bits - discarded_bits); in generate_from_int()
155 unsigned_type mask = (static_cast<unsigned_type>(2) << (bits - 1)) - 1; in generate_from_int()
156 unsigned_type limit = ((range + 1) & ~mask) - 1; in generate_from_int()
159 unsigned_type val; in generate_from_int()
/third_party/boost/boost/multiprecision/detail/
Dutype_helper.hpp351 template <class unsigned_type>
352 int utype_prior(unsigned_type ui) in utype_prior()
357unsigned_type priority_mask = unsigned_type(unsigned_type(1U) << (std::numeric_limits<unsigned_typ… in utype_prior()
359 …for (priority_bit = std::numeric_limits<unsigned_type>::digits - 1; priority_bit >= 0; --priority_… in utype_prior()
361 if (unsigned_type(priority_mask & ui) != unsigned_type(0U)) in utype_prior()
/third_party/boost/boost/convert/
Dstrtol.hpp77 typedef typename boost::make_unsigned<Type>::type unsigned_type; in i_to_str() typedef
82 unsigned_type value = static_cast<unsigned_type>(is_neg ? -in_value : in_value); in i_to_str()
162 using unsigned_type = typename boost::make_unsigned<out_type>::type; in str_to_i() typedef
169 bool const is_unsigned = boost::is_same<out_type, unsigned_type>::value; in str_to_i()
176 unsigned_type const max = (std::numeric_limits<out_type>::max)(); in str_to_i()
177 unsigned_type const umax = max + (is_negative ? 1 : 0); in str_to_i()
178 unsigned_type const cutoff = umax / base; in str_to_i()
180 unsigned_type result = 0; in str_to_i()
/third_party/abseil-cpp/absl/random/internal/
Dpool_urbg.h72 using unsigned_type = typename make_unsigned_bits<T>::type; variable
73 using PoolType = RandenPool<unsigned_type>;
74 using SpanType = absl::Span<unsigned_type>;
115 PoolType::Fill(SpanType(reinterpret_cast<unsigned_type*>(state_ + next_), in operator()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
Dpool_urbg.h72 using unsigned_type = typename make_unsigned_bits<T>::type; variable
73 using PoolType = RandenPool<unsigned_type>;
74 using SpanType = absl::Span<unsigned_type>;
115 PoolType::Fill(SpanType(reinterpret_cast<unsigned_type*>(state_ + next_), in operator()
/third_party/boost/boost/regex/v4/
Dregex_traits_defaults.hpp59 typedef typename make_unsigned<charT>::type unsigned_type; in is_extended() typedef
60 return (sizeof(charT) > 1) && (static_cast<unsigned_type>(c) >= 256u); in is_extended()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dgraphics_robust_access_pass.cpp612 auto* unsigned_type = type_mgr->GetRegisteredType(&unsigned_type_for_query); in WidenInteger() local
613 auto type_id = context()->get_type_mgr()->GetId(unsigned_type); in WidenInteger()
/third_party/spirv-tools/source/opt/
Dgraphics_robust_access_pass.cpp611 auto* unsigned_type = type_mgr->GetRegisteredType(&unsigned_type_for_query); in WidenInteger() local
612 auto type_id = context()->get_type_mgr()->GetId(unsigned_type); in WidenInteger()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dgraphics_robust_access_pass.cpp612 auto* unsigned_type = type_mgr->GetRegisteredType(&unsigned_type_for_query); in WidenInteger() local
613 auto type_id = context()->get_type_mgr()->GetId(unsigned_type); in WidenInteger()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DVertexAttributeTest.cpp42 typedef typename std::make_unsigned<T>::type unsigned_type; in Normalize() typedef
44 static_cast<GLfloat>(std::numeric_limits<unsigned_type>::max()); in Normalize()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DVertexAttributeTest.cpp48 typedef typename std::make_unsigned<T>::type unsigned_type; in Normalize() typedef
50 static_cast<GLfloat>(std::numeric_limits<unsigned_type>::max()); in Normalize()
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_glsl.cpp11433 bool unsigned_type = (type.basetype == SPIRType::UInt) || in emit_instruction() local
11436 const char *increment = unsigned_type ? "0u" : "0"; in emit_instruction()
11473 bool unsigned_type = (type.basetype == SPIRType::UInt) || in emit_instruction() local
11478 if (opcode == OpAtomicIIncrement && unsigned_type) in emit_instruction()
11482 else if (unsigned_type) in emit_instruction()