[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work1) now available
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: Fri, 15 Jan 2010 16:38:42 +0100
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.