stdint.h-data 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
  2. // The requirements for some types and corresponding macros are from POSIX.
  3. type int8_t
  4. type int16_t
  5. type int32_t
  6. type int64_t
  7. type uint8_t
  8. type uint16_t
  9. type uint32_t
  10. type uint64_t
  11. type int_least8_t
  12. type int_least16_t
  13. type int_least32_t
  14. type int_least64_t
  15. type uint_least8_t
  16. type uint_least16_t
  17. type uint_least32_t
  18. type uint_least64_t
  19. type int_fast8_t
  20. type int_fast16_t
  21. type int_fast32_t
  22. type int_fast64_t
  23. type uint_fast8_t
  24. type uint_fast16_t
  25. type uint_fast32_t
  26. type uint_fast64_t
  27. type intptr_t
  28. type uintptr_t
  29. type intmax_t
  30. type uintmax_t
  31. macro-int-constant INT8_MIN {promoted:int8_t} == -128
  32. macro-int-constant INT8_MAX {promoted:int8_t} == 127
  33. macro-int-constant INT16_MIN {promoted:int16_t} == -32768
  34. macro-int-constant INT16_MAX {promoted:int16_t} == 32767
  35. macro-int-constant INT32_MIN {promoted:int32_t} == -2147483647-1
  36. macro-int-constant INT32_MAX {promoted:int32_t} == 2147483647
  37. macro-int-constant INT64_MIN {promoted:int64_t} == -9223372036854775807LL-1
  38. macro-int-constant INT64_MAX {promoted:int64_t} == 9223372036854775807LL
  39. macro-int-constant UINT8_MAX {promoted:uint8_t} == 255
  40. macro-int-constant UINT16_MAX {promoted:uint16_t} == 65535
  41. macro-int-constant UINT32_MAX {promoted:uint32_t} == 4294967295U
  42. macro-int-constant UINT64_MAX {promoted:uint64_t} == 18446744073709551615ULL
  43. macro-int-constant INT_LEAST8_MIN {promoted:int_least8_t} <= -128
  44. macro-int-constant INT_LEAST8_MAX {promoted:int_least8_t} >= 127
  45. macro-int-constant INT_LEAST16_MIN {promoted:int_least16_t} <= -32768
  46. macro-int-constant INT_LEAST16_MAX {promoted:int_least16_t} >= 32767
  47. macro-int-constant INT_LEAST32_MIN {promoted:int_least32_t} <= -2147483647-1
  48. macro-int-constant INT_LEAST32_MAX {promoted:int_least32_t} >= 2147483647
  49. macro-int-constant INT_LEAST64_MIN {promoted:int_least64_t} <= -9223372036854775807LL-1
  50. macro-int-constant INT_LEAST64_MAX {promoted:int_least64_t} >= 9223372036854775807LL
  51. macro-int-constant UINT_LEAST8_MAX {promoted:uint_least8_t} >= 255
  52. macro-int-constant UINT_LEAST16_MAX {promoted:uint_least16_t} >= 65535
  53. macro-int-constant UINT_LEAST32_MAX {promoted:uint_least32_t} >= 4294967295U
  54. macro-int-constant UINT_LEAST64_MAX {promoted:uint_least64_t} >= 18446744073709551615ULL
  55. macro-int-constant INT_FAST8_MIN {promoted:int_fast8_t} <= -128
  56. macro-int-constant INT_FAST8_MAX {promoted:int_fast8_t} >= 127
  57. macro-int-constant INT_FAST16_MIN {promoted:int_fast16_t} <= -32768
  58. macro-int-constant INT_FAST16_MAX {promoted:int_fast16_t} >= 32767
  59. macro-int-constant INT_FAST32_MIN {promoted:int_fast32_t} <= -2147483647-1
  60. macro-int-constant INT_FAST32_MAX {promoted:int_fast32_t} >= 2147483647
  61. macro-int-constant INT_FAST64_MIN {promoted:int_fast64_t} <= -9223372036854775807LL-1
  62. macro-int-constant INT_FAST64_MAX {promoted:int_fast64_t} >= 9223372036854775807LL
  63. macro-int-constant UINT_FAST8_MAX {promoted:uint_fast8_t} >= 255
  64. macro-int-constant UINT_FAST16_MAX {promoted:uint_fast16_t} >= 65535
  65. macro-int-constant UINT_FAST32_MAX {promoted:uint_fast32_t} >= 4294967295U
  66. macro-int-constant UINT_FAST64_MAX {promoted:uint_fast64_t} >= 18446744073709551615ULL
  67. macro-int-constant INTPTR_MIN {promoted:intptr_t} <= -32768
  68. macro-int-constant INTPTR_MAX {promoted:intptr_t} >= 32767
  69. macro-int-constant UINTPTR_MAX {promoted:uintptr_t} >= 65535
  70. macro-int-constant INTMAX_MIN {promoted:intmax_t} <= -9223372036854775807LL-1
  71. macro-int-constant INTMAX_MAX {promoted:intmax_t} >= 9223372036854775807LL
  72. macro-int-constant UINTMAX_MAX {promoted:uintmax_t} >= 18446744073709551615ULL
  73. macro-int-constant PTRDIFF_MIN {promoted:__PTRDIFF_TYPE__} <= -65535
  74. macro-int-constant PTRDIFF_MAX {promoted:__PTRDIFF_TYPE__} >= 65535
  75. macro-int-constant SIG_ATOMIC_MIN {size:__SIG_ATOMIC_WIDTH__}
  76. macro-int-constant SIG_ATOMIC_MAX {size:__SIG_ATOMIC_WIDTH__} >= 127
  77. macro-int-constant SIZE_MAX {promoted:__SIZE_TYPE__} >= 65535
  78. macro-int-constant WCHAR_MIN {promoted:__WCHAR_TYPE__}
  79. macro-int-constant WCHAR_MAX {promoted:__WCHAR_TYPE__} >= 127
  80. macro-int-constant WINT_MIN {promoted:__WINT_TYPE__}
  81. macro-int-constant WINT_MAX {promoted:__WINT_TYPE__} >= 127
  82. macro INT8_C
  83. macro INT16_C
  84. macro INT32_C
  85. macro INT64_C
  86. macro UINT8_C
  87. macro UINT16_C
  88. macro UINT32_C
  89. macro UINT64_C
  90. macro INTMAX_C
  91. macro UINTMAX_C
  92. // The following expressions are not entirely correct but the current
  93. // poorfnmatch implementation doesn't grok the right forms (INT*_MAX,
  94. // INT*_MIN, INT*_C, UINT*_MAX, UINT*_MIN, UINT*_C, int*_t, uint*_t).
  95. allow INT*
  96. allow UINT*
  97. allow *_t
  98. #endif