Home
last modified time | relevance | path

Searched refs:CType (Results 1 – 25 of 114) sorted by relevance

12345

/third_party/skia/third_party/externals/icu/source/common/
Dcapi_helper.h14 template<typename CType, typename CPPType, int32_t kMagic>
20 static const CPPType* validate(const CType* input, UErrorCode& status);
25 static CPPType* validate(CType* input, UErrorCode& status);
30 const CType* exportConstForC() const;
35 CType* exportForC();
50 template<typename CType, typename CPPType, int32_t kMagic>
52 IcuCApiHelper<CType, CPPType, kMagic>::validate(const CType* input, UErrorCode& status) { in validate()
61 if (static_cast<const IcuCApiHelper<CType, CPPType, kMagic>*>(impl)->fMagic != kMagic) { in validate()
68 template<typename CType, typename CPPType, int32_t kMagic>
70 IcuCApiHelper<CType, CPPType, kMagic>::validate(CType* input, UErrorCode& status) { in validate()
[all …]
/third_party/icu/icu4c/source/common/
Dcapi_helper.h14 template<typename CType, typename CPPType, int32_t kMagic>
20 static const CPPType* validate(const CType* input, UErrorCode& status);
25 static CPPType* validate(CType* input, UErrorCode& status);
30 const CType* exportConstForC() const;
35 CType* exportForC();
50 template<typename CType, typename CPPType, int32_t kMagic>
52 IcuCApiHelper<CType, CPPType, kMagic>::validate(const CType* input, UErrorCode& status) { in validate()
61 if (static_cast<const IcuCApiHelper<CType, CPPType, kMagic>*>(impl)->fMagic != kMagic) { in validate()
68 template<typename CType, typename CPPType, int32_t kMagic>
70 IcuCApiHelper<CType, CPPType, kMagic>::validate(CType* input, UErrorCode& status) { in validate()
[all …]
/third_party/node/deps/icu-small/source/common/
Dcapi_helper.h14 template<typename CType, typename CPPType, int32_t kMagic>
20 static const CPPType* validate(const CType* input, UErrorCode& status);
25 static CPPType* validate(CType* input, UErrorCode& status);
30 const CType* exportConstForC() const;
35 CType* exportForC();
50 template<typename CType, typename CPPType, int32_t kMagic>
52 IcuCApiHelper<CType, CPPType, kMagic>::validate(const CType* input, UErrorCode& status) { in validate()
61 if (static_cast<const IcuCApiHelper<CType, CPPType, kMagic>*>(impl)->fMagic != kMagic) { in validate()
68 template<typename CType, typename CPPType, int32_t kMagic>
70 IcuCApiHelper<CType, CPPType, kMagic>::validate(CType* input, UErrorCode& status) { in validate()
[all …]
/third_party/skia/third_party/externals/dawn/generator/templates/
Dwebgpu_cpp.cpp28 {% set CType = as_cType(type.name) %}
32 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}");
33 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}");
42 {% set CType = as_cType(type.name) + "Flags" %}
46 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}");
47 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}");
66 {% set CType = as_cType(type.name) %}
70 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}");
71 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}");
74 static_assert(offsetof({{CppType}}, nextInChain) == offsetof({{CType}}, nextInChain),
[all …]
Dapi_cpp.h67 template<typename Derived, typename CType>
71 ObjectBase(CType handle): mHandle(handle) {
124 CType Get() const {
127 CType Release() {
128 CType result = mHandle;
132 static Derived Acquire(CType handle) {
139 CType mHandle = nullptr;
173 {% set CType = as_cType(type.name) %}
174 class {{CppType}} : public ObjectBase<{{CppType}}, {{CType}}> {
184 friend ObjectBase<{{CppType}}, {{CType}}>;
[all …]
/third_party/rust/crates/foreign-types/foreign-types-shared/src/
Dlib.rs17 type CType; typedef
20 type Ref: ForeignTypeRef<CType = Self::CType>;
23 unsafe fn from_ptr(ptr: *mut Self::CType) -> Self; in from_ptr()
26 fn as_ptr(&self) -> *mut Self::CType; in as_ptr() argument
32 type CType; typedef
36 unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self { in from_ptr()
42 unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self { in from_ptr_mut()
48 fn as_ptr(&self) -> *mut Self::CType { in as_ptr() argument
/third_party/flutter/skia/src/sksl/
DSkSLCPPUniformCTypes.cpp116 Layout::CType ctype, const std::vector<String>& skslTypes, const String& setUniformFormat, in UniformCTypeMapper()
131 static UniformCTypeMapper REGISTER(Layout::CType ctype, const std::vector<String>& skslTypes, in REGISTER()
138 static UniformCTypeMapper REGISTER(Layout::CType ctype, const std::vector<String>& skslTypes, in REGISTER()
150 REGISTER(Layout::CType::kSkRect, { "half4", "float4", "double4" }, in get_mappers()
155 REGISTER(Layout::CType::kSkIRect, { "int4", "short4", "byte4" }, in get_mappers()
160 REGISTER(Layout::CType::kSkPMColor4f, { "half4", "float4", "double4" }, in get_mappers()
164 REGISTER(Layout::CType::kSkVector4, { "half4", "float4", "double4" }, in get_mappers()
169 REGISTER(Layout::CType::kSkPoint, { "half2", "float2", "double2" } , in get_mappers()
173 REGISTER(Layout::CType::kSkIPoint, { "int2", "short2", "byte2" }, in get_mappers()
177 REGISTER(Layout::CType::kSkMatrix, { "half3x3", "float3x3", "double3x3" }, in get_mappers()
[all …]
DSkSLHCodeGenerator.cpp32 Layout::CType ctype = ParameterCType(context, type, layout); in ParameterType()
33 if (ctype != Layout::CType::kDefault) { in ParameterType()
39 Layout::CType HCodeGenerator::ParameterCType(const Context& context, const Type& type, in ParameterCType()
41 if (layout.fCType != Layout::CType::kDefault) { in ParameterCType()
47 return Layout::CType::kFloat; in ParameterCType()
51 return Layout::CType::kInt32; in ParameterCType()
53 return Layout::CType::kSkPoint; in ParameterCType()
57 return Layout::CType::kSkIPoint; in ParameterCType()
61 return Layout::CType::kSkIRect; in ParameterCType()
63 return Layout::CType::kSkRect; in ParameterCType()
[all …]
DSkSLCPPUniformCTypes.h36 UniformCTypeMapper(Layout::CType ctype, const std::vector<String>& skslTypes, in UniformCTypeMapper()
42 UniformCTypeMapper(Layout::CType ctype, const std::vector<String>& skslTypes, in UniformCTypeMapper()
61 Layout::CType ctype() const { in ctype()
116 UniformCTypeMapper(Layout::CType ctype, const std::vector<String>& skslTypes,
120 Layout::CType fCType;
/third_party/flutter/skia/src/sksl/ir/
DSkSLLayout.h81 enum class CType { enum
151 static const char* CTypeToStr(CType ctype) { in CTypeToStr()
153 case CType::kDefault: in CTypeToStr()
155 case CType::kFloat: in CTypeToStr()
157 case CType::kInt32: in CTypeToStr()
159 case CType::kSkRect: in CTypeToStr()
161 case CType::kSkIRect: in CTypeToStr()
163 case CType::kSkPMColor4f: in CTypeToStr()
165 case CType::kSkPMColor: in CTypeToStr()
167 case CType::kSkVector4: in CTypeToStr()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/generator/templates/
Dapicpp.cpp21 {% set CType = as_cType(type.name) %}
23 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}");
24 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}");
35 {% set CType = as_cType(type.name) %}
37 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}");
38 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}");
41 static_assert(offsetof({{CppType}}, nextInChain) == offsetof({{CType}}, nextInChain),
46 … static_assert(offsetof({{CppType}}, {{memberName}}) == offsetof({{CType}}, {{memberName}}),
54 {% set CType = as_cType(type.name) %}
56 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}");
[all …]
Dapicpp.h64 template<typename Derived, typename CType>
68 ObjectBase(CType handle): mHandle(handle) {
114 CType Get() const {
117 CType Release() {
118 CType result = mHandle;
122 static Derived Acquire(CType handle) {
129 CType mHandle = nullptr;
161 {% set CType = as_cType(type.name) %}
162 class {{CppType}} : public ObjectBase<{{CppType}}, {{CType}}> {
172 friend ObjectBase<{{CppType}}, {{CType}}>;
[all …]
/third_party/flutter/skia/third_party/externals/dawn/generator/templates/dawn_native/
Dapi_structs.cpp21 {% set CType = as_cType(type.name) %}
23 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}");
24 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}");
27 static_assert(offsetof({{CppType}}, nextInChain) == offsetof({{CType}}, nextInChain),
32 … static_assert(offsetof({{CppType}}, {{memberName}}) == offsetof({{CType}}, {{memberName}}),
/third_party/flutter/skia/src/gpu/effects/
DGrSkSLFP.cpp96 static SkSL::Layout::CType get_ctype(const SkSL::Context& context, const SkSL::Variable& v) { in get_ctype()
97 SkSL::Layout::CType result = v.fModifiers.fLayout.fCType; in get_ctype()
98 if (result == SkSL::Layout::CType::kDefault) { in get_ctype()
100 result = SkSL::Layout::CType::kFloat; in get_ctype()
102 result = SkSL::Layout::CType::kSkRect; in get_ctype()
104 result = SkSL::Layout::CType::kSkPMColor; in get_ctype()
106 result = SkSL::Layout::CType::kInt32; in get_ctype()
108 result = SkSL::Layout::CType::kBool; in get_ctype()
110 return SkSL::Layout::CType::kDefault; in get_ctype()
223 case SkSL::Layout::CType::kSkPMColor: { in onSetData()
[all …]
/third_party/skia/third_party/externals/dawn/generator/templates/dawn_native/
Dwgpu_structs.cpp37 {% set CType = as_cType(type.name) %}
39 static_assert(sizeof({{CppType}}) == sizeof({{CType}}), "sizeof mismatch for {{CppType}}");
40 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}");
43 static_assert(offsetof({{CppType}}, nextInChain) == offsetof({{CType}}, nextInChain),
48 … static_assert(offsetof({{CppType}}, {{memberName}}) == offsetof({{CType}}, {{memberName}}),
/third_party/rust/crates/rust-openssl/openssl/src/
Dutil.rs70 unsafe fn from_ptr_opt(ptr: *mut Self::CType) -> Option<Self> { in from_ptr_opt()
81 unsafe fn from_const_ptr<'a>(ptr: *const Self::CType) -> &'a Self { in from_const_ptr()
82 Self::from_ptr(ptr as *mut Self::CType) in from_const_ptr()
85 unsafe fn from_const_ptr_opt<'a>(ptr: *const Self::CType) -> Option<&'a Self> { in from_const_ptr_opt()
89 Some(Self::from_const_ptr(ptr as *mut Self::CType)) in from_const_ptr_opt()
/third_party/protobuf/src/google/protobuf/
Dwire_format_lite.h256 template <typename CType, enum FieldType DeclaredType>
258 CType* value);
263 template <typename CType, enum FieldType DeclaredType>
266 RepeatedField<CType>* value);
270 template <typename CType, enum FieldType DeclaredType>
273 RepeatedField<CType>* value);
280 template <typename CType, enum FieldType DeclaredType>
282 const uint8* buffer, CType* value);
287 template <typename CType, enum FieldType DeclaredType>
289 io::CodedInputStream* input, RepeatedField<CType>* value);
[all …]
/third_party/icu/icu4c/source/i18n/
Dformattedval_impl.h257 #define UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix) \ argument
258 U_CAPI CType* U_EXPORT2 \
271 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \
277 Prefix ## _closeResult (CType* uresult) { \
293 #define UPRV_FORMATTED_VALUE_CAPI_AUTO_IMPL(CPPType, CType, ImplType, HelperType, Prefix, MagicNumb… argument
296 typedef IcuCApiHelper<CType, ImplType, MagicNumber> HelperType; \
308 UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix)
/third_party/skia/third_party/externals/icu/source/i18n/
Dformattedval_impl.h257 #define UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix) \ argument
258 U_CAPI CType* U_EXPORT2 \
271 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \
277 Prefix ## _closeResult (CType* uresult) { \
293 #define UPRV_FORMATTED_VALUE_CAPI_AUTO_IMPL(CPPType, CType, ImplType, HelperType, Prefix, MagicNumb… argument
296 typedef IcuCApiHelper<CType, ImplType, MagicNumber> HelperType; \
308 UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix)
/third_party/node/deps/icu-small/source/i18n/
Dformattedval_impl.h258 #define UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix) \ argument
259 U_CAPI CType* U_EXPORT2 \
272 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \
278 Prefix ## _closeResult (CType* uresult) { \
294 #define UPRV_FORMATTED_VALUE_CAPI_AUTO_IMPL(CPPType, CType, ImplType, HelperType, Prefix, MagicNumb… argument
297 typedef IcuCApiHelper<CType, ImplType, MagicNumber> HelperType; \
309 UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL(CType, ImplType, HelperType, Prefix)
/third_party/skia/src/c/
Dsk_c_from_to.h8 static bool find_sk(CType from, SKType* to) { in find_sk()
20 static bool find_c(SKType from, CType* to) { in find_c()
32 #undef CType
/third_party/flutter/skia/src/c/
Dsk_c_from_to.h8 static bool find_sk(CType from, SKType* to) { in find_sk()
20 static bool find_c(SKType from, CType* to) { in find_c()
32 #undef CType
/third_party/vk-gl-cts/external/vulkan-docs/src/appendices/
DVK_NV_cooperative_matrix.adoc51 * AType = BType = fp16 CType = DType = fp16 MxNxK = 16x8x16 scope =
53 * AType = BType = fp16 CType = DType = fp16 MxNxK = 16x8x8 scope =
55 * AType = BType = fp16 CType = DType = fp32 MxNxK = 16x8x16 scope =
57 * AType = BType = fp16 CType = DType = fp32 MxNxK = 16x8x8 scope =
DVK_NV_cooperative_matrix.txt50 * AType = BType = fp16 CType = DType = fp16 MxNxK = 16x8x16 scope =
52 * AType = BType = fp16 CType = DType = fp16 MxNxK = 16x8x8 scope =
54 * AType = BType = fp16 CType = DType = fp32 MxNxK = 16x8x16 scope =
56 * AType = BType = fp16 CType = DType = fp32 MxNxK = 16x8x8 scope =
/third_party/rust/crates/foreign-types/foreign-types/src/
Dlib.rs211 type CType = $ctype:ty;
224 type CType = $ctype;
303 type CType = $ctype;

12345