lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2010/1/15 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>> - Shift and rotate instructions need to be explicitly named.
>
> We were already considering changing that. (But both directions will
> treat a negative shift as "shift in the other direction".)

I probably don't have a very relevant opinion here, but it would be
clearer to me to have direction be expressed in terms of msb/lsb
rather than left/right. In the end the shift input and result are
numbers, and while I don't know the bit endianness of numbers (and
AFAICT it's not relevant and neither exposed by the API), msb/lsb on
the other hand do make sense.