summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cspan.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-23 17:15:20 +0100
committerTyge Løvset <[email protected]>2023-01-23 17:15:20 +0100
commitc2d862f377f9bf2f276db7ba41ea835117603881 (patch)
treedf957689e114b7b80df69a2f67a9eca3e866915e /include/stc/cspan.h
parentd23fb483c4fc98a68eb9cdb0d544002c26accb0a (diff)
downloadSTC-modified-c2d862f377f9bf2f276db7ba41ea835117603881.tar.gz
STC-modified-c2d862f377f9bf2f276db7ba41ea835117603881.zip
Changed c_OVERLOADMACRO() internally.
Diffstat (limited to 'include/stc/cspan.h')
-rw-r--r--include/stc/cspan.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/stc/cspan.h b/include/stc/cspan.h
index 502f1b71..5ba408a8 100644
--- a/include/stc/cspan.h
+++ b/include/stc/cspan.h
@@ -128,15 +128,15 @@ int demo2() {
#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_subdim32(self, x) \
+#define cspan_subdim3_2(self, x) \
{.data=cspan_at(self, x, 0, 0), .dim={(self)->dim[1], (self)->dim[2]}}
-#define cspan_subdim33(self, x, y) \
+#define cspan_subdim3_3(self, x, y) \
{.data=cspan_at(self, x, y, 0), .dim={(self)->dim[2]}}
-#define cspan_subdim42(self, x) \
+#define cspan_subdim4_2(self, x) \
{.data=cspan_at(self, x, 0, 0, 0), .dim={(self)->dim[1], (self)->dim[2], (self)->dim[3]}}
-#define cspan_subdim43(self, x, y) \
+#define cspan_subdim4_3(self, x, y) \
{.data=cspan_at(self, x, y, 0, 0), .dim={(self)->dim[2], (self)->dim[3]}}
-#define cspan_subdim44(self, x, y, z) \
+#define cspan_subdim4_4(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)