File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -79,22 +79,23 @@ struct reference_wrapper : enable_if_t<
79
79
// TODO: partial specializations for T being a special SPIR-V type for image ops, etc.
80
80
81
81
82
- #else // CPP
83
-
84
-
85
- #define ALIAS_STD (NAME,OP) template<typename T> struct NAME : std::NAME<T> { \
86
- using type_t = T;
87
- #else
88
82
#define ALIAS_STD (NAME,OP) template<typename T> struct NAME { \
89
83
using type_t = T; \
90
84
\
91
85
T operator ()(NBL_CONST_REF_ARG (T) lhs, NBL_CONST_REF_ARG (T) rhs) \
92
86
{ \
93
87
return lhs OP rhs; \
94
88
}
95
- #endif
96
89
97
90
91
+ #else // CPP
92
+
93
+
94
+ #define ALIAS_STD (NAME,OP) template<typename T> struct NAME : std::NAME<T> { \
95
+ using type_t = T;
96
+
97
+ #endif
98
+
98
99
ALIAS_STD (bit_and,&)
99
100
using scalar_t = typename scalar_type<T>::type;
100
101
using bitfield_t = typename unsigned_integer_of_size<sizeof (scalar_t)>::type;
You can’t perform that action at this time.
0 commit comments