diff options
Diffstat (limited to 'generic/lib/integer')
-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; |