Types with specific bit sizes (original) (raw)
Next: Debugging tools Up: Miscellaneous definitions Previous: Simple types Contents Gandalf builds unsigned integer types with specific bit sizes, so that the types GAN_UINT8, GAN_UINT16, GAN_UINT32 andGAN_UINT64 are #define'd to the relevant Gan_Typevalue, 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_ui8etc. 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