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

Re: [rtl] "Longer" Thread Periods



On Fri, 18 Feb 2000, Kulwinder Atwal wrote:

> For Linux on a 32-bit machine (Pentium):
> 
> short = 8 bits
> int = 16 bits

That is not true:
signed char = 8 bits
short = 16 bits
int = 32 bits (32-bit architecture!) 

> long = 32 bits = one word
> long long = 64 bits = two words

This is correct.

--
Tomek

P.S. Use always things like u16,  or int16_t  u_int32_t etc. 
sys/types.h  or asm/types.c