diff options
author | Aaron Watry <awatry@gmail.com> | 2013-03-27 20:47:53 -0500 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-04-08 07:12:55 -0700 |
commit | 86ade207e7792d39ec7af60a6bc62106e2dd7f3c (patch) | |
tree | 6ae0cfe66965ef0ee47cf883342d38fdf34d6d48 | |
parent | 98c08df7f0007a3d628b5bd30c9d0888bc9e972c (diff) |
Add a another TODO note.
-rw-r--r-- | generic/lib/integer/rotate.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/lib/integer/rotate.inc b/generic/lib/integer/rotate.inc index b34ffed..2aa6cc9 100644 --- a/generic/lib/integer/rotate.inc +++ b/generic/lib/integer/rotate.inc @@ -27,6 +27,9 @@ _CLC_OVERLOAD _CLC_DEF GENTYPE rotate(GENTYPE x, GENTYPE n){ UGENTYPE x_1 = __builtin_astype(x, UGENTYPE); + //XXX: Is (UGENTYPE >> SGENTYPE) | (UGENTYPE << SGENTYPE) legal? + // If so, then combine the amt and shifts into a single set of statements + UGENTYPE amt; amt = (n < (GENTYPE)0 ? __builtin_astype((GENTYPE)0-n, UGENTYPE) : (UGENTYPE)0); x_1 = (x_1 >> amt) | (x_1 << ((UGENTYPE)GENSIZE - amt)); |