summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2013-03-27 20:34:45 -0500
committerAaron Watry <awatry@gmail.com>2013-03-27 20:34:45 -0500
commit47645bd47bc9f7029dca4068068d872ab10c6703 (patch)
tree436a0c39ee18a6740a273c2d0723f72ab5831dd2
parent854c7e30063723354765ad6a8d9d6e993c65240f (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;