/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | Casting.h | 47 template <typename To, typename From> 50 return To::classof(&Val); 54 template <typename To, typename From> struct isa_impl_cl { 56 return isa_impl<To, From>::doit(Val); 60 template <typename To, typename From> struct isa_impl_cl<To, const From> { 62 return isa_impl<To, From>::doit(Val); 66 template <typename To, typename From> struct isa_impl_cl<To, From*> { 68 return isa_impl<To, From>::doit(*Val); 72 template <typename To, typename From> struct isa_impl_cl<To, const From*> { 74 return isa_impl<To, From>::doit(*Val); [all …]
|
/external/llvm/include/llvm/Support/ |
D | Casting.h | 53 template <typename To, typename From, typename Enabler = void> 56 return To::classof(&Val); 61 template <typename To, typename From> 63 To, From, typename std::enable_if<std::is_base_of<To, From>::value>::type> { 67 template <typename To, typename From> struct isa_impl_cl { 69 return isa_impl<To, From>::doit(Val); 73 template <typename To, typename From> struct isa_impl_cl<To, const From> { 75 return isa_impl<To, From>::doit(Val); 79 template <typename To, typename From> struct isa_impl_cl<To, From*> { 82 return isa_impl<To, From>::doit(*Val); [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Casting.h | 53 template <typename To, typename From, typename Enabler = void> 56 return To::classof(&Val); 61 template <typename To, typename From> 63 To, From, typename std::enable_if<std::is_base_of<To, From>::value>::type> { 67 template <typename To, typename From> struct isa_impl_cl { 69 return isa_impl<To, From>::doit(Val); 73 template <typename To, typename From> struct isa_impl_cl<To, const From> { 75 return isa_impl<To, From>::doit(Val); 79 template <typename To, typename From> struct isa_impl_cl<To, From*> { 82 return isa_impl<To, From>::doit(*Val); [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | cast_op.h | 78 template <typename From, typename To> 79 struct scalar_cast_op<std::complex<From>, To> { 80 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE To 83 return static_cast<To>(a.real()); 87 template <typename From, typename To> 88 struct scalar_cast_op<From, std::complex<To>> { 89 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::complex<To> operator()( 92 return std::complex<To>(static_cast<To>(a), To(0)); 96 template <typename From, typename To> 97 struct scalar_cast_op<std::complex<From>, std::complex<To>> { [all …]
|
D | aggregate_ops.cc | 77 auto To = output->flat<T>(); in Compute() local 89 functor2(ctx->template eigen_device<Device>(), To, I(0), I(1)); in Compute() 97 functor2(ctx->template eigen_device<Device>(), To, I(0), I(1)); in Compute() 102 functor3(ctx->template eigen_device<Device>(), To, I(0), I(1), I(2)); in Compute() 107 functor4(ctx->template eigen_device<Device>(), To, I(0), I(1), I(2), in Compute() 113 functor5(ctx->template eigen_device<Device>(), To, I(0), I(1), I(2), in Compute() 119 functor6(ctx->template eigen_device<Device>(), To, I(0), I(1), I(2), in Compute() 125 functor7(ctx->template eigen_device<Device>(), To, I(0), I(1), I(2), in Compute() 131 functor8(ctx->template eigen_device<Device>(), To, I(0), I(1), I(2), in Compute() 138 functor9(ctx->template eigen_device<Device>(), To, I(0), I(1), I(2), in Compute() [all …]
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | datapiece.cc | 61 template <typename To, typename From> 62 StatusOr<To> ValidateNumberConversion(To after, From before) { in ValidateNumberConversion() 64 MathUtil::Sign<From>(before) == MathUtil::Sign<To>(after)) { in ValidateNumberConversion() 78 template <typename To, typename From> 79 StatusOr<To> NumberConvertAndCheck(From before) { in NumberConvertAndCheck() 80 if (::google::protobuf::internal::is_same<From, To>::value) return before; in NumberConvertAndCheck() 82 To after = static_cast<To>(before); in NumberConvertAndCheck() 88 template <typename To, typename From> 89 StatusOr<To> FloatingPointToIntConvertAndCheck(From before) { in FloatingPointToIntConvertAndCheck() 90 if (::google::protobuf::internal::is_same<From, To>::value) return before; in FloatingPointToIntConvertAndCheck() [all …]
|
/external/protobuf/src/google/protobuf/stubs/ |
D | casts.h | 57 template<typename To, typename From> 58 inline To implicit_cast(From const &f) { in implicit_cast() 80 template<typename To, typename From> // use like this: down_cast<T*>(foo); 81 inline To down_cast(From* f) { // so we only accept pointers in down_cast() 87 implicit_cast<From*, To>(0); in down_cast() 91 assert(f == NULL || dynamic_cast<To>(f) != NULL); // RTTI: debug mode only! in down_cast() 93 return static_cast<To>(f); in down_cast() 96 template<typename To, typename From> // use like this: down_cast<T&>(foo); 97 inline To down_cast(From& f) { in down_cast() 98 typedef typename remove_reference<To>::type* ToAsPointer; in down_cast() [all …]
|
/external/google-breakpad/src/testing/include/gmock/internal/ |
D | gmock-internal-utils.h | 184 template <TypeKind kFromKind, typename From, TypeKind kToKind, typename To> 193 template <typename To> 194 struct LosslessArithmeticConvertibleImpl<kBool, bool, kInteger, To> 198 template <typename To> 199 struct LosslessArithmeticConvertibleImpl<kBool, bool, kFloatingPoint, To> 209 template <typename From, typename To> 210 struct LosslessArithmeticConvertibleImpl<kInteger, From, kInteger, To> 214 ((sizeof(From) < sizeof(To)) && 215 (!GMOCK_IS_SIGNED_(From) || GMOCK_IS_SIGNED_(To))) || 217 ((sizeof(From) == sizeof(To)) && [all …]
|
/external/v8/testing/gmock/include/gmock/internal/ |
D | gmock-internal-utils.h | 184 template <TypeKind kFromKind, typename From, TypeKind kToKind, typename To> 193 template <typename To> 194 struct LosslessArithmeticConvertibleImpl<kBool, bool, kInteger, To> 198 template <typename To> 199 struct LosslessArithmeticConvertibleImpl<kBool, bool, kFloatingPoint, To> 209 template <typename From, typename To> 210 struct LosslessArithmeticConvertibleImpl<kInteger, From, kInteger, To> 214 ((sizeof(From) < sizeof(To)) && 215 (!GMOCK_IS_SIGNED_(From) || GMOCK_IS_SIGNED_(To))) || 217 ((sizeof(From) == sizeof(To)) && [all …]
|
/external/v8/tools/clang/rewrite_to_chrome_style/tests/ |
D | function-templates-original.cc | 7 template<typename To, typename From> 12 template<typename To, typename From> 13 To safeCast(From value) { in safeCast() 14 if (!isInBounds<To>(value)) in safeCast() 16 return static_cast<To>(value); in safeCast() 38 template<typename To, typename From> 39 To bitwise_cast(From from) { in bitwise_cast() 40 static_assert(sizeof(To) == sizeof(From), "msg"); in bitwise_cast() 41 return reinterpret_cast<To>(from); in bitwise_cast()
|
D | function-templates-expected.cc | 7 template <typename To, typename From> 12 template <typename To, typename From> 13 To SafeCast(From value) { in SafeCast() 14 if (!IsInBounds<To>(value)) in SafeCast() 16 return static_cast<To>(value); in SafeCast() 38 template <typename To, typename From> 39 To bitwise_cast(From from) { in bitwise_cast() 40 static_assert(sizeof(To) == sizeof(From), "msg"); in bitwise_cast() 41 return reinterpret_cast<To>(from); in bitwise_cast()
|
/external/googletest/googlemock/include/gmock/internal/ |
D | gmock-internal-utils.h | 184 template <TypeKind kFromKind, typename From, TypeKind kToKind, typename To> 193 template <typename To> 194 struct LosslessArithmeticConvertibleImpl<kBool, bool, kInteger, To> 198 template <typename To> 199 struct LosslessArithmeticConvertibleImpl<kBool, bool, kFloatingPoint, To> 209 template <typename From, typename To> 210 struct LosslessArithmeticConvertibleImpl<kInteger, From, kInteger, To> 214 ((sizeof(From) < sizeof(To)) && 215 (!GMOCK_IS_SIGNED_(From) || GMOCK_IS_SIGNED_(To))) || 217 ((sizeof(From) == sizeof(To)) && [all …]
|
/external/mockito/src/main/java/org/mockito/internal/util/collections/ |
D | ListUtil.java | 29 …public static <From, To> LinkedList<To> convert(Collection<From> collection, Converter<From, To> c… in convert() 30 LinkedList<To> converted = new LinkedList<To>(); in convert() 41 public interface Converter<From, To> { 42 To convert(From from); in convert()
|
/external/capstone/ |
D | COMPILE.TXT | 4 To natively compile for Windows using Microsoft Visual Studio, see COMPILE_MSVC.TXT. 6 To compile using CMake, see COMPILE_CMAKE.TXT. 8 To compile using XCode on MacOSX, see xcode/README.md. 39 To avoid editing config.mk for these customization, we can pass their values to 54 - To compile for current platform, run: 66 To install Capstone, run: 100 To cross-compile for Windows, Linux & gcc-mingw-w64-i686 (and also gcc-mingw-w64-x86-64 103 - To cross-compile Windows 32-bit binary, simply run: 107 - To cross-compile Windows 64-bit binary, run: 118 To cross-compile for iOS (iPhone/iPad/iPod), Mac OSX with XCode installed is required. [all …]
|
/external/sfntly/cpp/src/sfntly/port/ |
D | type.h | 68 template<typename To, typename From> 69 inline To implicit_cast(From const &f) { in implicit_cast() 73 template<typename To, typename From> // use like this: down_cast<T*>(foo); 74 inline To down_cast(From* f) { // so we only accept pointers in down_cast() 84 implicit_cast<From*, To>(0); in down_cast() 93 assert(f == NULL || dynamic_cast<To>(f) != NULL); in down_cast() 95 return static_cast<To>(f); in down_cast()
|
/external/libcxx/test/libcxx/utilities/function.objects/func.require/ |
D | invoke_helpers.h | 144 template <class To> 146 To object; 153 To& operator*() const volatile { return const_cast<To&>(object); } 160 template <class To> 162 To object; 170 To& operator*() { return object; } 171 To const& operator*() const { return object; } 172 To volatile& operator*() volatile { return object; } 173 To const volatile& operator*() const volatile { return object; } 175 To& operator*() & { return object; } [all …]
|
/external/swiftshader/third_party/subzero/unittest/AssemblerX8632/ |
D | X87.cpp | 154 test.set##MemorySize##To(T1, OldValue1); \ in TEST_F() 155 test.set##MemorySize##To(N1, NewValue1); \ in TEST_F() 156 test.set##MemorySize##To(T2, OldValue2); \ in TEST_F() 157 test.set##MemorySize##To(N2, NewValue2); \ in TEST_F() 158 test.set##MemorySize##To(T3, OldValue3); \ in TEST_F() 159 test.set##MemorySize##To(N3, NewValue3); \ in TEST_F() 160 test.set##MemorySize##To(T4, OldValue4); \ in TEST_F() 161 test.set##MemorySize##To(N4, NewValue4); \ in TEST_F() 162 test.set##MemorySize##To(T5, OldValue5); \ in TEST_F() 163 test.set##MemorySize##To(N5, NewValue5); \ in TEST_F() [all …]
|
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | type_conversion_unittest.cc | 87 region.rects.push_back(element.To<RedmondRect>()); in Convert() 103 EXPECT_EQ(std::string(kText), a.To<std::string>()); in TEST() 104 EXPECT_EQ(std::string(kText), b.To<std::string>()); in TEST() 105 EXPECT_EQ(std::string(kText), c.To<std::string>()); in TEST() 111 EXPECT_EQ(std::string(), a.To<std::string>()); in TEST() 119 EXPECT_EQ(std::string(), a.To<std::string>()); in TEST() 123 EXPECT_EQ(std::string(), b.To<std::string>()); in TEST() 130 EXPECT_EQ(kText, a.To<std::string>()); in TEST() 134 EXPECT_EQ(std::string("hel"), b.To<std::string>()); in TEST() 144 RedmondRect rr = rect.To<RedmondRect>(); in TEST() [all …]
|
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/ |
D | U.pass.cpp | 51 template <class To, class From> 52 constexpr bool implicit_conversion(optional<To>&& opt, const From& v) in implicit_conversion() 54 using O = optional<To>; in implicit_conversion() 58 return opt && *opt == static_cast<To>(v); in implicit_conversion() 61 template <class To, class Input, class Expect> 64 using O = optional<To>; in explicit_conversion() 69 optional<To> opt(std::forward<Input>(in)); in explicit_conversion() 70 return opt && *opt == static_cast<To>(v); in explicit_conversion()
|
/external/wycheproof/ |
D | BUILD | 25 # To test latest stable: 28 # To test other versions, e.g., v1.52: 31 # To test all known versions (warning, will take a long time): 55 # To test latest stable: 58 # To test other versions, e.g., v1.52.0.0: 61 # To test all known versions (warning, will take a long time): 78 # To test latest stable: 81 # To test other versions, e.g., v1.52: 84 # To test all known versions: 107 # To test latest stable: [all …]
|
/external/ltp/testcases/open_posix_testsuite/Documentation/ |
D | HOWTO_RunTests | 32 and the framework merely calls these mechanisms. To build functional and 34 area. To run these tests, the framework calls the run.sh file for each 44 To build and run the tests, you should be in the main posix test suite 52 To disable known failures on Linux do make filter-known-fails. 56 To run conformance tests for a specific directory, just cd to the directory 62 To just build conformance tests, run: 65 To just run conformance tests, run: 70 To run only functional tests, run: 73 To run only stress tests, run: 76 To make only functional tests, run: [all …]
|
/external/llvm/lib/Analysis/ |
D | CFLGraph.h | 110 void addEdge(Node From, Node To, int64_t Offset = 0) { 111 assert(getNode(To) != nullptr); 115 FromInfo->Edges.push_back(Edge{To}); 194 void addAssignEdge(Value *From, Value *To, int64_t Offset = 0) { 195 assert(From != nullptr && To != nullptr); 196 if (!From->getType()->isPointerTy() || !To->getType()->isPointerTy()) 199 if (To != From) { 200 addNode(To); 201 Graph.addEdge(InstantiatedValue{From, 0}, InstantiatedValue{To, 0}, 206 void addDerefEdge(Value *From, Value *To) { in addDerefEdge() argument [all …]
|
/external/v8/src/ |
D | value-serializer.cc | 238 if (ReserveRawBytes(length).To(&dest)) { in WriteRawBytes() 248 if (!ExpandBuffer(new_size).To(&ok)) { in ReserveRawBytes() 530 !WriteJSObjectPropertiesSlow(object, keys).To(&properties_written)) { in WriteJSObjectSlow() 625 if (!WriteJSObjectPropertiesSlow(array, keys).To(&properties_written)) { in WriteJSArray() 639 !WriteJSObjectPropertiesSlow(array, keys).To(&properties_written)) { in WriteJSArray() 816 if (ReserveRawBytes(wire_bytes_length).To(&destination)) { in WriteWasmModule() 926 if (!ReadVarint<uint32_t>().To(&version_) || version_ > kLatestVersion) { in ReadHeader() 996 if (!ReadVarint<UnsignedT>().To(&unsigned_value)) return Nothing<T>(); in ReadZigZag() 1019 return ReadVarint<uint32_t>().To(value); in ReadUint32() 1023 return ReadVarint<uint64_t>().To(value); in ReadUint64() [all …]
|
/external/libcxx/test/support/ |
D | poisoned_hash_helper.hpp | 105 template <class To> 107 operator To() const { in operator To() 108 return To{}; in operator To() 112 template <class To> 114 To to{}; 115 operator To&() & { return to; } in operator To&() 116 operator To const&() const & { return to; } in operator To const&() 117 operator To&&() && { return std::move(to); } in operator To&&() 118 operator To const&&() const && { return std::move(to); } in operator To const&&()
|
/external/libxml2/result/XPath/xptr/ |
D | strrange2 | 9 To index 13 in node 17 To index 13 in node 25 To index 10 in node 37 To index 12 in node 45 To index 12 in node 53 To index 9 in node
|