Use of data types

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Jan 19 12:42:45 EST 2010


On Tue, Jan 19, 2010 at 08:57:03PM +0900, Khushhua Mogambo wrote:
> from thread, i understand that u32 is encouraged whenever we have reason. I m
> going to use u8,16,32 heavily.

Incorrect.

As I said, use u8,u16,u32 when you need something that's of that size
(eg, for storing values from hardware registers.)  If you don't require
something of a specific size, then don't use them.



More information about the linux-arm-kernel mailing list