Home
last modified time | relevance | path

Searched refs:enum_type (Results 1 – 2 of 2) sorted by relevance

/openbmc/openbmc/poky/meta/recipes-devtools/gdb/gdb/
H A D0001-Fix-Wenum-constexpr-conversion-in-enum-flags.h.patch51 return (enum_type) ~underlying(e);
54 which we then cast to "enum_type". This cast is Undefined Behavior
148 -/* Note that std::underlying_type<enum_type> is not what we want here,
177 template <typename enum_type>
179 - = std::is_unsigned<typename enum_underlying_type<enum_type>::type>;
180 + = std::is_unsigned<typename std::underlying_type<enum_type>::type>;
192 + the value and then cast the result to the enum_type. This is however
213 +template <typename enum_type, typename = void>
216 + static_assert(std::is_enum<enum_type>::value);
219 +// Specialization that is active only if enum_type can be list-initialized
[all …]
/openbmc/linux/tools/lib/bpf/
H A Dbpf_core_read.h216 #define bpf_core_enum_value_exists(enum_type, enum_value) \ argument
217 __builtin_preserve_enum_value(*(typeof(enum_type) *)enum_value, BPF_ENUMVAL_EXISTS)
227 #define bpf_core_enum_value(enum_type, enum_value) \ argument
228 __builtin_preserve_enum_value(*(typeof(enum_type) *)enum_value, BPF_ENUMVAL_VALUE)