}
/** Copy \p SZ elements into a 4-element vector */
-#define COPY_SZ_4V(DST, SZ, SRC) \
-do { \
- switch (SZ) { \
- case 4: (DST)[3] = (SRC)[3]; \
- case 3: (DST)[2] = (SRC)[2]; \
- case 2: (DST)[1] = (SRC)[1]; \
- case 1: (DST)[0] = (SRC)[0]; \
- } \
+#define COPY_SZ_4V(DST, SZ, SRC) \
+do { \
+ switch (SZ) { \
+ case 4: (DST)[3] = (SRC)[3]; /* fallthrough */ \
+ case 3: (DST)[2] = (SRC)[2]; /* fallthrough */ \
+ case 2: (DST)[1] = (SRC)[1]; /* fallthrough */ \
+ case 1: (DST)[0] = (SRC)[0]; /* fallthrough */ \
+ } \
} while(0)
/** Copy \p SZ elements into a homegeneous (4-element) vector, giving