diff options
| author | Tyge Løvset <[email protected]> | 2023-01-20 19:50:52 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-01-20 19:50:52 +0100 |
| commit | e97d06f95a65edd4fdee53555398f7b636a72ab5 (patch) | |
| tree | 9a3c635345cb2f1283bbbede0dd3efafbf90347e /include | |
| parent | 9e6b763fb28c783b8d856442a6929026257bff92 (diff) | |
| download | STC-modified-e97d06f95a65edd4fdee53555398f7b636a72ab5.tar.gz STC-modified-e97d06f95a65edd4fdee53555398f7b636a72ab5.zip | |
Renamed cspan_at2 .. at4 to cspan_subdim2 .. Improved cspan docs.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/cspan.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/stc/cspan.h b/include/stc/cspan.h index 88e10b07..96439c64 100644 --- a/include/stc/cspan.h +++ b/include/stc/cspan.h @@ -120,19 +120,19 @@ int demo2() { #define cspan_subspan4(self, offset, count) \ {.data=cspan_at(self, offset, 0, 0, 0), .dim={count, (self)->dim[1], (self)->dim[2], (self)->dim[3]}} -#define cspan_at4(...) c_MACRO_OVERLOAD(cspan_at4, __VA_ARGS__) -#define cspan_at3(...) c_MACRO_OVERLOAD(cspan_at3, __VA_ARGS__) -#define cspan_at2(self, x) \ +#define cspan_subdim4(...) c_MACRO_OVERLOAD(cspan_subdim4, __VA_ARGS__) +#define cspan_subdim3(...) c_MACRO_OVERLOAD(cspan_subdim3, __VA_ARGS__) +#define cspan_subdim2(self, x) \ {.data=cspan_at(self, x, 0), .dim={(self)->dim[1]}} -#define cspan_at32(self, x) \ +#define cspan_subdim32(self, x) \ {.data=cspan_at(self, x, 0, 0), .dim={(self)->dim[1], (self)->dim[2]}} -#define cspan_at33(self, x, y) \ +#define cspan_subdim33(self, x, y) \ {.data=cspan_at(self, x, y, 0), .dim={(self)->dim[2]}} -#define cspan_at42(self, x) \ +#define cspan_subdim42(self, x) \ {.data=cspan_at(self, x, 0, 0, 0), .dim={(self)->dim[1], (self)->dim[2], (self)->dim[3]}} -#define cspan_at43(self, x, y) \ +#define cspan_subdim43(self, x, y) \ {.data=cspan_at(self, x, y, 0, 0), .dim={(self)->dim[2], (self)->dim[3]}} -#define cspan_at44(self, x, y, z) \ +#define cspan_subdim44(self, x, y, z) \ {.data=cspan_at(self, x, y, z, 0), .dim={(self)->dim[3]}} STC_INLINE size_t _cspan_i1(const uint32_t dim[1], uint32_t x) |
