/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/ |
D | bit.h | 21 template <typename Enum> 22 Enum operator|(Enum lhs, Enum rhs) { 23 static_assert(std::is_enum<Enum>::value, "template parameter is not an enum type"); 24 using underlying = typename std::underlying_type<Enum>::type; 25 return static_cast<Enum>(static_cast<underlying>(lhs) | static_cast<underlying>(rhs)); 28 template <typename Enum> 29 Enum operator&(Enum lhs, Enum rhs) { 30 static_assert(std::is_enum<Enum>::value, "template parameter is not an enum type"); 31 using underlying = typename std::underlying_type<Enum>::type; 32 return static_cast<Enum>(static_cast<underlying>(lhs) & static_cast<underlying>(rhs)); [all …]
|
/third_party/vk-gl-cts/framework/opengl/ |
D | gluStrUtilPrototypes.inl | 82 inline tcu::Format::Enum<int, 2> getErrorStr (int value) { return tcu::Format::Enum<int, 2>… 83 inline tcu::Format::Enum<int, 2> getTypeStr (int value) { return tcu::Format::Enum<int, 2>(… 84 inline tcu::Format::Enum<int, 2> getParamQueryStr (int value) { return tcu::Format::Enum<int,… 85 inline tcu::Format::Enum<int, 2> getProgramParamStr (int value) { return tcu::Format::Enum<in… 86 inline tcu::Format::Enum<int, 2> getUniformParamStr (int value) { return tcu::Format::Enum<in… 87 inline tcu::Format::Enum<int, 2> getFramebufferAttachmentStr (int value) { return tcu::Format::… 88 inline tcu::Format::Enum<int, 2> getFramebufferAttachmentParameterStr (int value) { return tcu::Fo… 89 inline tcu::Format::Enum<int, 2> getFramebufferTargetStr (int value) { return tcu::Format::Enu… 90 inline tcu::Format::Enum<int, 2> getFramebufferStatusStr (int value) { return tcu::Format::Enu… 91 inline tcu::Format::Enum<int, 2> getFramebufferAttachmentTypeStr (int value) { return tcu::Forma… [all …]
|
/third_party/spirv-tools/test/ |
D | ext_inst.debuginfo_test.cpp | 66 #define CASE_0(Enum) \ argument 68 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, "", {} \ 71 #define CASE_ILL(Enum, L0, L1) \ argument 73 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4 " #L0 " " #L1, { \ 78 #define CASE_IL(Enum, L0) \ argument 80 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4 " #L0, { 4, L0 } \ 83 #define CASE_I(Enum) \ argument 85 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4", { 4 } \ 88 #define CASE_II(Enum) \ argument 90 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4 %5", { 4, 5 } \ [all …]
|
D | ext_inst.cldebug100_test.cpp | 174 #define CASE_0(Enum) \ argument 176 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, "", {} \ 179 #define CASE_ILL(Enum, L0, L1) \ argument 181 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, \ 187 #define CASE_IL(Enum, L0) \ argument 189 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, " %4 " #L0, { \ 194 #define CASE_I(Enum) \ argument 196 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, " %4", { 4 } \ 199 #define CASE_II(Enum) \ argument 201 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, " %4 %5", { 4, 5 } \ [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
D | ext_inst.debuginfo_test.cpp | 66 #define CASE_0(Enum) \ argument 68 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, "", {} \ 71 #define CASE_ILL(Enum, L0, L1) \ argument 73 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4 " #L0 " " #L1, { \ 78 #define CASE_IL(Enum, L0) \ argument 80 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4 " #L0, { 4, L0 } \ 83 #define CASE_I(Enum) \ argument 85 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4", { 4 } \ 88 #define CASE_II(Enum) \ argument 90 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4 %5", { 4, 5 } \ [all …]
|
D | ext_inst.cldebug100_test.cpp | 174 #define CASE_0(Enum) \ argument 176 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, "", {} \ 179 #define CASE_ILL(Enum, L0, L1) \ argument 181 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, \ 187 #define CASE_IL(Enum, L0) \ argument 189 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, " %4 " #L0, { \ 194 #define CASE_I(Enum) \ argument 196 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, " %4", { 4 } \ 199 #define CASE_II(Enum) \ argument 201 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, " %4 %5", { 4, 5 } \ [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/ |
D | ext_inst.debuginfo_test.cpp | 66 #define CASE_0(Enum) \ argument 68 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, "", {} \ 71 #define CASE_ILL(Enum, L0, L1) \ argument 73 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4 " #L0 " " #L1, { \ 78 #define CASE_IL(Enum, L0) \ argument 80 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4 " #L0, { 4, L0 } \ 83 #define CASE_I(Enum) \ argument 85 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4", { 4 } \ 88 #define CASE_II(Enum) \ argument 90 uint32_t(DebugInfoDebug##Enum), "Debug" #Enum, " %4 %5", { 4, 5 } \ [all …]
|
D | ext_inst.cldebug100_test.cpp | 174 #define CASE_0(Enum) \ argument 176 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, "", {} \ 179 #define CASE_ILL(Enum, L0, L1) \ argument 181 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, \ 187 #define CASE_IL(Enum, L0) \ argument 189 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, " %4 " #L0, { \ 194 #define CASE_I(Enum) \ argument 196 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, " %4", { 4 } \ 199 #define CASE_II(Enum) \ argument 201 uint32_t(OpenCLDebugInfo100Debug##Enum), EPREFIX #Enum, " %4 %5", { 4, 5 } \ [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | unionOfEnumInference.types | 4 enum Enum { A, B, C } 5 >Enum : Enum 6 >A : Enum.A 7 >B : Enum.B 8 >C : Enum.C 10 interface Interface<T extends Enum> { 15 function foo<T extends Enum>(x: Interface<T>) { } 16 >foo : <T extends Enum>(x: Interface<T>) => void 19 function bar(x: Interface<Enum.A | Enum.B> | Interface<Enum.C>) { 20 >bar : (x: Interface<Enum.A | Enum.B> | Interface<Enum.C>) => void [all …]
|
D | unionOfEnumInference.js | 4 enum Enum { A, B, C } 6 interface Interface<T extends Enum> { 10 function foo<T extends Enum>(x: Interface<T>) { } 12 function bar(x: Interface<Enum.A | Enum.B> | Interface<Enum.C>) { 20 var Enum; variable 21 (function (Enum) { argument 22 Enum[Enum["A"] = 0] = "A"; 23 Enum[Enum["B"] = 1] = "B"; 24 Enum[Enum["C"] = 2] = "C"; 25 })(Enum || (Enum = {}));
|
D | unionOfEnumInference.symbols | 4 enum Enum { A, B, C } 5 >Enum : Symbol(Enum, Decl(unionOfEnumInference.ts, 0, 0)) 6 >A : Symbol(Enum.A, Decl(unionOfEnumInference.ts, 2, 11)) 7 >B : Symbol(Enum.B, Decl(unionOfEnumInference.ts, 2, 14)) 8 >C : Symbol(Enum.C, Decl(unionOfEnumInference.ts, 2, 17)) 10 interface Interface<T extends Enum> { 13 >Enum : Symbol(Enum, Decl(unionOfEnumInference.ts, 0, 0)) 20 function foo<T extends Enum>(x: Interface<T>) { } 23 >Enum : Symbol(Enum, Decl(unionOfEnumInference.ts, 0, 0)) 28 function bar(x: Interface<Enum.A | Enum.B> | Interface<Enum.C>) { [all …]
|
D | enumOperations.types | 2 enum Enum { None = 0 } 3 >Enum : Enum 4 >None : Enum.None 7 var enumType: Enum = Enum.None; 8 >enumType : Enum 9 >Enum.None : Enum 10 >Enum : typeof Enum 11 >None : Enum 23 >enumType : Enum 33 >enumType : Enum [all …]
|
D | enumDeclarationEmitInitializerHasImport.js | 4 export enum Enum { 11 export const value = provider.Enum.Value1; 16 exports.Enum = void 0; 17 var Enum; variable 18 (function (Enum) { argument 19 Enum[Enum["Value1"] = 0] = "Value1"; 20 Enum[Enum["Value2"] = 1] = "Value2"; 21 })(Enum = exports.Enum || (exports.Enum = {})); 27 exports.value = provider.Enum.Value1; 31 export declare enum Enum { [all …]
|
D | importedEnumMemberMergedWithExportedAliasIsError.js | 4 export enum Enum { 9 import {Enum} from "./enum"; 11 import EnumA = Enum.A; 19 exports.Enum = void 0; 20 var Enum; variable 21 (function (Enum) { argument 22 Enum[Enum["A"] = 0] = "A"; 23 Enum[Enum["B"] = 1] = "B"; 24 })(Enum = exports.Enum || (exports.Enum = {}));
|
D | enumDeclarationEmitInitializerHasImport.types | 5 export const value = provider.Enum.Value1; 6 >value : provider.Enum.Value1 7 >provider.Enum.Value1 : provider.Enum.Value1 8 >provider.Enum : typeof provider.Enum 10 >Enum : typeof provider.Enum 11 >Value1 : provider.Enum.Value1 14 export enum Enum { 15 >Enum : Enum 18 >Value1 : Enum.Value1 21 >Value2 : Enum.Value2
|
D | importedEnumMemberMergedWithExportedAliasIsError.types | 2 export enum Enum { 3 >Enum : Enum 6 >A : Enum.A 9 >B : Enum.B 12 import {Enum} from "./enum"; 13 >Enum : typeof Enum 15 import EnumA = Enum.A; 16 >EnumA : Enum.A 17 >Enum : Enum 18 >A : Enum.A
|
D | enumDeclarationEmitInitializerHasImport.symbols | 5 export const value = provider.Enum.Value1; 7 >provider.Enum.Value1 : Symbol(provider.Enum.Value1, Decl(provider.ts, 0, 18)) 8 >provider.Enum : Symbol(provider.Enum, Decl(provider.ts, 0, 0)) 10 >Enum : Symbol(provider.Enum, Decl(provider.ts, 0, 0)) 11 >Value1 : Symbol(provider.Enum.Value1, Decl(provider.ts, 0, 18)) 14 export enum Enum { 15 >Enum : Symbol(Enum, Decl(provider.ts, 0, 0)) 18 >Value1 : Symbol(Enum.Value1, Decl(provider.ts, 0, 18)) 21 >Value2 : Symbol(Enum.Value2, Decl(provider.ts, 1, 11))
|
D | importedEnumMemberMergedWithExportedAliasIsError.symbols | 2 export enum Enum { 3 >Enum : Symbol(Enum, Decl(enum.ts, 0, 0)) 6 >A : Symbol(Enum.A, Decl(enum.ts, 0, 18)) 9 >B : Symbol(Enum.B, Decl(enum.ts, 1, 6)) 12 import {Enum} from "./enum"; 13 >Enum : Symbol(Enum, Decl(alias.ts, 0, 8)) 15 import EnumA = Enum.A; 17 >Enum : Symbol(Enum, Decl(alias.ts, 0, 8)) 18 >A : Symbol(Enum.A, Decl(enum.ts, 0, 18))
|
D | classStaticInitializersUsePropertiesBeforeDeclaration.types | 5 static enumMember = Enum.A; 6 >enumMember : Enum 7 >Enum.A : Enum 8 >Enum : typeof Enum 9 >A : Enum 24 enum Enum { 25 >Enum : Enum 28 >A : Enum.A
|
D | enumOperations.js | 2 enum Enum { None = 0 } 3 var enumType: Enum = Enum.None; 20 var Enum; variable 21 (function (Enum) { argument 22 Enum[Enum["None"] = 0] = "None"; 23 })(Enum || (Enum = {})); 24 var enumType = Enum.None;
|
D | classStaticInitializersUsePropertiesBeforeDeclaration.js | 3 static enumMember = Enum.A; 8 enum Enum { 25 Foo.enumMember = Enum.A; 30 var Enum; variable 31 (function (Enum) { argument 32 Enum[Enum["A"] = 0] = "A"; 33 })(Enum || (Enum = {}));
|
/third_party/mesa3d/src/util/ |
D | enum_operators.h | 30 #define MESA_DEFINE_CPP_ENUM_BINARY_OPERATOR(Enum, op) \ argument 33 Enum operator op (Enum a, Enum b) \ 35 using IntType = std::underlying_type_t<Enum>; \ 38 return static_cast<Enum>(ua op ub); \ 42 Enum& operator op##= (Enum &a, Enum b) \ 44 using IntType = std::underlying_type_t<Enum>; \ 48 a = static_cast<Enum>(ua); \ 53 #define MESA_DEFINE_CPP_ENUM_UNARY_OPERATOR(Enum, op) \ argument 56 Enum operator op (Enum a) \ 58 using IntType = std::underlying_type_t<Enum>; \ [all …]
|
/third_party/vk-gl-cts/framework/egl/ |
D | egluStrUtilPrototypes.inl | 29 inline tcu::Format::Enum<int, 2> getBooleanStr (int value) { return tcu::Format::Enum<int, 2>(g… 30 inline tcu::Format::Enum<int, 2> getBoolDontCareStr (int value) { return tcu::Format::Enum<int, … 31 inline tcu::Format::Enum<int, 2> getAPIStr (int value) { return tcu::Format::Enum<int, 2>(getA… 32 inline tcu::Format::Enum<int, 2> getErrorStr (int value) { return tcu::Format::Enum<int, 2>(ge… 33 inline tcu::Format::Enum<int, 2> getContextAttribStr (int value) { return tcu::Format::Enum<int,… 34 inline tcu::Format::Enum<int, 2> getConfigAttribStr (int value) { return tcu::Format::Enum<int, … 35 inline tcu::Format::Enum<int, 2> getSurfaceAttribStr (int value) { return tcu::Format::Enum<int,… 36 inline tcu::Format::Enum<int, 2> getYuvOrderStr (int value) { return tcu::Format::Enum<int, 2>(… 37 inline tcu::Format::Enum<int, 2> getYuvPlaneBppStr (int value) { return tcu::Format::Enum<int, 2… 38 inline tcu::Format::Enum<int, 2> getColorComponentTypeStr (int value) { return tcu::Format::Enum<i… [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Frontend/OpenMP/ |
D | OMPConstants.h | 32 #define OMP_DIRECTIVE(Enum, ...) Enum, argument 40 #define OMP_DIRECTIVE(Enum, ...) constexpr auto Enum = omp::Directive::Enum; argument 45 #define OMP_RTL(Enum, ...) Enum, argument 49 #define OMP_RTL(Enum, ...) constexpr auto Enum = omp::RuntimeFunction::Enum; argument 54 #define OMP_PROC_BIND_KIND(Enum, Str, Value) Enum = Value, argument 58 #define OMP_PROC_BIND_KIND(Enum, ...) \ argument 59 constexpr auto Enum = omp::ProcBindKind::Enum; 65 #define OMP_IDENT_FLAG(Enum, Str, Value) Enum = Value, argument 70 #define OMP_IDENT_FLAG(Enum, ...) constexpr auto Enum = omp::IdentFlag::Enum; argument
|
/third_party/flatbuffers/tests/rust_usage_test/tests/flexbuffers_tests/ |
D | qc_serious.rs | 8 enum Enum { enum 35 impl Arbitrary for Enum { implementation 38 0 => Enum::Unit, in arbitrary() 39 1 => Enum::U8(<u8>::arbitrary(g)), in arbitrary() 40 2 => Enum::U16(<u16>::arbitrary(g)), in arbitrary() 41 3 => Enum::U32(<u32>::arbitrary(g)), in arbitrary() 42 4 => Enum::U64(<u64>::arbitrary(g)), in arbitrary() 45 Enum::Us(a, b, c, d) in arbitrary() 47 6 => Enum::I8(<i8>::arbitrary(g)), in arbitrary() 48 7 => Enum::I16(<i16>::arbitrary(g)), in arbitrary() [all …]
|