/external/libcxx/benchmarks/ |
D | GenerateInput.hpp | 38 template <class IntT> 39 inline IntT getRandomInteger(IntT Min = 0, in getRandomInteger() 40 IntT Max = std::numeric_limits<IntT>::max()) { in getRandomInteger() 41 std::uniform_int_distribution<IntT> dist(Min, Max); in getRandomInteger() 51 template <class IntT> 52 inline std::vector<IntT> getDuplicateIntegerInputs(size_t N) { in getDuplicateIntegerInputs() 53 std::vector<IntT> inputs(N, static_cast<IntT>(-1)); in getDuplicateIntegerInputs() 57 template <class IntT> 58 inline std::vector<IntT> getSortedIntegerInputs(size_t N) { in getSortedIntegerInputs() 59 std::vector<IntT> inputs; in getSortedIntegerInputs() [all …]
|
D | algorithms.partition_point.bench.cpp | 28 template <class IntT> 30 static std::vector<IntT> generateInput(size_t size) { in generateInput() 31 std::vector<IntT> Res(size); in generateInput() 33 [] { return getRandomInteger<IntT>(); }); in generateInput()
|
/external/llvm-project/libcxx/benchmarks/ |
D | GenerateInput.h | 38 template <class IntT> 39 inline IntT getRandomInteger(IntT Min = 0, 40 IntT Max = std::numeric_limits<IntT>::max()) { 41 std::uniform_int_distribution<IntT> dist(Min, Max); 51 template <class IntT> 52 inline std::vector<IntT> getDuplicateIntegerInputs(size_t N) { in getDuplicateIntegerInputs() 53 std::vector<IntT> inputs(N, static_cast<IntT>(-1)); in getDuplicateIntegerInputs() 57 template <class IntT> 58 inline std::vector<IntT> getSortedIntegerInputs(size_t N) { in getSortedIntegerInputs() 59 std::vector<IntT> inputs; in getSortedIntegerInputs() [all …]
|
D | algorithms.partition_point.bench.cpp | 28 template <class IntT> 30 static std::vector<IntT> generateInput(size_t size) { in generateInput() 31 std::vector<IntT> Res(size); in generateInput() 33 [] { return getRandomInteger<IntT>(); }); in generateInput()
|
/external/libcxx/test/libcxx/numerics/ |
D | clamp_to_integral.pass.cpp | 19 template <class IntT> 21 typedef std::numeric_limits<IntT> Lim; in test() 22 const bool MaxIsRepresentable = sizeof(IntT) < 8; in test() 23 const bool IsSigned = std::is_signed<IntT>::value; in test() 26 IntT Expect; in test() 31 {IsSigned ? static_cast<IntT>(-1) : 0, in test() 32 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test() 40 auto res = std::__clamp_to_integral<IntT>(TC.Input); in test() 43 auto other = static_cast<IntT>(std::trunc(TC.Input)); in test() 50 template <class IntT> [all …]
|
/external/llvm-project/libcxx/test/libcxx/numerics/ |
D | clamp_to_integral.pass.cpp | 19 template <class IntT> 21 typedef std::numeric_limits<IntT> Lim; in test() 22 const bool MaxIsRepresentable = sizeof(IntT) < 8; in test() 23 const bool IsSigned = std::is_signed<IntT>::value; in test() 26 IntT Expect; in test() 31 {IsSigned ? static_cast<IntT>(-1) : 0, in test() 32 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test() 40 auto res = std::__clamp_to_integral<IntT>(TC.Input); in test() 43 auto other = static_cast<IntT>(std::trunc(TC.Input)); in test() 50 template <class IntT> [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | PointerEmbeddedInt.h | 32 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT> 61 PointerEmbeddedInt(IntT I) { *this = I; } 63 PointerEmbeddedInt &operator=(IntT I) { 64 assert((std::is_signed<IntT>::value ? isInt<Bits>(I) : isUInt<Bits>(I)) && 72 operator IntT() const { 73 if (std::is_signed<IntT>::value) 74 return static_cast<IntT>(static_cast<intptr_t>(Value) >> Shift); 75 return static_cast<IntT>(Value >> Shift); 81 template <typename IntT, int Bits> 82 struct PointerLikeTypeTraits<PointerEmbeddedInt<IntT, Bits>> { [all …]
|
/external/llvm/include/llvm/ADT/ |
D | PointerEmbeddedInt.h | 30 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT> 59 PointerEmbeddedInt(IntT I) { in PointerEmbeddedInt() 63 PointerEmbeddedInt &operator=(IntT I) { 64 assert((std::is_signed<IntT>::value ? llvm::isInt<Bits>(I) 73 operator IntT() const { in IntT() function 74 if (std::is_signed<IntT>::value) in IntT() 75 return static_cast<IntT>(static_cast<intptr_t>(Value) >> Shift); in IntT() 76 return static_cast<IntT>(Value >> Shift); in IntT() 82 template <typename IntT, int Bits> 83 class PointerLikeTypeTraits<PointerEmbeddedInt<IntT, Bits>> { [all …]
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | PointerEmbeddedInt.h | 32 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT> 61 PointerEmbeddedInt(IntT I) { *this = I; } 63 PointerEmbeddedInt &operator=(IntT I) { 64 assert((std::is_signed<IntT>::value ? isInt<Bits>(I) : isUInt<Bits>(I)) && 72 operator IntT() const { 73 if (std::is_signed<IntT>::value) 74 return static_cast<IntT>(static_cast<intptr_t>(Value) >> Shift); 75 return static_cast<IntT>(Value >> Shift); 81 template <typename IntT, int Bits> 82 struct PointerLikeTypeTraits<PointerEmbeddedInt<IntT, Bits>> { [all …]
|
/external/angle/src/libANGLE/ |
D | BinaryStream.h | 22 template <typename IntT> 26 std::is_signed<IntT>::value, 27 typename std::conditional<sizeof(IntT) <= 4, int32_t, int64_t>::type, 28 typename std::conditional<sizeof(IntT) <= 4, uint32_t, uint64_t>::type>::type; 43 template <class IntT> 44 IntT readInt() in readInt() 46 static_assert(!std::is_same<bool, std::remove_cv<IntT>()>(), "Use readBool"); in readInt() 47 using PromotedIntT = typename PromotedIntegerType<IntT>::type; in readInt() 50 ASSERT(angle::IsValueInRangeForNumericType<IntT>(value)); in readInt() 51 return static_cast<IntT>(value); in readInt() [all …]
|
/external/llvm-project/libcxx/test/libcxx/fuzzing/ |
D | random.pass.cpp | 22 template <class IntT> 23 std::vector<IntT> GetValues(const std::uint8_t *data, std::size_t size) { in GetValues() 24 std::vector<IntT> result; in GetValues() 25 while (size >= sizeof(IntT)) { in GetValues() 26 IntT tmp; in GetValues() 27 std::memcpy(&tmp, data, sizeof(IntT)); in GetValues() 28 size -= sizeof(IntT); in GetValues() 29 data += sizeof(IntT); in GetValues() 88 template <class IntT> 89 struct ParamTypeHelper<std::poisson_distribution<IntT>> { [all …]
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | test_utils.cc | 223 template <typename IntT> 225 using type = IntT; 238 template <typename IntT> 243 primitive_util::NativeToPrimitiveType<IntT>()); in PopulateWithRandomIntegralData() 245 std::numeric_limits<IntT>::max()) { in PopulateWithRandomIntegralData() 246 std::iota(literal->data<IntT>().begin(), literal->data<IntT>().end(), 0); in PopulateWithRandomIntegralData() 247 std::shuffle(literal->data<IntT>().begin(), literal->data<IntT>().end(), in PopulateWithRandomIntegralData() 250 std::uniform_int_distribution<typename RngT<IntT>::type> generator( in PopulateWithRandomIntegralData() 251 std::numeric_limits<IntT>::lowest(), std::numeric_limits<IntT>::max()); in PopulateWithRandomIntegralData() 252 for (IntT& value : literal->data<IntT>()) { in PopulateWithRandomIntegralData() [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | random_shuffle_op.cc | 49 template <class IntT, class InT, class OutT, class Random> 52 std::vector<IntT> permutation(size); in IndexedShuffle() 53 for (IntT i = 0; i < size; i++) { in IndexedShuffle() 57 for (IntT i = 0; i < size; i++) { in IndexedShuffle()
|
/external/llvm-project/flang/lib/Evaluate/ |
D | fold-character.cpp | 22 using IntT = SubscriptInteger; in FoldIntrinsicFunction() typedef 23 return FoldElementalIntrinsic<T, IntT>(context, std::move(funcRef), in FoldIntrinsicFunction() 24 ScalarFunc<T, IntT>([](const Scalar<IntT> &i) { in FoldIntrinsicFunction()
|
/external/llvm-project/mlir/include/mlir/IR/ |
D | DialectImplementation.h | 138 template <typename IntT> ParseResult parseInteger(IntT &result) { in parseInteger() 149 template <typename IntT> 150 OptionalParseResult parseOptionalInteger(IntT &result) { in parseOptionalInteger() 160 result = IntT(uintResult); in parseOptionalInteger()
|
/external/llvm-project/libcxx/test/std/numerics/complex.number/cmplx.over/ |
D | UDT_is_rejected.fail.cpp | 18 template <class IntT> 20 operator IntT() const { return 1; } in operator IntT()
|
/external/libcxx/test/std/numerics/complex.number/cmplx.over/ |
D | UDT_is_rejected.fail.cpp | 19 template <class IntT> 21 operator IntT() const { return 1; } in operator IntT()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 540 template <class IntT> IntT toInt() const; 779 template <class IntT> 780 IntT ScaledNumber<DigitsT>::toInt() const { in toInt() 781 typedef std::numeric_limits<IntT> Limits; in toInt() 787 IntT N = Digits; in toInt() 789 assert(size_t(Scale) < sizeof(IntT) * 8); in toInt() 793 assert(size_t(-Scale) < sizeof(IntT) * 8); in toInt()
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 540 template <class IntT> IntT toInt() const; 779 template <class IntT> 780 IntT ScaledNumber<DigitsT>::toInt() const { in toInt() 781 typedef std::numeric_limits<IntT> Limits; in toInt() 787 IntT N = Digits; in toInt() 789 assert(size_t(Scale) < sizeof(IntT) * 8); in toInt() 793 assert(size_t(-Scale) < sizeof(IntT) * 8); in toInt()
|
/external/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 541 template <class IntT> IntT toInt() const; 780 template <class IntT> 781 IntT ScaledNumber<DigitsT>::toInt() const { in toInt() 782 typedef std::numeric_limits<IntT> Limits; in toInt() 788 IntT N = Digits; in toInt() 790 assert(size_t(Scale) < sizeof(IntT) * 8); in toInt() 794 assert(size_t(-Scale) < sizeof(IntT) * 8); in toInt()
|
/external/llvm/include/llvm/ProfileData/ |
D | InstrProfReader.h | 209 template <class IntT> IntT swap(IntT Int) const { in swap()
|
/external/llvm-project/llvm/include/llvm/ProfileData/ |
D | InstrProfReader.h | 246 template <class IntT> IntT swap(IntT Int) const { in swap()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/ |
D | InstrProfReader.h | 237 template <class IntT> IntT swap(IntT Int) const { in swap()
|
/external/llvm-project/llvm/lib/CodeGen/LiveDebugValues/ |
D | VarLocBasedImpl.cpp | 250 template<typename IntT> static LocIndex fromRawInteger(IntT ID) { in fromRawInteger() 251 static_assert(std::is_unsigned<IntT>::value && in fromRawInteger()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaChecking.cpp | 12630 static bool checkOpenCLEnqueueIntType(Sema &S, Expr *E, const QualType &IntT) { in checkOpenCLEnqueueIntType() argument 12640 CheckImplicitConversion(S, E, IntT, E->getBeginLoc()); in checkOpenCLEnqueueIntType()
|