Mail Archives: djgpp/1999/05/13/09:14:21
On Thu, 13 May 1999, Pasi Franti wrote:
> > Ok. thanx. it is like here then:
> >
> > typedef unsigned short U16;
> > typedef unsigned long U32;
> > typedef unsigned char BYTE;
>
> I disagree.
>
> I did not follow your discussion but how did you come up to such
> conclusion? You can never be sure of how many bits are int and
> long types without checking it!
I understood that the above is for DJGPP, in which case it is
correct. As I said elsewhere in this thread, for any other
environment, you indeed need to find out how many bits does each type
use.
> So what makes you think that
> unsigned long would be different case? As far as I know, it is
> more likely to be U64 as we use 32-bit compilers where int is
> 32 bits and long 64 bits.
Actually, most 32-bit compilers use 32 bits for both int and long.
- Raw text -