lua-users home
lua-l archive

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


On Sat, Oct 2, 2010 at 1:27 PM, liam mail <liam.list@googlemail.com> wrote:
>
>
> On 2 October 2010 15:58, Leo Razoumov <slonik.az@gmail.com> wrote:
>>
>> On 2010-09-28, Nilson <nilson.brazil@gmail.com> 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.
>>
>> --Leo--
>>
> 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.
>
>

Hi,

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[2] ) ", i.e., unsigned short has 16 bits?

It is important to optimize OOBIT a little bit more.

-- 
Nilson