summaryrefslogtreecommitdiff
path: root/generic/include
diff options
context:
space:
mode:
Diffstat (limited to 'generic/include')
-rw-r--r--generic/include/clc/clc.h1
-rw-r--r--generic/include/clc/integer/gentype.inc11
-rw-r--r--generic/include/clc/integer/rotate.h2
-rw-r--r--generic/include/clc/integer/rotate.inc1
4 files changed, 15 insertions, 0 deletions
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index c3d7d59..72f518a 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -63,6 +63,7 @@
#include <clc/integer/abs.h>
#include <clc/integer/abs_diff.h>
#include <clc/integer/add_sat.h>
+#include <clc/integer/rotate.h>
#include <clc/integer/sub_sat.h>
/* 6.11.2 and 6.11.3 Shared Integer/Math Functions */
diff --git a/generic/include/clc/integer/gentype.inc b/generic/include/clc/integer/gentype.inc
index 0b32efd..005b9af 100644
--- a/generic/include/clc/integer/gentype.inc
+++ b/generic/include/clc/integer/gentype.inc
@@ -1,3 +1,4 @@
+#define GENSIZE 8
#define GENTYPE char
#define UGENTYPE uchar
#define SGENTYPE char
@@ -94,6 +95,9 @@
#undef UGENTYPE
#undef SGENTYPE
+#undef GENSIZE
+#define GENSIZE 16
+
#define GENTYPE short
#define UGENTYPE ushort
#define SGENTYPE short
@@ -190,6 +194,9 @@
#undef UGENTYPE
#undef SGENTYPE
+#undef GENSIZE
+#define GENSIZE 32
+
#define GENTYPE int
#define UGENTYPE uint
#define SGENTYPE int
@@ -286,6 +293,9 @@
#undef UGENTYPE
#undef SGENTYPE
+#undef GENSIZE
+#define GENSIZE 64
+
#define GENTYPE long
#define UGENTYPE ulong
#define SGENTYPE long
@@ -382,4 +392,5 @@
#undef UGENTYPE
#undef SGENTYPE
+#undef GENSIZE
#undef BODY
diff --git a/generic/include/clc/integer/rotate.h b/generic/include/clc/integer/rotate.h
new file mode 100644
index 0000000..e163bc8
--- /dev/null
+++ b/generic/include/clc/integer/rotate.h
@@ -0,0 +1,2 @@
+#define BODY <clc/integer/rotate.inc>
+#include <clc/integer/gentype.inc>
diff --git a/generic/include/clc/integer/rotate.inc b/generic/include/clc/integer/rotate.inc
new file mode 100644
index 0000000..5720e1c
--- /dev/null
+++ b/generic/include/clc/integer/rotate.inc
@@ -0,0 +1 @@
+_CLC_OVERLOAD _CLC_DECL GENTYPE rotate(GENTYPE x, GENTYPE y);