Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: unsigned long versus unsigned int on ARM7

2005-11-09 by David Hawkins

>>Second, if you want to be portable and care about the actual # of 
> 
> bits, you 
> 
>>should always use your own typdefs such as
>>
>>uint32, uint64 etc. anyway.
> 
> 
> OK, I give in.  It is no effort to create a 'datatypes.h' and this 
> is the approach I have used before.  There is certainly good reason 
> to get this squared away early.
> 
> Thanks to all!

I use <stdint.h> to get the C99 types; int32_t, uint32_t, etc.
If the compiler doesn't have a stdint.h, then write one.
There are already too many versions of code with s32, S32, INT32, ...
definitions out there, I figure go with the C99 names, even
if your compiler is not C99 compliant.

Dave

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.