ecrypt-types.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* ecrypt-types.h */
  2. /*
  3. * *** Please do not edit this file. ***
  4. *
  5. * The default macros can be overridden for specific architectures by
  6. * editing 'ecrypt-machine.h'.
  7. */
  8. #ifndef ECRYPT_TYPES
  9. #define ECRYPT_TYPES
  10. #include "ecrypt-config.h"
  11. /* ------------------------------------------------------------------------- */
  12. /*
  13. * The following types are defined (if available):
  14. *
  15. * u8: unsigned integer type, at least 8 bits
  16. * u16: unsigned integer type, at least 16 bits
  17. * u32: unsigned integer type, at least 32 bits
  18. * u64: unsigned integer type, at least 64 bits
  19. *
  20. * s8, s16, s32, s64 -> signed counterparts of u8, u16, u32, u64
  21. *
  22. * The selection of minimum-width integer types is taken care of by
  23. * 'ecrypt-config.h'. Note: to enable 64-bit types on 32-bit
  24. * compilers, it might be necessary to switch from ISO C90 mode to ISO
  25. * C99 mode (e.g., gcc -std=c99).
  26. */
  27. #ifdef I8T
  28. typedef signed I8T s8;
  29. typedef unsigned I8T u8;
  30. #endif
  31. #ifdef I16T
  32. typedef signed I16T s16;
  33. typedef unsigned I16T u16;
  34. #endif
  35. #ifdef I32T
  36. typedef signed I32T s32;
  37. typedef unsigned I32T u32;
  38. #endif
  39. #ifdef I64T
  40. typedef signed I64T s64;
  41. typedef unsigned I64T u64;
  42. #endif
  43. #endif