[C++] The IN55 project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
815B

  1. #ifndef __TYPES_H__
  2. #define __TYPES_H__
  3. typedef char int8;
  4. typedef short int16;
  5. typedef int int32;
  6. typedef long long int64;
  7. typedef unsigned char uint8;
  8. typedef unsigned short uint16;
  9. typedef unsigned int uint32;
  10. typedef unsigned long long uint64;
  11. typedef float float32;
  12. typedef double float64;
  13. typedef long double float80;
  14. #define INT8_MIN_VALUE -128
  15. #define INT8_MAX_VALUE 127
  16. #define UINT8_MAX_VALUE 256
  17. #define INT16_MIN_VALUE -32768
  18. #define INT16_MAX_VALUE 32767
  19. #define UINT16_MAX_VALUE 65535
  20. #define INT32_MIN_VALUE -2147483648
  21. #define INT32_MAX_VALUE 2147483647
  22. #define UINT32_MAX_VALUE 4294967295
  23. #define FLOAT32_MIN_VALUE -3.4e+38f
  24. #define FLOAT32_MAX_VALUE 3.4e+38f
  25. #define FLOAT64_MIN_VALUE -1.7e+308
  26. #define FLOAT64_MAX_VALUE 1.7e+308
  27. #endif