/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/ |
D | eval.pass.cpp | 41 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 …]
|
D | eval_param.pass.cpp | 41 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/swiftshader/third_party/SPIRV-Tools/source/val/ |
D | validate_conversion.cpp | 31 const uint32_t result_type = inst->type_id(); in ConversionPass() local 35 if (!_.IsUnsignedIntScalarType(result_type) && in ConversionPass() 36 !_.IsUnsignedIntVectorType(result_type) && in ConversionPass() 37 !_.IsUnsignedIntCooperativeMatrixType(result_type)) in ConversionPass() 50 if (_.IsCooperativeMatrixType(result_type) || in ConversionPass() 53 _.CooperativeMatrixShapesMatch(inst, result_type, input_type); in ConversionPass() 56 if (_.GetDimension(result_type) != _.GetDimension(input_type)) in ConversionPass() 66 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type) && in ConversionPass() 67 !_.IsIntCooperativeMatrixType(result_type)) in ConversionPass() 80 if (_.IsCooperativeMatrixType(result_type) || in ConversionPass() [all …]
|
D | validate_extensions.cpp | 89 const uint32_t result_type = inst->type_id(); in ValidateExtInst() local 142 if (!_.IsFloatScalarOrVectorType(result_type)) { in ValidateExtInst() 151 if (result_type != operand_type) { in ValidateExtInst() 172 if (!_.IsIntScalarOrVectorType(result_type)) { in ValidateExtInst() 178 const uint32_t result_type_bit_width = _.GetBitWidth(result_type); in ValidateExtInst() 179 const uint32_t result_type_dimension = _.GetDimension(result_type); in ValidateExtInst() 237 if (!_.IsFloatScalarOrVectorType(result_type)) { in ValidateExtInst() 244 const uint32_t result_type_bit_width = _.GetBitWidth(result_type); in ValidateExtInst() 255 if (result_type != operand_type) { in ValidateExtInst() 279 if (result_type != component_type) { in ValidateExtInst() [all …]
|
D | validate_bitwise.cpp | 30 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 …]
|
D | validate_logicals.cpp | 30 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 …]
|
D | validate_constants.cpp | 40 const auto result_type = _.FindDef(inst->type_id()); in ValidateConstantComposite() local 41 if (!result_type || !spvOpcodeIsComposite(result_type->opcode())) { in ValidateConstantComposite() 48 switch (result_type->opcode()) { in ValidateConstantComposite() 50 const auto component_count = result_type->GetOperandAs<uint32_t>(2); in ValidateConstantComposite() 57 << _.getIdName(result_type->id()) in ValidateConstantComposite() 61 _.FindDef(result_type->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite() 63 return _.diag(SPV_ERROR_INVALID_ID, result_type) in ValidateConstantComposite() 85 << _.getIdName(result_type->id()) << "'s vector element type."; in ValidateConstantComposite() 90 const auto column_count = result_type->GetOperandAs<uint32_t>(2); in ValidateConstantComposite() 97 << _.getIdName(result_type->id()) << "'s matrix column count."; in ValidateConstantComposite() [all …]
|
/external/angle/third_party/spirv-tools/src/source/val/ |
D | validate_conversion.cpp | 31 const uint32_t result_type = inst->type_id(); in ConversionPass() local 35 if (!_.IsUnsignedIntScalarType(result_type) && in ConversionPass() 36 !_.IsUnsignedIntVectorType(result_type) && in ConversionPass() 37 !_.IsUnsignedIntCooperativeMatrixType(result_type)) in ConversionPass() 50 if (_.IsCooperativeMatrixType(result_type) || in ConversionPass() 53 _.CooperativeMatrixShapesMatch(inst, result_type, input_type); in ConversionPass() 56 if (_.GetDimension(result_type) != _.GetDimension(input_type)) in ConversionPass() 66 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type) && in ConversionPass() 67 !_.IsIntCooperativeMatrixType(result_type)) in ConversionPass() 80 if (_.IsCooperativeMatrixType(result_type) || in ConversionPass() [all …]
|
D | validate_bitwise.cpp | 30 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 …]
|
D | validate_logicals.cpp | 30 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 …]
|
D | validate_constants.cpp | 40 const auto result_type = _.FindDef(inst->type_id()); in ValidateConstantComposite() local 41 if (!result_type || !spvOpcodeIsComposite(result_type->opcode())) { in ValidateConstantComposite() 48 switch (result_type->opcode()) { in ValidateConstantComposite() 50 const auto component_count = result_type->GetOperandAs<uint32_t>(2); in ValidateConstantComposite() 57 << _.getIdName(result_type->id()) in ValidateConstantComposite() 61 _.FindDef(result_type->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite() 63 return _.diag(SPV_ERROR_INVALID_ID, result_type) in ValidateConstantComposite() 85 << _.getIdName(result_type->id()) << "'s vector element type."; in ValidateConstantComposite() 90 const auto column_count = result_type->GetOperandAs<uint32_t>(2); in ValidateConstantComposite() 97 << _.getIdName(result_type->id()) << "'s matrix column count."; in ValidateConstantComposite() [all …]
|
D | validate_extensions.cpp | 227 const uint32_t result_type = inst->type_id(); in ValidateExtInst() local 280 if (!_.IsFloatScalarOrVectorType(result_type)) { in ValidateExtInst() 289 if (result_type != operand_type) { in ValidateExtInst() 310 if (!_.IsIntScalarOrVectorType(result_type)) { in ValidateExtInst() 316 const uint32_t result_type_bit_width = _.GetBitWidth(result_type); in ValidateExtInst() 317 const uint32_t result_type_dimension = _.GetDimension(result_type); in ValidateExtInst() 375 if (!_.IsFloatScalarOrVectorType(result_type)) { in ValidateExtInst() 382 const uint32_t result_type_bit_width = _.GetBitWidth(result_type); in ValidateExtInst() 393 if (result_type != operand_type) { in ValidateExtInst() 417 if (result_type != component_type) { in ValidateExtInst() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/val/ |
D | validate_conversion.cpp | 31 const uint32_t result_type = inst->type_id(); in ConversionPass() local 35 if (!_.IsUnsignedIntScalarType(result_type) && in ConversionPass() 36 !_.IsUnsignedIntVectorType(result_type) && in ConversionPass() 37 !_.IsUnsignedIntCooperativeMatrixType(result_type)) in ConversionPass() 50 if (_.IsCooperativeMatrixType(result_type) || in ConversionPass() 53 _.CooperativeMatrixShapesMatch(inst, result_type, input_type); in ConversionPass() 56 if (_.GetDimension(result_type) != _.GetDimension(input_type)) in ConversionPass() 66 if (!_.IsIntScalarType(result_type) && !_.IsIntVectorType(result_type) && in ConversionPass() 67 !_.IsIntCooperativeMatrixType(result_type)) in ConversionPass() 80 if (_.IsCooperativeMatrixType(result_type) || in ConversionPass() [all …]
|
D | validate_bitwise.cpp | 30 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 …]
|
D | validate_logicals.cpp | 30 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 …]
|
D | validate_constants.cpp | 40 const auto result_type = _.FindDef(inst->type_id()); in ValidateConstantComposite() local 41 if (!result_type || !spvOpcodeIsComposite(result_type->opcode())) { in ValidateConstantComposite() 48 switch (result_type->opcode()) { in ValidateConstantComposite() 50 const auto component_count = result_type->GetOperandAs<uint32_t>(2); in ValidateConstantComposite() 57 << _.getIdName(result_type->id()) in ValidateConstantComposite() 61 _.FindDef(result_type->GetOperandAs<uint32_t>(1)); in ValidateConstantComposite() 63 return _.diag(SPV_ERROR_INVALID_ID, result_type) in ValidateConstantComposite() 85 << _.getIdName(result_type->id()) << "'s vector element type."; in ValidateConstantComposite() 90 const auto column_count = result_type->GetOperandAs<uint32_t>(2); in ValidateConstantComposite() 97 << _.getIdName(result_type->id()) << "'s matrix column count."; in ValidateConstantComposite() [all …]
|
D | validate_extensions.cpp | 227 const uint32_t result_type = inst->type_id(); in ValidateExtInst() local 280 if (!_.IsFloatScalarOrVectorType(result_type)) { in ValidateExtInst() 289 if (result_type != operand_type) { in ValidateExtInst() 310 if (!_.IsIntScalarOrVectorType(result_type)) { in ValidateExtInst() 316 const uint32_t result_type_bit_width = _.GetBitWidth(result_type); in ValidateExtInst() 317 const uint32_t result_type_dimension = _.GetDimension(result_type); in ValidateExtInst() 375 if (!_.IsFloatScalarOrVectorType(result_type)) { in ValidateExtInst() 382 const uint32_t result_type_bit_width = _.GetBitWidth(result_type); in ValidateExtInst() 393 if (result_type != operand_type) { in ValidateExtInst() 417 if (result_type != component_type) { in ValidateExtInst() [all …]
|
/external/libcxx/include/ |
D | random | 29 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/libcxx/test/std/utilities/function.objects/refwrap/ |
D | weak_result.pass.cpp | 23 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/ |
D | result_type.pass.cpp | 29 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 …]
|
/external/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/ |
D | result_type.pass.cpp | 29 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 …]
|
D | eval.pass.cpp | 27 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/ |
D | string_split.cc | 77 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/OpenCL-CTS/test_conformance/clcpp/utils_test/detail/ |
D | vec_helpers.hpp | 48 template<class result_type, class IN1, class IN2> 49 result_type multiply(const IN1& x, const IN2& y, typename std::enable_if<is_vector_type<result_type… in multiply() 53 && (vector_size<IN2>::value == vector_size<result_type>::value), in multiply() 56 typedef typename scalar_type<result_type>::type SCALAR; in multiply() 57 result_type value; in multiply() 58 for(size_t i = 0; i < vector_size<result_type>::value; i++) in multiply() 65 template<class result_type, class IN1, class IN2> 66 result_type multiply(const IN1& x, const IN2& y, typename std::enable_if<!is_vector_type<result_typ… in multiply() 72 return static_cast<result_type>(x) * static_cast<result_type>(y); in multiply()
|
/external/eigen/Eigen/src/Core/functors/ |
D | BinaryFunctors.h | 34 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 …]
|