# HG changeset patch # User Paper # Date 1729574928 14400 # Node ID 1d9d2308c1d24f90d9d1197f31c808c9d31ed7f4 # Parent 02a517e4c4920802f62e6463caa1ebe7c8a72c88 *: fixup formatting ew diff -r 02a517e4c492 -r 1d9d2308c1d2 include/vec/impl/gcc.h --- a/include/vec/impl/gcc.h Tue Oct 22 01:22:41 2024 -0400 +++ b/include/vec/impl/gcc.h Tue Oct 22 01:28:48 2024 -0400 @@ -30,8 +30,8 @@ #define VEC_DEFINE_OPERATIONS(sign, bits, size) \ static inline VEC_ALWAYS_INLINE v##sign##int##bits##x##size v##sign##int##bits##x##size##_splat(sign##int##bits##_t x) \ { \ - v##sign##int##bits##x##size vec; \ - for (int i = 0; i < size; i++) vec[i] = x; \ + v##sign##int##bits##x##size vec; \ + for (int i = 0; i < size; i++) vec[i] = x; \ return vec; \ } \ \ diff -r 02a517e4c492 -r 1d9d2308c1d2 include/vec/impl/generic.h --- a/include/vec/impl/generic.h Tue Oct 22 01:22:41 2024 -0400 +++ b/include/vec/impl/generic.h Tue Oct 22 01:28:48 2024 -0400 @@ -28,48 +28,48 @@ #include #define VEC_DEFINE_STRUCT(sign, bits, size) \ - typedef struct { \ - sign##int##bits##_t arr[size]; \ - } v##sign##int##bits##x##size; + typedef struct { \ + sign##int##bits##_t arr[size]; \ + } v##sign##int##bits##x##size; #define VEC_DEFINE_OPERATIONS(sign, bits, size) \ static inline VEC_ALWAYS_INLINE v##sign##int##bits##x##size v ## sign ## int ## bits ## x ## size ## _splat(sign ## int ## bits ## _t x) \ { \ - v##sign##int##bits##x##size vec; \ - for (int i = 0; i < size; i++) vec.arr[i] = x; \ + v##sign##int##bits##x##size vec; \ + for (int i = 0; i < size; i++) vec.arr[i] = x; \ return vec; \ } \ \ static inline VEC_ALWAYS_INLINE v ## sign ## int ## bits ## x ## size v ## sign ## int ## bits ## x ## size ## _load(const sign ## int ## bits ## _t in[size]) \ { \ - v##sign##int##bits##x##size vec; \ - memcpy(vec.arr, in, sizeof(vec.arr)); \ + v##sign##int##bits##x##size vec; \ + memcpy(vec.arr, in, sizeof(vec.arr)); \ return vec; \ } \ \ static inline VEC_ALWAYS_INLINE void v ## sign ## int ## bits ## x ## size ## _store(v ## sign ## int ## bits ## x ## size vec, sign ## int ## bits ## _t out[size]) \ { \ - memcpy(out, vec.arr, sizeof(vec.arr)); \ + memcpy(out, vec.arr, sizeof(vec.arr)); \ } \ \ static inline VEC_ALWAYS_INLINE v ## sign ## int ## bits ## x ## size v ## sign ## int ## bits ## x ## size ## _add(v ## sign ## int ## bits ## x ## size vec1, v ## sign ## int ## bits ## x ## size vec2) \ { \ - v##sign##int##bits##x##size vec; \ - for (int i = 0; i < size; i++) vec.arr[i] = vec1.arr[i] + vec2.arr[i]; \ + v##sign##int##bits##x##size vec; \ + for (int i = 0; i < size; i++) vec.arr[i] = vec1.arr[i] + vec2.arr[i]; \ return vec; \ } \ \ static inline VEC_ALWAYS_INLINE v ## sign ## int ## bits ## x ## size v ## sign ## int ## bits ## x ## size ## _sub(v ## sign ## int ## bits ## x ## size vec1, v ## sign ## int ## bits ## x ## size vec2) \ { \ - v##sign##int##bits##x##size vec; \ - for (int i = 0; i < size; i++) vec.arr[i] = vec1.arr[i] - vec2.arr[i]; \ + v##sign##int##bits##x##size vec; \ + for (int i = 0; i < size; i++) vec.arr[i] = vec1.arr[i] - vec2.arr[i]; \ return vec; \ } \ \ static inline VEC_ALWAYS_INLINE v ## sign ## int ## bits ## x ## size v ## sign ## int ## bits ## x ## size ## _mul(v ## sign ## int ## bits ## x ## size vec1, v ## sign ## int ## bits ## x ## size vec2) \ { \ - v##sign##int##bits##x##size vec; \ - for (int i = 0; i < size; i++) vec.arr[i] = vec1.arr[i] * vec2.arr[i]; \ + v##sign##int##bits##x##size vec; \ + for (int i = 0; i < size; i++) vec.arr[i] = vec1.arr[i] * vec2.arr[i]; \ return vec; \ }