limits_windows_arm64.go 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // Code generated by 'ccgo limits\gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o limits\limits_windows_arm64.go -pkgname limits', DO NOT EDIT.
  2. package limits
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. CHAR_BIT = 8
  15. CHAR_MAX = 127
  16. CHAR_MIN = -128
  17. INT_MAX = 2147483647
  18. INT_MIN = -2147483648
  19. LLONG_MAX = 9223372036854775807
  20. LLONG_MIN = -9223372036854775808
  21. LONG_LONG_MAX = 9223372036854775807
  22. LONG_LONG_MIN = -9223372036854775808
  23. LONG_MAX = 2147483647
  24. LONG_MIN = -2147483648
  25. MB_LEN_MAX = 1
  26. PATH_MAX = 260
  27. SCHAR_MAX = 127
  28. SCHAR_MIN = -128
  29. SHRT_MAX = 32767
  30. SHRT_MIN = -32768
  31. UCHAR_MAX = 255
  32. UINT_MAX = 4294967295
  33. ULLONG_MAX = 18446744073709551615
  34. ULONG_LONG_MAX = 18446744073709551615
  35. ULONG_MAX = 4294967295
  36. USHRT_MAX = 65535
  37. WIN32 = 1
  38. WIN64 = 1
  39. WINNT = 1
  40. X_FILE_OFFSET_BITS = 64
  41. X_GCC_LIMITS_H_ = 0
  42. X_VA_LIST_DEFINED = 0
  43. X_WIN32 = 1
  44. X_WIN64 = 1
  45. )
  46. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  47. type Size_t = uint64 /* <builtin>:9:23 */
  48. type Wchar_t = uint16 /* <builtin>:15:24 */
  49. type X__int128_t = struct {
  50. Flo int64
  51. Fhi int64
  52. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  53. type X__uint128_t = struct {
  54. Flo uint64
  55. Fhi uint64
  56. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  57. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  58. type X__float128 = float64 /* <builtin>:47:21 */
  59. type Va_list = X__builtin_va_list /* <builtin>:50:27 */
  60. //===---- limits.h - Standard header for integer sizes --------------------===* *
  61. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  62. // See https://llvm.org/LICENSE.txt for license information.
  63. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  64. //
  65. // \*===----------------------------------------------------------------------===
  66. // The system's limits.h may, in turn, try to #include_next GCC's limits.h.
  67. // Avert this #include_next madness.
  68. // System headers include a number of constants from POSIX in <limits.h>.
  69. // Include it if we're hosted.
  70. // Many system headers try to "help us out" by defining these. No really, we
  71. // know how big each datatype is.
  72. // C90/99 5.2.4.2.1
  73. // C2x 5.2.4.2.1
  74. // FIXME: This is using the placeholder dates Clang produces for these macros
  75. // in C2x mode; switch to the correct values once they've been published.
  76. // C99 5.2.4.2.1: Added long long.
  77. // C++11 18.3.3.2: same contents as the Standard C Library header <limits.h>.
  78. //
  79. // LONG_LONG_MIN/LONG_LONG_MAX/ULONG_LONG_MAX are a GNU extension. It's too bad
  80. // that we don't have something like #pragma poison that could be used to
  81. // deprecate a macro - the code should just use LLONG_MAX and friends.
  82. //
  83. var _ int8 /* gen.c:2:13: */