stdinth.inc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. type
  2. int64_t = Int64;
  3. uint8_t = byte;
  4. uint16_t = word;
  5. uint32_t = dword;
  6. uint64_t = qword;
  7. int_least8_t = char;
  8. int_least16_t = smallint;
  9. int_least32_t = longint;
  10. int_least64_t = int64;
  11. uint_least8_t = byte;
  12. uint_least16_t = word;
  13. uint_least32_t = dword;
  14. uint_least64_t = qword;
  15. int_fast8_t = shortint;
  16. int_fast16_t = longint;
  17. int_fast32_t = longint;
  18. int_fast64_t = int64;
  19. uint_fast8_t = byte;
  20. uint_fast16_t = dword;
  21. uint_fast32_t = dword;
  22. uint_fast64_t = qword;
  23. intptr_t = longint;
  24. uintptr_t = dword;
  25. intmax_t = Int64;
  26. uintmax_t = QWord;
  27. const
  28. INT8_MIN = -(128);
  29. INT16_MIN = (-(32767)) - 1;
  30. INT32_MIN = (-(2147483647)) - 1;
  31. {$ifndef ver1_0}
  32. INT64_MIN = int64_t(-int64_t(9223372036854775807)-1);
  33. {$endif}
  34. INT8_MAX = 127;
  35. INT16_MAX = 32767;
  36. INT32_MAX = 2147483647;
  37. {$ifndef ver1_0}
  38. INT64_MAX = int64_t(9223372036854775807);
  39. {$endif}
  40. UINT8_MAX = 255;
  41. UINT16_MAX = 65535;
  42. UINT32_MAX = 4294967295;
  43. {$ifndef ver1_0}
  44. UINT64_MAX = uint64_t(-1);
  45. {$endif}
  46. INT_LEAST8_MIN = -(128);
  47. INT_LEAST16_MIN = (-(32767)) - 1;
  48. INT_LEAST32_MIN = (-(2147483647)) - 1;
  49. {$ifndef ver1_0}
  50. INT_LEAST64_MIN = int_least64_t(-int64_t(9223372036854775807)-1);
  51. {$endif}
  52. INT_LEAST8_MAX = 127;
  53. INT_LEAST16_MAX = 32767;
  54. INT_LEAST32_MAX = 2147483647;
  55. {$ifndef ver1_0}
  56. INT_LEAST64_MAX = int_least64_t(9223372036854775807);
  57. {$endif}
  58. UINT_LEAST8_MAX = 255;
  59. UINT_LEAST16_MAX = 65535;
  60. UINT_LEAST32_MAX = 4294967295;
  61. {$ifndef ver1_0}
  62. UINT_LEAST64_MAX = uint_least64_t(-1);
  63. {$endif}
  64. INT_FAST8_MIN = -(128);
  65. INT_FAST16_MIN = (-(2147483647)) - 1;
  66. INT_FAST32_MIN = (-(2147483647)) - 1;
  67. {$ifndef ver1_0}
  68. INT_FAST64_MIN = int_fast64_t(-Int64(9223372036854775807)-1);
  69. {$endif}
  70. INT_FAST8_MAX = 127;
  71. INT_FAST16_MAX = 2147483647;
  72. INT_FAST32_MAX = 2147483647;
  73. {$ifndef ver1_0}
  74. INT_FAST64_MAX = int_fast64_t(9223372036854775807);
  75. {$endif}
  76. UINT_FAST8_MAX = 255;
  77. UINT_FAST16_MAX = 4294967295;
  78. UINT_FAST32_MAX = 4294967295;
  79. {$ifndef ver1_0}
  80. UINT_FAST64_MAX = uint_fast64_t(-1);
  81. {$endif}
  82. INTPTR_MIN = (-(2147483647)) - 1;
  83. INTPTR_MAX = 2147483647;
  84. UINTPTR_MAX = 4294967295;
  85. {$ifndef ver1_0}
  86. INTMAX_MIN = Int64(-Int64(9223372036854775807)-1);
  87. INTMAX_MAX = Int64(9223372036854775807);
  88. UINTMAX_MAX = QWord(-1);
  89. {$endif}
  90. PTRDIFF_MIN = (-(2147483647)) - 1;
  91. PTRDIFF_MAX = 2147483647;
  92. SIG_ATOMIC_MIN = (-(2147483647)) - 1;
  93. SIG_ATOMIC_MAX = 2147483647;
  94. SIZE_MAX = 4294967295;
  95. WINT_MIN = 0;
  96. WINT_MAX = 4294967295;