next up previous contents
Next: Debugging tools Up: Miscellaneous definitions Previous: Simple types   Contents

Types with specific bit sizes

Gandalf builds unsigned integer types with specific bit sizes, so that the types GAN_UINT8, GAN_UINT16, GAN_UINT32 and GAN_UINT64 are #define'd to the relevant Gan_Type value, using the information on the sizes of architecture-dependent C object sizes provided by configure. You can also define your own variables with specific sizes using the typedefs gan_ui8 etc. For instance a declaration
      gan_ui16 val;
declares a 16-bit variable. gan_ui32 and gan_ui64 are also defined, the latter only on 64-bit architectures.



2006-03-17