diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-06-26 18:21:18 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-06-26 18:21:18 +0000 |
commit | 160ef139d86fe26f383518a1ef84b9a216cf207e (patch) | |
tree | 4a321d012bd1903d1316f690ddbeff9530f08f00 /generic/include | |
parent | f1bf4b8307660f83653a5cab6f6fe1567a58f4a1 (diff) |
Simplify rotate implementation a bit..
Much more understandable/readable as a result, and probably more efficient.
Patch by: Aaron Watry
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@184997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'generic/include')
-rw-r--r-- | generic/include/clc/integer/gentype.inc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/generic/include/clc/integer/gentype.inc b/generic/include/clc/integer/gentype.inc index 005b9af..dd7d061 100644 --- a/generic/include/clc/integer/gentype.inc +++ b/generic/include/clc/integer/gentype.inc @@ -2,7 +2,9 @@ #define GENTYPE char #define UGENTYPE uchar #define SGENTYPE char +#define SCALAR 1 #include BODY +#undef SCALAR #undef GENTYPE #undef UGENTYPE #undef SGENTYPE @@ -50,7 +52,9 @@ #define GENTYPE uchar #define UGENTYPE uchar #define SGENTYPE char +#define SCALAR 1 #include BODY +#undef SCALAR #undef GENTYPE #undef UGENTYPE #undef SGENTYPE @@ -101,7 +105,9 @@ #define GENTYPE short #define UGENTYPE ushort #define SGENTYPE short +#define SCALAR 1 #include BODY +#undef SCALAR #undef GENTYPE #undef UGENTYPE #undef SGENTYPE @@ -149,7 +155,9 @@ #define GENTYPE ushort #define UGENTYPE ushort #define SGENTYPE short +#define SCALAR 1 #include BODY +#undef SCALAR #undef GENTYPE #undef UGENTYPE #undef SGENTYPE @@ -200,7 +208,9 @@ #define GENTYPE int #define UGENTYPE uint #define SGENTYPE int +#define SCALAR 1 #include BODY +#undef SCALAR #undef GENTYPE #undef UGENTYPE #undef SGENTYPE @@ -248,7 +258,9 @@ #define GENTYPE uint #define UGENTYPE uint #define SGENTYPE int +#define SCALAR 1 #include BODY +#undef SCALAR #undef GENTYPE #undef UGENTYPE #undef SGENTYPE @@ -299,7 +311,9 @@ #define GENTYPE long #define UGENTYPE ulong #define SGENTYPE long +#define SCALAR 1 #include BODY +#undef SCALAR #undef GENTYPE #undef UGENTYPE #undef SGENTYPE @@ -347,7 +361,9 @@ #define GENTYPE ulong #define UGENTYPE ulong #define SGENTYPE long +#define SCALAR 1 #include BODY +#undef SCALAR #undef GENTYPE #undef UGENTYPE #undef SGENTYPE |