@@ -129,17 +129,22 @@ union alignas(sizeof(T) * N) VectorTypeImpl {
129129// Helper template to get the appropriate vector type for a given element type and count
130130template <typename T, int N>
131131struct VectorTypeHelper {
132- using type = VectorTypeImpl<T, N, typename std::conditional_t <N * sizeof (T) == 4 , uint32_t ,
133- typename std::conditional_t <N * sizeof (T) == 8 , uint2, uint4>>>;
132+ using type =
133+ VectorTypeImpl<T, N,
134+ typename std::conditional_t <N * sizeof (T) == 4 , uint32_t ,
135+ typename std::conditional_t <N * sizeof (T) == 8 , uint2, uint4>>>;
134136};
135137
136138// / Vector type - clean user interface (automatically selects appropriate storage type)
137139template <typename T, int N>
138140using VectorType = typename VectorTypeHelper<T, N>::type;
139141
140142// Macro to define specialization AND alias in one go
141- #define DEFINE_VEC (Alias, T, N, Storage ) \
142- template <> struct VectorTypeHelper <T, N> { using type = VectorTypeImpl<T, N, Storage>; }; \
143+ #define DEFINE_VEC (Alias, T, N, Storage ) \
144+ template <> \
145+ struct VectorTypeHelper <T, N> { \
146+ using type = VectorTypeImpl<T, N, Storage>; \
147+ }; \
143148 using Alias = VectorType<T, N>
144149
145150DEFINE_VEC (i32x1, int32_t , 1 , int32_t );
0 commit comments