Searched refs:IntT (Results 1 – 12 of 12) sorted by relevance
/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/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/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | PointerEmbeddedInt.h | 33 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT> 62 PointerEmbeddedInt(IntT I) { *this = I; } 64 PointerEmbeddedInt &operator=(IntT I) { 65 assert((std::is_signed<IntT>::value ? isInt<Bits>(I) : isUInt<Bits>(I)) && 73 operator IntT() const { 74 if (std::is_signed<IntT>::value) 75 return static_cast<IntT>(static_cast<intptr_t>(Value) >> Shift); 76 return static_cast<IntT>(Value >> Shift); 82 template <typename IntT, int Bits> 83 struct PointerLikeTypeTraits<PointerEmbeddedInt<IntT, Bits>> { [all …]
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | test_utils.cc | 168 template <typename IntT> 173 primitive_util::NativeToPrimitiveType<IntT>()); in PopulateWithRandomIntegralData() 175 std::numeric_limits<IntT>::max()) { in PopulateWithRandomIntegralData() 176 std::iota(literal->data<IntT>().begin(), literal->data<IntT>().end(), 0); in PopulateWithRandomIntegralData() 177 std::shuffle(literal->data<IntT>().begin(), literal->data<IntT>().end(), in PopulateWithRandomIntegralData() 180 std::uniform_int_distribution<IntT> generator( in PopulateWithRandomIntegralData() 181 std::numeric_limits<IntT>::lowest(), std::numeric_limits<IntT>::max()); in PopulateWithRandomIntegralData() 182 for (IntT& value : literal->data<IntT>()) { in PopulateWithRandomIntegralData() 272 template <typename IntT> 275 IntT min, IntT max) { in PopulateWithRandomIntegralDataWithBounds() [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/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/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/swiftshader/third_party/llvm-7.0/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/ |
D | InstrProfReader.h | 226 template <class IntT> IntT swap(IntT Int) const { in swap()
|