[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: number of bits of int type
- From: Nilson <nilson.brazil@...>
- Date: Sat, 2 Oct 2010 22:40:43 -0300
On Sat, Oct 2, 2010 at 1:27 PM, liam mail <firstname.lastname@example.org> wrote:
> On 2 October 2010 15:58, Leo Razoumov <email@example.com> wrote:
>> On 2010-09-28, Nilson <firstname.lastname@example.org> wrote:
>> > Hi everyone,
>> > Someone knows if Lua can be or was used in a platform where the ***
>> > int type *** has less than 16 bits or is not a 8 bits multiple?
>> Can you, please, give an example of a currently produced platform
>> with the int type being not a multiple of 8 bits.
> I would like to know how a system which has an int of less than 16 bits
> stores values as it is required (C99) to be able to store -32767 and IIRC
> is required to use one or two's complement storage.
I really would appreciate if someone of the Lua's development team
could answer the following question:
Did you require in Lua's code that " sizeof( unsigned short ) ==
sizeof( lv_byte ) ", i.e., unsigned short has 16 bits?
It is important to optimize OOBIT a little bit more.