stdint.h 789 B

1234567891011121314151617181920212223242526272829
  1. typedef int32_t int_fast16_t;
  2. typedef int32_t int_fast32_t;
  3. typedef uint32_t uint_fast16_t;
  4. typedef uint32_t uint_fast32_t;
  5. #define INT_FAST16_MIN INT32_MIN
  6. #define INT_FAST32_MIN INT32_MIN
  7. #define INT_FAST16_MAX INT32_MAX
  8. #define INT_FAST32_MAX INT32_MAX
  9. #define UINT_FAST16_MAX UINT32_MAX
  10. #define UINT_FAST32_MAX UINT32_MAX
  11. #if __LONG_MAX == 0x7fffffffL
  12. #define INTPTR_MIN INT32_MIN
  13. #define INTPTR_MAX INT32_MAX
  14. #define UINTPTR_MAX UINT32_MAX
  15. #define PTRDIFF_MIN INT32_MIN
  16. #define PTRDIFF_MAX INT32_MAX
  17. #define SIZE_MAX UINT32_MAX
  18. #else
  19. #define INTPTR_MIN INT64_MIN
  20. #define INTPTR_MAX INT64_MAX
  21. #define UINTPTR_MAX UINT64_MAX
  22. #define PTRDIFF_MIN INT64_MIN
  23. #define PTRDIFF_MAX INT64_MAX
  24. #define SIZE_MAX UINT64_MAX
  25. #endif