diff options
author | Aaron Watry <awatry@gmail.com> | 2013-03-27 20:34:45 -0500 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2013-03-27 20:34:45 -0500 |
commit | 47645bd47bc9f7029dca4068068d872ab10c6703 (patch) | |
tree | 436a0c39ee18a6740a273c2d0723f72ab5831dd2 | |
parent | 854c7e30063723354765ad6a8d9d6e993c65240f (diff) |
Add a TODO note.
-rw-r--r-- | generic/lib/integer/rotate.inc | 4 |
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; |