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

using bitfield syntax

Does anyone know if bit fileds can apply to 16 or 32 for ARM9 without any prolems?
I've always used 8 bits, that is to say
struct bitfileds
   unsigned bit0: 1;
   unsigned bit1: 1;
   unsigned bit7: 1;

instead of
struct bitfields
   unsigned bit0: 1;
   unsigned bit15: 1;

Would I have any possible problems with the latter? I don't see why and I don't have any reason to think it would cause problems.


Reply to: