summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-03-27 20:34:45 -0500
committerTom Stellard <thomas.stellard@amd.com>2013-04-08 07:12:55 -0700
commit98c08df7f0007a3d628b5bd30c9d0888bc9e972c (patch)
treed301097602afc90aa07a45b42aa41dcc34adfecf
parent825f94136c4a083a860a7ae7f76527aea8845e35 (diff)
Add a TODO note.
-rw-r--r--generic/lib/integer/rotate.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/lib/integer/rotate.inc b/generic/lib/integer/rotate.inc
index 7792a97..b34ffed 100644
--- a/generic/lib/integer/rotate.inc
+++ b/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;