summaryrefslogtreecommitdiff
path: root/generic/include/clc/integer/gentype.inc
diff options
context:
space:
mode:
Diffstat (limited to 'generic/include/clc/integer/gentype.inc')
-rw-r--r--generic/include/clc/integer/gentype.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/generic/include/clc/integer/gentype.inc b/generic/include/clc/integer/gentype.inc
index dd7d061..95a37d5 100644
--- a/generic/include/clc/integer/gentype.inc
+++ b/generic/include/clc/integer/gentype.inc
@@ -1,4 +1,8 @@
+//These 2 defines only change when switching between data sizes or base types to
+//keep this file manageable.
#define GENSIZE 8
+#define SCALAR_GENTYPE char
+
#define GENTYPE char
#define UGENTYPE uchar
#define SGENTYPE char
@@ -49,6 +53,9 @@
#undef UGENTYPE
#undef SGENTYPE
+#undef SCALAR_GENTYPE
+#define SCALAR_GENTYPE uchar
+
#define GENTYPE uchar
#define UGENTYPE uchar
#define SGENTYPE char
@@ -101,6 +108,8 @@
#undef GENSIZE
#define GENSIZE 16
+#undef SCALAR_GENTYPE
+#define SCALAR_GENTYPE short
#define GENTYPE short
#define UGENTYPE ushort
@@ -152,6 +161,9 @@
#undef UGENTYPE
#undef SGENTYPE
+#undef SCALAR_GENTYPE
+#define SCALAR_GENTYPE ushort
+
#define GENTYPE ushort
#define UGENTYPE ushort
#define SGENTYPE short
@@ -204,6 +216,8 @@
#undef GENSIZE
#define GENSIZE 32
+#undef SCALAR_GENTYPE
+#define SCALAR_GENTYPE int
#define GENTYPE int
#define UGENTYPE uint
@@ -255,6 +269,9 @@
#undef UGENTYPE
#undef SGENTYPE
+#undef SCALAR_GENTYPE
+#define SCALAR_GENTYPE uint
+
#define GENTYPE uint
#define UGENTYPE uint
#define SGENTYPE int
@@ -307,6 +324,8 @@
#undef GENSIZE
#define GENSIZE 64
+#undef SCALAR_GENTYPE
+#define SCALAR_GENTYPE long
#define GENTYPE long
#define UGENTYPE ulong
@@ -358,6 +377,9 @@
#undef UGENTYPE
#undef SGENTYPE
+#undef SCALAR_GENTYPE
+#define SCALAR_GENTYPE ulong
+
#define GENTYPE ulong
#define UGENTYPE ulong
#define SGENTYPE long
@@ -409,4 +431,5 @@
#undef SGENTYPE
#undef GENSIZE
+#undef SCALAR_GENTYPE
#undef BODY