Home
last modified time | relevance | path

Searched refs:result_type (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/
Deval.pass.cpp41 std::vector<D::result_type> u; in main()
44 D::result_type v = d(g); in main()
48 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
49 D::result_type(0)) / u.size(); in main()
50 D::result_type var = 0; in main()
51 D::result_type skew = 0; in main()
52 D::result_type kurtosis = 0; in main()
55 D::result_type dbl = (u[i] - mean); in main()
56 D::result_type d2 = sqr(dbl); in main()
62 D::result_type dev = std::sqrt(var); in main()
[all …]
Deval_param.pass.cpp41 std::vector<D::result_type> u; in main()
44 D::result_type v = d(g, p); in main()
48 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
49 D::result_type(0)) / u.size(); in main()
50 D::result_type var = 0; in main()
51 D::result_type skew = 0; in main()
52 D::result_type kurtosis = 0; in main()
55 D::result_type dbl = (u[i] - mean); in main()
56 D::result_type d2 = sqr(dbl); in main()
62 D::result_type dev = std::sqrt(var); in main()
[all …]
/external/libcxx/include/
Drandom29 typedef UIntType result_type;
32 static constexpr result_type multiplier = a;
33 static constexpr result_type increment = c;
34 static constexpr result_type modulus = m;
35 static constexpr result_type min() { return c == 0u ? 1u: 0u;}
36 static constexpr result_type max() { return m - 1u;}
37 static constexpr result_type default_seed = 1u;
40 explicit linear_congruential_engine(result_type s = default_seed);
42 void seed(result_type s = default_seed);
46 result_type operator()();
[all …]
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_conversion.cpp30 const uint32_t result_type = inst->type_id(); in ConversionPass() local
34 if (!_.IsUnsignedIntScalarType(result_type) && in ConversionPass()
35 !_.IsUnsignedIntVectorType(result_type)) in ConversionPass()
47 if (_.GetDimension(result_type) != _.GetDimension(input_type)) in ConversionPass()
52 if (!_.features().use_int8_type && (8 == _.GetBitWidth(result_type))) in ConversionPass()
61 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type)) in ConversionPass()
73 if (_.GetDimension(result_type) != _.GetDimension(input_type)) in ConversionPass()
78 if (!_.features().use_int8_type && (8 == _.GetBitWidth(result_type))) in ConversionPass()
88 if (!_.IsFloatScalarType(result_type) && in ConversionPass()
89 !_.IsFloatVectorType(result_type)) in ConversionPass()
[all …]
Dvalidate_extensions.cpp79 const uint32_t result_type = inst->type_id(); in ValidateExtInst() local
132 if (!_.IsFloatScalarOrVectorType(result_type)) { in ValidateExtInst()
141 if (result_type != operand_type) { in ValidateExtInst()
162 if (!_.IsIntScalarOrVectorType(result_type)) { in ValidateExtInst()
168 const uint32_t result_type_bit_width = _.GetBitWidth(result_type); in ValidateExtInst()
169 const uint32_t result_type_dimension = _.GetDimension(result_type); in ValidateExtInst()
227 if (!_.IsFloatScalarOrVectorType(result_type)) { in ValidateExtInst()
234 const uint32_t result_type_bit_width = _.GetBitWidth(result_type); in ValidateExtInst()
245 if (result_type != operand_type) { in ValidateExtInst()
269 if (result_type != component_type) { in ValidateExtInst()
[all …]
Dvalidate_constants.cpp41 const auto result_type = _.FindDef(inst->type_id()); in ValidateConstantComposite() local
42 if (!result_type || !spvOpcodeIsComposite(result_type->opcode())) { in ValidateConstantComposite()
49 switch (result_type->opcode()) { in ValidateConstantComposite()
51 const auto component_count = result_type->GetOperandAs<uint32_t>(2); in ValidateConstantComposite()
58 << _.getIdName(result_type->id()) in ValidateConstantComposite()
62 _.FindDef(result_type->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite()
64 return _.diag(SPV_ERROR_INVALID_ID, result_type) in ValidateConstantComposite()
86 << _.getIdName(result_type->id()) << "'s vector element type."; in ValidateConstantComposite()
91 const auto column_count = result_type->GetOperandAs<uint32_t>(2); in ValidateConstantComposite()
98 << _.getIdName(result_type->id()) << "'s matrix column count."; in ValidateConstantComposite()
[all …]
Dvalidate_bitwise.cpp30 const uint32_t result_type = inst->type_id(); in BitwisePass() local
36 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type)) in BitwisePass()
41 const uint32_t result_dimension = _.GetDimension(result_type); in BitwisePass()
56 if (_.GetBitWidth(base_type) != _.GetBitWidth(result_type)) in BitwisePass()
78 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type)) in BitwisePass()
83 const uint32_t result_dimension = _.GetDimension(result_type); in BitwisePass()
84 const uint32_t result_bit_width = _.GetBitWidth(result_type); in BitwisePass()
112 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type)) in BitwisePass()
122 if (base_type != result_type) in BitwisePass()
127 if (insert_type != result_type) in BitwisePass()
[all …]
Dvalidate_logicals.cpp30 const uint32_t result_type = inst->type_id(); in LogicalsPass() local
35 if (!_.IsBoolScalarType(result_type)) in LogicalsPass()
54 if (!_.IsBoolScalarType(result_type) && !_.IsBoolVectorType(result_type)) in LogicalsPass()
66 if (_.GetDimension(result_type) != _.GetDimension(operand_type)) in LogicalsPass()
90 if (!_.IsBoolScalarType(result_type) && !_.IsBoolVectorType(result_type)) in LogicalsPass()
102 if (_.GetDimension(result_type) != _.GetDimension(left_operand_type)) in LogicalsPass()
120 if (!_.IsBoolScalarType(result_type) && !_.IsBoolVectorType(result_type)) in LogicalsPass()
125 if (result_type != _.GetOperandTypeId(inst, 2) || in LogicalsPass()
126 result_type != _.GetOperandTypeId(inst, 3)) in LogicalsPass()
135 if (!_.IsBoolScalarType(result_type) && !_.IsBoolVectorType(result_type)) in LogicalsPass()
[all …]
Dvalidate_arithmetics.cpp32 const uint32_t result_type = inst->type_id(); in ArithmeticsPass() local
42 if (!_.IsFloatScalarType(result_type) && in ArithmeticsPass()
43 !_.IsFloatVectorType(result_type)) in ArithmeticsPass()
50 if (_.GetOperandTypeId(inst, operand_index) != result_type) in ArithmeticsPass()
61 if (!_.IsUnsignedIntScalarType(result_type) && in ArithmeticsPass()
62 !_.IsUnsignedIntVectorType(result_type)) in ArithmeticsPass()
69 if (_.GetOperandTypeId(inst, operand_index) != result_type) in ArithmeticsPass()
85 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type)) in ArithmeticsPass()
90 const uint32_t dimension = _.GetDimension(result_type); in ArithmeticsPass()
91 const uint32_t bit_width = _.GetBitWidth(result_type); in ArithmeticsPass()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_conversion.cpp30 const uint32_t result_type = inst->type_id(); in ConversionPass() local
34 if (!_.IsUnsignedIntScalarType(result_type) && in ConversionPass()
35 !_.IsUnsignedIntVectorType(result_type)) in ConversionPass()
47 if (_.GetDimension(result_type) != _.GetDimension(input_type)) in ConversionPass()
52 if (!_.features().use_int8_type && (8 == _.GetBitWidth(result_type))) in ConversionPass()
61 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type)) in ConversionPass()
73 if (_.GetDimension(result_type) != _.GetDimension(input_type)) in ConversionPass()
78 if (!_.features().use_int8_type && (8 == _.GetBitWidth(result_type))) in ConversionPass()
88 if (!_.IsFloatScalarType(result_type) && in ConversionPass()
89 !_.IsFloatVectorType(result_type)) in ConversionPass()
[all …]
Dvalidate_extensions.cpp79 const uint32_t result_type = inst->type_id(); in ValidateExtInst() local
132 if (!_.IsFloatScalarOrVectorType(result_type)) { in ValidateExtInst()
141 if (result_type != operand_type) { in ValidateExtInst()
162 if (!_.IsIntScalarOrVectorType(result_type)) { in ValidateExtInst()
168 const uint32_t result_type_bit_width = _.GetBitWidth(result_type); in ValidateExtInst()
169 const uint32_t result_type_dimension = _.GetDimension(result_type); in ValidateExtInst()
227 if (!_.IsFloatScalarOrVectorType(result_type)) { in ValidateExtInst()
234 const uint32_t result_type_bit_width = _.GetBitWidth(result_type); in ValidateExtInst()
245 if (result_type != operand_type) { in ValidateExtInst()
269 if (result_type != component_type) { in ValidateExtInst()
[all …]
Dvalidate_constants.cpp41 const auto result_type = _.FindDef(inst->type_id()); in ValidateConstantComposite() local
42 if (!result_type || !spvOpcodeIsComposite(result_type->opcode())) { in ValidateConstantComposite()
49 switch (result_type->opcode()) { in ValidateConstantComposite()
51 const auto component_count = result_type->GetOperandAs<uint32_t>(2); in ValidateConstantComposite()
58 << _.getIdName(result_type->id()) in ValidateConstantComposite()
62 _.FindDef(result_type->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite()
64 return _.diag(SPV_ERROR_INVALID_ID, result_type) in ValidateConstantComposite()
86 << _.getIdName(result_type->id()) << "'s vector element type."; in ValidateConstantComposite()
91 const auto column_count = result_type->GetOperandAs<uint32_t>(2); in ValidateConstantComposite()
98 << _.getIdName(result_type->id()) << "'s matrix column count."; in ValidateConstantComposite()
[all …]
Dvalidate_bitwise.cpp30 const uint32_t result_type = inst->type_id(); in BitwisePass() local
36 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type)) in BitwisePass()
41 const uint32_t result_dimension = _.GetDimension(result_type); in BitwisePass()
56 if (_.GetBitWidth(base_type) != _.GetBitWidth(result_type)) in BitwisePass()
78 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type)) in BitwisePass()
83 const uint32_t result_dimension = _.GetDimension(result_type); in BitwisePass()
84 const uint32_t result_bit_width = _.GetBitWidth(result_type); in BitwisePass()
112 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type)) in BitwisePass()
122 if (base_type != result_type) in BitwisePass()
127 if (insert_type != result_type) in BitwisePass()
[all …]
Dvalidate_logicals.cpp30 const uint32_t result_type = inst->type_id(); in LogicalsPass() local
35 if (!_.IsBoolScalarType(result_type)) in LogicalsPass()
54 if (!_.IsBoolScalarType(result_type) && !_.IsBoolVectorType(result_type)) in LogicalsPass()
66 if (_.GetDimension(result_type) != _.GetDimension(operand_type)) in LogicalsPass()
90 if (!_.IsBoolScalarType(result_type) && !_.IsBoolVectorType(result_type)) in LogicalsPass()
102 if (_.GetDimension(result_type) != _.GetDimension(left_operand_type)) in LogicalsPass()
120 if (!_.IsBoolScalarType(result_type) && !_.IsBoolVectorType(result_type)) in LogicalsPass()
125 if (result_type != _.GetOperandTypeId(inst, 2) || in LogicalsPass()
126 result_type != _.GetOperandTypeId(inst, 3)) in LogicalsPass()
135 if (!_.IsBoolScalarType(result_type) && !_.IsBoolVectorType(result_type)) in LogicalsPass()
[all …]
Dvalidate_arithmetics.cpp32 const uint32_t result_type = inst->type_id(); in ArithmeticsPass() local
42 if (!_.IsFloatScalarType(result_type) && in ArithmeticsPass()
43 !_.IsFloatVectorType(result_type)) in ArithmeticsPass()
50 if (_.GetOperandTypeId(inst, operand_index) != result_type) in ArithmeticsPass()
61 if (!_.IsUnsignedIntScalarType(result_type) && in ArithmeticsPass()
62 !_.IsUnsignedIntVectorType(result_type)) in ArithmeticsPass()
69 if (_.GetOperandTypeId(inst, operand_index) != result_type) in ArithmeticsPass()
85 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type)) in ArithmeticsPass()
90 const uint32_t dimension = _.GetDimension(result_type); in ArithmeticsPass()
91 const uint32_t bit_width = _.GetBitWidth(result_type); in ArithmeticsPass()
[all …]
/external/libcxx/test/std/utilities/function.objects/refwrap/
Dweak_result.pass.cpp23 typedef Result result_type; typedef
31 typedef Result result_type; typedef
49 typedef float result_type; typedef in functor3
67 template <class U> static char test(typename U::result_type* = 0);
74 static_assert((std::is_same<std::reference_wrapper<functor1>::result_type, in main()
76 static_assert((std::is_same<std::reference_wrapper<functor2>::result_type, in main()
78 static_assert((std::is_same<std::reference_wrapper<functor3>::result_type, in main()
80 static_assert((std::is_same<std::reference_wrapper<void()>::result_type, in main()
82 static_assert((std::is_same<std::reference_wrapper<int*(double*)>::result_type, in main()
84 static_assert((std::is_same<std::reference_wrapper<void(*)()>::result_type, in main()
[all …]
/external/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.ibits/
Dresult_type.pass.cpp29 typedef UIntType result_type; typedef in rand1
32 result_type x_;
39 static const result_type _Min = Min;
40 static const result_type _Max = Max;
43 static TEST_CONSTEXPR result_type min() {return Min;} in min()
44 static TEST_CONSTEXPR result_type max() {return Max;} in max()
46 explicit rand1(result_type sd = Min) : x_(sd) in rand1()
54 result_type operator()() in operator ()()
56 result_type r = x_; in operator ()()
69 std::independent_bits_engine<rand1<unsigned long, 0, 10>, 16, unsigned>::result_type, in test1()
[all …]
Deval.pass.cpp27 typedef UIntType result_type; typedef in rand1
30 result_type x_;
37 static const result_type _Min = Min;
38 static const result_type _Max = Max;
41 static TEST_CONSTEXPR result_type min() {return Min;} in min()
42 static TEST_CONSTEXPR result_type max() {return Max;} in max()
44 explicit rand1(result_type sd = Min) : x_(sd) in rand1()
50 result_type operator()() in operator ()()
52 result_type r = x_; in operator ()()
/external/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/
Dresult_type.pass.cpp29 typedef UIntType result_type; typedef in rand1
32 result_type x_;
39 static const result_type _Min = Min;
40 static const result_type _Max = Max;
43 static TEST_CONSTEXPR result_type min() {return Min;} in min()
44 static TEST_CONSTEXPR result_type max() {return Max;} in max()
46 explicit rand1(result_type sd = Min) : x_(sd) in rand1()
54 result_type operator()() in operator ()()
56 result_type r = x_; in operator ()()
69 std::shuffle_order_engine<rand1<unsigned long, 0, 10>, 16>::result_type, in test1()
[all …]
Deval.pass.cpp27 typedef UIntType result_type; typedef in rand1
30 result_type x_;
37 static const result_type _Min = Min;
38 static const result_type _Max = Max;
41 static TEST_CONSTEXPR result_type min() {return Min;} in min()
42 static TEST_CONSTEXPR result_type max() {return Max;} in max()
44 explicit rand1(result_type sd = Min) : x_(sd) in rand1()
50 result_type operator()() in operator ()()
52 result_type r = x_; in operator ()()
/external/libchrome/base/strings/
Dstring_split.cc77 SplitResult result_type) { in SplitStringT() argument
98 if (result_type == SPLIT_WANT_ALL || !piece.empty()) in SplitStringT()
137 SplitResult result_type, in SplitStringUsingSubstrT() argument
153 if (result_type == SPLIT_WANT_ALL || !term.empty()) in SplitStringUsingSubstrT()
163 SplitResult result_type) { in SplitString() argument
166 input, separators[0], whitespace, result_type); in SplitString()
169 input, separators, whitespace, result_type); in SplitString()
175 SplitResult result_type) { in SplitString() argument
178 input, separators[0], whitespace, result_type); in SplitString()
181 input, separators, whitespace, result_type); in SplitString()
[all …]
/external/eigen/Eigen/src/Core/functors/
DBinaryFunctors.h34 typedef typename ScalarBinaryOpTraits<LhsScalar,RhsScalar,scalar_sum_op>::ReturnType result_type; typedef
42 …EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const result_type operator() (const LhsScalar& a, const RhsS… in operator()
47 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const result_type predux(const Packet& a) const in predux()
78 …pedef typename ScalarBinaryOpTraits<LhsScalar,RhsScalar,scalar_product_op>::ReturnType result_type;
86 …EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const result_type operator() (const LhsScalar& a, const RhsS…
91 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const result_type predux(const Packet& a) const
116 … typename ScalarBinaryOpTraits<LhsScalar,RhsScalar,scalar_conj_product_op>::ReturnType result_type;
119 …EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const result_type operator() (const LhsScalar& a, const RhsS…
142 typedef typename ScalarBinaryOpTraits<LhsScalar,RhsScalar,scalar_min_op>::ReturnType result_type;
144 …EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const result_type operator() (const LhsScalar& a, const RhsS…
[all …]
/external/libchrome/base/numerics/
Dclamped_math_impl.h79 using result_type = typename MaxExponentPromotion<T, U>::type;
80 template <typename V = result_type>
85 static_assert(std::is_same<V, result_type>::value ||
105 using result_type = typename MaxExponentPromotion<T, U>::type;
106 template <typename V = result_type>
112 static_assert(std::is_same<V, result_type>::value ||
132 using result_type = typename MaxExponentPromotion<T, U>::type;
133 template <typename V = result_type>
156 using result_type = typename MaxExponentPromotion<T, U>::type;
157 template <typename V = result_type>
[all …]
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/
Deval.pass.cpp31 std::vector<D::result_type> u(d.max()+1); in main()
34 D::result_type v = d(g); in main()
49 std::vector<D::result_type> u(d.max()+1); in main()
52 D::result_type v = d(g); in main()
67 std::vector<D::result_type> u(d.max()+1); in main()
70 D::result_type v = d(g); in main()
85 std::vector<D::result_type> u(d.max()+1); in main()
88 D::result_type v = d(g); in main()
103 std::vector<D::result_type> u(d.max()+1); in main()
106 D::result_type v = d(g); in main()
[all …]
/external/libcxx/test/std/numerics/rand/rand.eng/rand.eng.mers/
Dctor_sseq_all_zero.pass.cpp34 typedef unsigned int result_type; typedef
41 all_zero_seed_seq(std::initializer_list<result_type>) {} in all_zero_seed_seq()
53 template <typename result_type, std::size_t word_size>
60 std::mersenne_twister_engine<result_type, word_size, state_size, in test()
69 const result_type Xneg1 = result_type(1) << (word_size - 1); in test()
70 const result_type Y = Xneg1; in test()
71 const result_type X0 = Xneg1 ^ (Y >> 1); in test()

12345678910>>...14