diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-06-26 18:21:22 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-06-26 18:21:22 +0000 |
commit | 4974f6c6d076d42eef4febd1fccbf89393782a89 (patch) | |
tree | 5f3ce3b20a0d811fdb1ef17fe38031735318ea64 /libclc/generic/lib/integer/rotate.inc | |
parent | 8c1e72f46aaca198423d70c74f079ba99673a365 (diff) | |
download | bcm5719-llvm-4974f6c6d076d42eef4febd1fccbf89393782a89.tar.gz bcm5719-llvm-4974f6c6d076d42eef4febd1fccbf89393782a89.zip |
Add a TODO note.
Patch by: Aaron Watry
llvm-svn: 184998
Diffstat (limited to 'libclc/generic/lib/integer/rotate.inc')
-rw-r--r-- | libclc/generic/lib/integer/rotate.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libclc/generic/lib/integer/rotate.inc b/libclc/generic/lib/integer/rotate.inc index 7792a97fb9d..b34ffedeb7b 100644 --- a/libclc/generic/lib/integer/rotate.inc +++ b/libclc/generic/lib/integer/rotate.inc @@ -21,6 +21,10 @@ _CLC_OVERLOAD _CLC_DEF GENTYPE rotate(GENTYPE x, GENTYPE n){ return ( (((UGENTYPE)x) >> -n) | (x << (GENSIZE + n)) ); } #else + //XXX: There's a lot of __builtin_astype calls to cast everything to + // unsigned ... This should be improved so that if GENTYPE==UGENTYPE, no + // casts are required. + UGENTYPE x_1 = __builtin_astype(x, UGENTYPE); UGENTYPE amt; |