stdint.readme 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _STDINT_H
  2. #define _STDINT_H
  3. /*******************************************************************************
  4. * THIS IS NOT A FULL stdint.h IMPLEMENTATION - It only contains the definitions
  5. * necessary to build the library code. It is provided to allow the library to
  6. * be built using compilers that do not provide their own stdint.h definition.
  7. *
  8. * To use this file:
  9. *
  10. * 1) Copy this file into a directory that is in your compiler's include path.
  11. * The directory must be part of the include path for system header file,
  12. * for example passed using gcc's "-I" or "-isystem" options.
  13. *
  14. * 2) Rename the copied file stdint.h.
  15. *
  16. */
  17. typedef signed char int8_t;
  18. typedef unsigned char uint8_t;
  19. typedef short int16_t;
  20. typedef unsigned short uint16_t;
  21. typedef long int32_t;
  22. typedef unsigned long uint32_t;
  23. typedef long long int64_t;
  24. typedef unsigned long long uint64_t;
  25. #define INT8_MAX ( ( signed char ) 127 )
  26. #define UINT8_MAX ( ( unsigned char ) 255 )
  27. #define INT16_MAX ( ( short ) 32767 )
  28. #define UINT16_MAX ( ( unsigned short ) 65535 )
  29. #define INT32_MAX 2147483647L
  30. #define UINT32_MAX 4294967295UL
  31. #define INT64_MAX 9223372036854775807LL
  32. #define UINT64_MAX 18446744073709551615ULL
  33. #endif /* _STDINT_H */