/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
H A D | zipf_distribution.h | 40 // IntType is the result_type generated by the generator. It must be of integral 50 template <typename IntType = int> 53 using result_type = IntType; 64 explicit param_type(result_type k = (std::numeric_limits<IntType>::max)(), 87 IntType k_; 97 static_assert(std::is_integral<IntType>::value, 103 : zipf_distribution((std::numeric_limits<IntType>::max)()) {} in zipf_distribution() 148 template <typename IntType> 149 zipf_distribution<IntType>::param_type::param_type( in param_type() 150 typename zipf_distribution<IntType> in param_type() [all...] |
H A D | mock_distributions.h | 209 template <typename IntType> 211 absl::log_uniform_int_distribution<IntType>, 212 IntType(MockingBitGen&, IntType, IntType, IntType)>; 233 template <typename IntType> 235 random_internal::MockOverloadSet<absl::poisson_distribution<IntType>, 236 IntType(MockingBitGen&, double)>; 257 template <typename IntType> [all...] |
H A D | uniform_int_distribution.h | 57 template <typename IntType = int> 61 typename random_internal::make_unsigned_bits<IntType>::type; 64 using result_type = IntType; 160 template <typename CharT, typename Traits, typename IntType> 163 const uniform_int_distribution<IntType>& x) { in operator <<() 165 typename random_internal::stream_format_type<IntType>::type; in operator <<() 172 template <typename CharT, typename Traits, typename IntType> 175 uniform_int_distribution<IntType>& x) { in operator >>() 176 using param_type = typename uniform_int_distribution<IntType>::param_type; in operator >>() 177 using result_type = typename uniform_int_distribution<IntType> in operator >>() [all...] |
H A D | discrete_distribution.h | 51 template <typename IntType = int> 54 using result_type = IntType; 182 template <typename IntType> 183 void discrete_distribution<IntType>::param_type::init() { in init() 188 assert(n() <= (std::numeric_limits<IntType>::max)()); in init() 193 template <typename IntType> 195 typename discrete_distribution<IntType>::result_type 196 discrete_distribution<IntType>::operator()( in operator ()() 205 template <typename CharT, typename Traits, typename IntType> 208 const discrete_distribution<IntType> in operator <<() [all...] |
H A D | distributions.h | 373 template <typename IntType, typename URBG> 374 IntType LogUniform(URBG&& urbg, // NOLINT(runtime/references) in LogUniform() 375 IntType lo, IntType hi, IntType base = 2) { in LogUniform() 376 static_assert(std::is_integral<IntType>::value, in LogUniform() 377 "Template-argument 'IntType' must be an integral type, in " in LogUniform() 378 "absl::LogUniform<IntType, URBG>(...)"); in LogUniform() 381 using distribution_t = typename absl::log_uniform_int_distribution<IntType>; in LogUniform() 403 template <typename IntType, typenam [all...] |
H A D | poisson_distribution.h | 46 // poisson_distribution<IntType>::max(), however this should be avoided and 53 template <typename IntType = int> 56 using result_type = IntType; 83 static_assert(std::is_integral<IntType>::value, 132 template <typename IntType> 133 poisson_distribution<IntType>::param_type::param_type(double mean) in param_type() 162 template <typename IntType> 164 typename poisson_distribution<IntType>::result_type 165 poisson_distribution<IntType>::operator()( in operator ()() 231 template <typename CharT, typename Traits, typename IntType> [all...] |
H A D | log_uniform_int_distribution.h | 43 template <typename IntType = int> 47 typename random_internal::make_unsigned_bits<IntType>::type; 50 using result_type = IntType; 116 static_assert(std::is_integral<IntType>::value, 171 template <typename IntType> 173 typename log_uniform_int_distribution<IntType>::unsigned_type 174 log_uniform_int_distribution<IntType>::Generate( in Generate() 217 template <typename CharT, typename Traits, typename IntType> 220 const log_uniform_int_distribution<IntType>& x) { in operator <<() 222 typename random_internal::stream_format_type<IntType> in operator <<() [all...] |
H A D | discrete_distribution_test.cc | 40 template <typename IntType>
|
/third_party/mesa3d/src/util/ |
H A D | enum_operators.h | 35 using IntType = std::underlying_type_t<Enum>; \ 36 IntType ua = static_cast<IntType>(a); \ 37 IntType ub = static_cast<IntType>(b); \ 44 using IntType = std::underlying_type_t<Enum>; \ 45 IntType ua = static_cast<IntType>(a); \ 46 IntType ub = static_cast<IntType>( [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
H A D | uniform_helper.h | 29 template <typename IntType> 100 template <typename IntType, typename Tag> 103 std::is_integral<IntType>, 106 IntType> 107 uniform_lower_bound(Tag, IntType a, IntType) { in uniform_lower_bound() 108 return a < (std::numeric_limits<IntType>::max)() ? (a + 1) : a; in uniform_lower_bound() 131 template <typename IntType, typename Tag> 134 std::is_integral<IntType>, 137 IntType> [all...] |
H A D | traits.h | 91 template <typename IntType> 94 typename std::make_unsigned<IntType>::type>::digits>::type;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
H A D | PointerIntPair.h | 42 template <typename PointerTy, unsigned IntBits, typename IntType = unsigned, 53 PointerIntPair(PointerTy PtrVal, IntType IntVal) { in PointerIntPair() 61 IntType getInt() const { return (IntType)Info::getInt(Value); } in getInt() 67 void setInt(IntType IntVal) LLVM_LVALUE_FUNCTION { 75 void setPointerAndInt(PointerTy PtrVal, IntType IntVal) LLVM_LVALUE_FUNCTION { 132 template <typename PointerTy, unsigned IntBits, typename IntType, 135 struct is_trivially_copyable<PointerIntPair<PointerTy, IntBits, IntType, PtrTraits, Info>> : std::true_type { 137 static_assert(std::is_trivially_copyable<PointerIntPair<PointerTy, IntBits, IntType, PtrTraits, Info>>::value, 194 template <typename PointerTy, unsigned IntBits, typename IntType> [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
H A D | PointerIntPair.h | 43 template <typename PointerTy, unsigned IntBits, typename IntType = unsigned, 51 PointerIntPair(PointerTy PtrVal, IntType IntVal) { in PointerIntPair() 58 IntType getInt() const { in getInt() 59 return (IntType)Info::getInt(Value); in getInt() 66 void setInt(IntType IntVal) { in setInt() 74 void setPointerAndInt(PointerTy PtrVal, IntType IntVal) { in setPointerAndInt() 175 template <typename PointerTy, unsigned IntBits, typename IntType> 176 struct isPodLike<PointerIntPair<PointerTy, IntBits, IntType>> { 181 template <typename PointerTy, unsigned IntBits, typename IntType> 182 struct DenseMapInfo<PointerIntPair<PointerTy, IntBits, IntType>> { [all...] |
/third_party/node/deps/v8/src/wasm/ |
H A D | decoder.h | 375 template <typename IntType, ValidateFlag validate> 376 IntType read_little_endian(const byte* pc, const char* msg) { in read_little_endian() 378 DCHECK(validate_size(pc, sizeof(IntType), msg)); in read_little_endian() 379 } else if (!validate_size(pc, sizeof(IntType), msg)) { in read_little_endian() 380 return IntType{0}; in read_little_endian() 382 return base::ReadLittleEndianValue<IntType>(reinterpret_cast<Address>(pc)); in read_little_endian() 385 template <typename IntType> 386 IntType consume_little_endian(const char* name) { in consume_little_endian() 388 if (!checkAvailable(sizeof(IntType))) { in consume_little_endian() 391 return IntType{ in consume_little_endian() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | numbers.cc | 726 // Lookup tables per IntType: 731 template <typename IntType> 733 ABSL_CONST_INIT static const IntType kVmaxOverBase[]; 734 ABSL_CONST_INIT static const IntType kVminOverBase[]; 906 template <typename IntType> 907 const IntType LookupTables<IntType>::kVmaxOverBase[] = 908 X_OVER_BASE_INITIALIZER(std::numeric_limits<IntType>::max()); 910 template <typename IntType> 911 const IntType LookupTable [all...] |
H A D | numbers_test.cc | 688 template <typename IntType> 690 IntType* value, in test_random_integer_parse_base() 695 std::uniform_int_distribution<IntType> random_int( in test_random_integer_parse_base() 696 std::numeric_limits<IntType>::min()); in test_random_integer_parse_base() 699 IntType value = random_int(rng); in test_random_integer_parse_base() 702 EXPECT_TRUE(Itoa<IntType>(value, base, &str_value)); in test_random_integer_parse_base() 703 IntType parsed_value; in test_random_integer_parse_base() 711 parse_func(absl::StrCat(std::numeric_limits<IntType>::max(), value), in test_random_integer_parse_base() 715 if (std::numeric_limits<IntType>::min() < 0) { in test_random_integer_parse_base() 717 parse_func(absl::StrCat(std::numeric_limits<IntType> in test_random_integer_parse_base() [all...] |
H A D | str_cat_test.cc | 481 template <typename IntType> 482 void CheckHex(IntType v, const char* nopad_format, const char* zeropad_format, in CheckHex() 507 template <typename IntType> 508 void CheckDec(IntType v, const char* nopad_format, const char* zeropad_format, in CheckDec()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-open-type.hh | 58 struct IntType struct 62 IntType () = default; 63 explicit constexpr IntType (Type V) : v {V} {} in IntType() function 64 IntType& operator = (Type i) { v = i; return *this; } in operator =() 69 bool operator == (const IntType &o) const { return (Type) v == (Type) o.v; } in operator ==() 70 bool operator != (const IntType &o) const { return !(*this == o); } in operator !=() 72 IntType& operator += (unsigned count) { *this = *this + count; return *this; } in operator +=() 73 IntType& operator -= (unsigned count) { *this = *this - count; return *this; } in operator -=() 74 IntType& operator ++ () { *this += 1; return *this; } in operator ++() 75 IntType in operator ++() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/unittest/AssemblerX8632/ |
H A D | X87.cpp | 210 #define TestFild(OperandType, Size, MemorySize, FpType, IntType) \ in TEST_F() 213 constexpr IntType V0 = 0x1234; \ in TEST_F() 226 ", " #IntType ")"; \ in TEST_F() 237 #define TestFistp(OperandType, Size, MemorySize, FpType, IntType) \ in TEST_F() 240 constexpr IntType V0 = 0x1234; \ in TEST_F() 242 constexpr IntType V1 = 0xFFFF; \ in TEST_F() 253 ASSERT_EQ(static_cast<IntType>(V0), \ in TEST_F() 254 test.contentsOf##MemorySize<IntType>(T0)) \ in TEST_F() 256 ", " #IntType ")"; \ in TEST_F() 257 ASSERT_EQ(static_cast<IntType>(V in TEST_F() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | numbers_test_common.h | 32 template <typename IntType> 33 inline bool Itoa(IntType value, int base, std::string* destination) { in Itoa() 46 const IntType next_value = value / base; in Itoa() 47 // Can't use std::abs here because of problems when IntType is unsigned. in Itoa()
|
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/ |
H A D | numeric_lex.h | 38 template <typename IntType> 39 bool numeric_lex_int(const std::string &str, IntType *value) in numeric_lex_int()
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/preprocessor/ |
H A D | numeric_lex.h | 45 template<typename IntType> 46 bool numeric_lex_int(const std::string& str, IntType* value) in numeric_lex_int()
|
/third_party/protobuf/src/google/protobuf/stubs/ |
H A D | strutil.cc | 695 template<typename IntType> 697 string text, IntType* value_p) { in safe_parse_positive_int() 699 IntType value = 0; in safe_parse_positive_int() 700 const IntType vmax = std::numeric_limits<IntType>::max(); in safe_parse_positive_int() 703 const IntType vmax_over_base = vmax / base; in safe_parse_positive_int() 729 template<typename IntType> 731 const string& text, IntType* value_p) { in safe_parse_negative_int() 733 IntType value = 0; in safe_parse_negative_int() 734 const IntType vmi in safe_parse_negative_int() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
H A D | MDBuilder.cpp | 315 auto *IntType = Type::getInt64Ty(Context); in createMisExpect() local 318 createConstant(ConstantInt::get(IntType, Index)), in createMisExpect() 319 createConstant(ConstantInt::get(IntType, LikleyWeight)), in createMisExpect() 320 createConstant(ConstantInt::get(IntType, UnlikleyWeight)), in createMisExpect()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/ |
H A D | marshalling.cc | 76 template <typename IntType> 77 inline bool ParseFlagImpl(absl::string_view text, IntType& dst) { in ParseFlagImpl()
|