triton-windows 3.5.0.post21__cp314-cp314-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of triton-windows might be problematic. Click here for more details.

Files changed (217) hide show
  1. triton/_C/libtriton.pyd +0 -0
  2. triton/__init__.py +82 -0
  3. triton/_filecheck.py +97 -0
  4. triton/_internal_testing.py +255 -0
  5. triton/_utils.py +126 -0
  6. triton/backends/__init__.py +47 -0
  7. triton/backends/amd/__init__.py +0 -0
  8. triton/backends/amd/compiler.py +461 -0
  9. triton/backends/amd/driver.c +283 -0
  10. triton/backends/amd/driver.py +724 -0
  11. triton/backends/amd/lib/asanrtl.bc +0 -0
  12. triton/backends/amd/lib/ockl.bc +0 -0
  13. triton/backends/amd/lib/ocml.bc +0 -0
  14. triton/backends/compiler.py +90 -0
  15. triton/backends/driver.py +66 -0
  16. triton/backends/nvidia/__init__.py +0 -0
  17. triton/backends/nvidia/bin/ptxas.exe +0 -0
  18. triton/backends/nvidia/compiler.py +533 -0
  19. triton/backends/nvidia/driver.c +517 -0
  20. triton/backends/nvidia/driver.py +799 -0
  21. triton/backends/nvidia/include/cuda.h +26280 -0
  22. triton/backends/nvidia/lib/libdevice.10.bc +0 -0
  23. triton/backends/nvidia/lib/x64/cuda.lib +0 -0
  24. triton/compiler/__init__.py +7 -0
  25. triton/compiler/code_generator.py +1614 -0
  26. triton/compiler/compiler.py +509 -0
  27. triton/compiler/errors.py +51 -0
  28. triton/compiler/make_launcher.py +0 -0
  29. triton/errors.py +5 -0
  30. triton/experimental/__init__.py +0 -0
  31. triton/experimental/gluon/__init__.py +5 -0
  32. triton/experimental/gluon/_compiler.py +0 -0
  33. triton/experimental/gluon/_runtime.py +102 -0
  34. triton/experimental/gluon/language/__init__.py +119 -0
  35. triton/experimental/gluon/language/_core.py +490 -0
  36. triton/experimental/gluon/language/_layouts.py +583 -0
  37. triton/experimental/gluon/language/_math.py +20 -0
  38. triton/experimental/gluon/language/_semantic.py +380 -0
  39. triton/experimental/gluon/language/_standard.py +80 -0
  40. triton/experimental/gluon/language/amd/__init__.py +4 -0
  41. triton/experimental/gluon/language/amd/_layouts.py +96 -0
  42. triton/experimental/gluon/language/amd/cdna3/__init__.py +100 -0
  43. triton/experimental/gluon/language/amd/cdna4/__init__.py +48 -0
  44. triton/experimental/gluon/language/amd/cdna4/async_copy.py +151 -0
  45. triton/experimental/gluon/language/extra/__init__.py +3 -0
  46. triton/experimental/gluon/language/nvidia/__init__.py +4 -0
  47. triton/experimental/gluon/language/nvidia/ampere/__init__.py +3 -0
  48. triton/experimental/gluon/language/nvidia/ampere/async_copy.py +74 -0
  49. triton/experimental/gluon/language/nvidia/ampere/mbarrier.py +80 -0
  50. triton/experimental/gluon/language/nvidia/blackwell/__init__.py +387 -0
  51. triton/experimental/gluon/language/nvidia/blackwell/tma.py +52 -0
  52. triton/experimental/gluon/language/nvidia/hopper/__init__.py +132 -0
  53. triton/experimental/gluon/language/nvidia/hopper/mbarrier.py +34 -0
  54. triton/experimental/gluon/language/nvidia/hopper/tma.py +97 -0
  55. triton/experimental/gluon/nvidia/__init__.py +4 -0
  56. triton/experimental/gluon/nvidia/blackwell.py +3 -0
  57. triton/experimental/gluon/nvidia/hopper.py +45 -0
  58. triton/knobs.py +546 -0
  59. triton/language/__init__.py +342 -0
  60. triton/language/core.py +3405 -0
  61. triton/language/extra/__init__.py +26 -0
  62. triton/language/extra/cuda/__init__.py +16 -0
  63. triton/language/extra/cuda/gdc.py +42 -0
  64. triton/language/extra/cuda/libdevice.py +1629 -0
  65. triton/language/extra/cuda/utils.py +109 -0
  66. triton/language/extra/hip/__init__.py +5 -0
  67. triton/language/extra/hip/libdevice.py +491 -0
  68. triton/language/extra/hip/utils.py +35 -0
  69. triton/language/extra/libdevice.py +790 -0
  70. triton/language/math.py +249 -0
  71. triton/language/random.py +218 -0
  72. triton/language/semantic.py +1939 -0
  73. triton/language/standard.py +534 -0
  74. triton/language/target_info.py +54 -0
  75. triton/runtime/__init__.py +23 -0
  76. triton/runtime/_allocation.py +44 -0
  77. triton/runtime/_async_compile.py +55 -0
  78. triton/runtime/autotuner.py +476 -0
  79. triton/runtime/build.py +168 -0
  80. triton/runtime/cache.py +317 -0
  81. triton/runtime/driver.py +38 -0
  82. triton/runtime/errors.py +36 -0
  83. triton/runtime/interpreter.py +1414 -0
  84. triton/runtime/jit.py +1107 -0
  85. triton/runtime/tcc/include/_mingw.h +168 -0
  86. triton/runtime/tcc/include/assert.h +62 -0
  87. triton/runtime/tcc/include/conio.h +409 -0
  88. triton/runtime/tcc/include/ctype.h +281 -0
  89. triton/runtime/tcc/include/dir.h +31 -0
  90. triton/runtime/tcc/include/direct.h +68 -0
  91. triton/runtime/tcc/include/dirent.h +135 -0
  92. triton/runtime/tcc/include/dos.h +55 -0
  93. triton/runtime/tcc/include/errno.h +75 -0
  94. triton/runtime/tcc/include/excpt.h +123 -0
  95. triton/runtime/tcc/include/fcntl.h +52 -0
  96. triton/runtime/tcc/include/fenv.h +108 -0
  97. triton/runtime/tcc/include/float.h +75 -0
  98. triton/runtime/tcc/include/inttypes.h +297 -0
  99. triton/runtime/tcc/include/io.h +418 -0
  100. triton/runtime/tcc/include/iso646.h +36 -0
  101. triton/runtime/tcc/include/limits.h +116 -0
  102. triton/runtime/tcc/include/locale.h +91 -0
  103. triton/runtime/tcc/include/malloc.h +181 -0
  104. triton/runtime/tcc/include/math.h +497 -0
  105. triton/runtime/tcc/include/mem.h +13 -0
  106. triton/runtime/tcc/include/memory.h +40 -0
  107. triton/runtime/tcc/include/process.h +176 -0
  108. triton/runtime/tcc/include/sec_api/conio_s.h +42 -0
  109. triton/runtime/tcc/include/sec_api/crtdbg_s.h +19 -0
  110. triton/runtime/tcc/include/sec_api/io_s.h +33 -0
  111. triton/runtime/tcc/include/sec_api/mbstring_s.h +52 -0
  112. triton/runtime/tcc/include/sec_api/search_s.h +25 -0
  113. triton/runtime/tcc/include/sec_api/stdio_s.h +145 -0
  114. triton/runtime/tcc/include/sec_api/stdlib_s.h +67 -0
  115. triton/runtime/tcc/include/sec_api/stralign_s.h +30 -0
  116. triton/runtime/tcc/include/sec_api/string_s.h +41 -0
  117. triton/runtime/tcc/include/sec_api/sys/timeb_s.h +34 -0
  118. triton/runtime/tcc/include/sec_api/tchar_s.h +266 -0
  119. triton/runtime/tcc/include/sec_api/time_s.h +61 -0
  120. triton/runtime/tcc/include/sec_api/wchar_s.h +128 -0
  121. triton/runtime/tcc/include/setjmp.h +160 -0
  122. triton/runtime/tcc/include/share.h +28 -0
  123. triton/runtime/tcc/include/signal.h +63 -0
  124. triton/runtime/tcc/include/stdalign.h +16 -0
  125. triton/runtime/tcc/include/stdarg.h +14 -0
  126. triton/runtime/tcc/include/stdatomic.h +171 -0
  127. triton/runtime/tcc/include/stdbool.h +11 -0
  128. triton/runtime/tcc/include/stddef.h +42 -0
  129. triton/runtime/tcc/include/stdint.h +212 -0
  130. triton/runtime/tcc/include/stdio.h +429 -0
  131. triton/runtime/tcc/include/stdlib.h +591 -0
  132. triton/runtime/tcc/include/stdnoreturn.h +7 -0
  133. triton/runtime/tcc/include/string.h +164 -0
  134. triton/runtime/tcc/include/sys/fcntl.h +13 -0
  135. triton/runtime/tcc/include/sys/file.h +14 -0
  136. triton/runtime/tcc/include/sys/locking.h +30 -0
  137. triton/runtime/tcc/include/sys/stat.h +290 -0
  138. triton/runtime/tcc/include/sys/time.h +69 -0
  139. triton/runtime/tcc/include/sys/timeb.h +133 -0
  140. triton/runtime/tcc/include/sys/types.h +123 -0
  141. triton/runtime/tcc/include/sys/unistd.h +14 -0
  142. triton/runtime/tcc/include/sys/utime.h +146 -0
  143. triton/runtime/tcc/include/tcc/tcc_libm.h +618 -0
  144. triton/runtime/tcc/include/tccdefs.h +342 -0
  145. triton/runtime/tcc/include/tcclib.h +80 -0
  146. triton/runtime/tcc/include/tchar.h +1102 -0
  147. triton/runtime/tcc/include/tgmath.h +89 -0
  148. triton/runtime/tcc/include/time.h +287 -0
  149. triton/runtime/tcc/include/uchar.h +33 -0
  150. triton/runtime/tcc/include/unistd.h +1 -0
  151. triton/runtime/tcc/include/vadefs.h +11 -0
  152. triton/runtime/tcc/include/values.h +4 -0
  153. triton/runtime/tcc/include/varargs.h +12 -0
  154. triton/runtime/tcc/include/wchar.h +873 -0
  155. triton/runtime/tcc/include/wctype.h +172 -0
  156. triton/runtime/tcc/include/winapi/basetsd.h +149 -0
  157. triton/runtime/tcc/include/winapi/basetyps.h +85 -0
  158. triton/runtime/tcc/include/winapi/guiddef.h +156 -0
  159. triton/runtime/tcc/include/winapi/poppack.h +8 -0
  160. triton/runtime/tcc/include/winapi/pshpack1.h +8 -0
  161. triton/runtime/tcc/include/winapi/pshpack2.h +8 -0
  162. triton/runtime/tcc/include/winapi/pshpack4.h +8 -0
  163. triton/runtime/tcc/include/winapi/pshpack8.h +8 -0
  164. triton/runtime/tcc/include/winapi/qos.h +72 -0
  165. triton/runtime/tcc/include/winapi/shellapi.h +59 -0
  166. triton/runtime/tcc/include/winapi/winbase.h +2958 -0
  167. triton/runtime/tcc/include/winapi/wincon.h +309 -0
  168. triton/runtime/tcc/include/winapi/windef.h +293 -0
  169. triton/runtime/tcc/include/winapi/windows.h +127 -0
  170. triton/runtime/tcc/include/winapi/winerror.h +3166 -0
  171. triton/runtime/tcc/include/winapi/wingdi.h +4080 -0
  172. triton/runtime/tcc/include/winapi/winnls.h +778 -0
  173. triton/runtime/tcc/include/winapi/winnt.h +5837 -0
  174. triton/runtime/tcc/include/winapi/winreg.h +272 -0
  175. triton/runtime/tcc/include/winapi/winsock2.h +1474 -0
  176. triton/runtime/tcc/include/winapi/winuser.h +5651 -0
  177. triton/runtime/tcc/include/winapi/winver.h +160 -0
  178. triton/runtime/tcc/include/winapi/ws2ipdef.h +21 -0
  179. triton/runtime/tcc/include/winapi/ws2tcpip.h +391 -0
  180. triton/runtime/tcc/lib/cuda.def +697 -0
  181. triton/runtime/tcc/lib/gdi32.def +337 -0
  182. triton/runtime/tcc/lib/kernel32.def +770 -0
  183. triton/runtime/tcc/lib/libtcc1.a +0 -0
  184. triton/runtime/tcc/lib/msvcrt.def +1399 -0
  185. triton/runtime/tcc/lib/python3.def +810 -0
  186. triton/runtime/tcc/lib/python310.def +1610 -0
  187. triton/runtime/tcc/lib/python311.def +1633 -0
  188. triton/runtime/tcc/lib/python312.def +1703 -0
  189. triton/runtime/tcc/lib/python313.def +1651 -0
  190. triton/runtime/tcc/lib/python313t.def +1656 -0
  191. triton/runtime/tcc/lib/python314.def +1800 -0
  192. triton/runtime/tcc/lib/python314t.def +1809 -0
  193. triton/runtime/tcc/lib/python39.def +1644 -0
  194. triton/runtime/tcc/lib/python3t.def +905 -0
  195. triton/runtime/tcc/lib/user32.def +658 -0
  196. triton/runtime/tcc/libtcc.dll +0 -0
  197. triton/runtime/tcc/tcc.exe +0 -0
  198. triton/testing.py +543 -0
  199. triton/tools/__init__.py +0 -0
  200. triton/tools/build_extern.py +365 -0
  201. triton/tools/compile.py +210 -0
  202. triton/tools/disasm.py +143 -0
  203. triton/tools/extra/cuda/compile.c +70 -0
  204. triton/tools/extra/cuda/compile.h +14 -0
  205. triton/tools/extra/hip/compile.cpp +66 -0
  206. triton/tools/extra/hip/compile.h +13 -0
  207. triton/tools/link.py +322 -0
  208. triton/tools/mxfp.py +301 -0
  209. triton/tools/ragged_tma.py +92 -0
  210. triton/tools/tensor_descriptor.py +34 -0
  211. triton/windows_utils.py +405 -0
  212. triton_windows-3.5.0.post21.dist-info/METADATA +46 -0
  213. triton_windows-3.5.0.post21.dist-info/RECORD +217 -0
  214. triton_windows-3.5.0.post21.dist-info/WHEEL +5 -0
  215. triton_windows-3.5.0.post21.dist-info/entry_points.txt +3 -0
  216. triton_windows-3.5.0.post21.dist-info/licenses/LICENSE +23 -0
  217. triton_windows-3.5.0.post21.dist-info/top_level.txt +1 -0
@@ -0,0 +1,89 @@
1
+ /*
2
+ * ISO C Standard: 7.22 Type-generic math <tgmath.h>
3
+ */
4
+
5
+ #ifndef _TGMATH_H
6
+ #define _TGMATH_H
7
+
8
+ #include <math.h>
9
+
10
+ #ifndef __cplusplus
11
+ #define __tgmath_real(x, F) \
12
+ _Generic ((x), float: F##f, long double: F##l, default: F)(x)
13
+ #define __tgmath_real_2_1(x, y, F) \
14
+ _Generic ((x), float: F##f, long double: F##l, default: F)(x, y)
15
+ #define __tgmath_real_2(x, y, F) \
16
+ _Generic ((x)+(y), float: F##f, long double: F##l, default: F)(x, y)
17
+ #define __tgmath_real_3_2(x, y, z, F) \
18
+ _Generic ((x)+(y), float: F##f, long double: F##l, default: F)(x, y, z)
19
+ #define __tgmath_real_3(x, y, z, F) \
20
+ _Generic ((x)+(y)+(z), float: F##f, long double: F##l, default: F)(x, y, z)
21
+
22
+ /* Functions defined in both <math.h> and <complex.h> (7.22p4) */
23
+ #define acos(z) __tgmath_real(z, acos)
24
+ #define asin(z) __tgmath_real(z, asin)
25
+ #define atan(z) __tgmath_real(z, atan)
26
+ #define acosh(z) __tgmath_real(z, acosh)
27
+ #define asinh(z) __tgmath_real(z, asinh)
28
+ #define atanh(z) __tgmath_real(z, atanh)
29
+ #define cos(z) __tgmath_real(z, cos)
30
+ #define sin(z) __tgmath_real(z, sin)
31
+ #define tan(z) __tgmath_real(z, tan)
32
+ #define cosh(z) __tgmath_real(z, cosh)
33
+ #define sinh(z) __tgmath_real(z, sinh)
34
+ #define tanh(z) __tgmath_real(z, tanh)
35
+ #define exp(z) __tgmath_real(z, exp)
36
+ #define log(z) __tgmath_real(z, log)
37
+ #define pow(z1,z2) __tgmath_real_2(z1, z2, pow)
38
+ #define sqrt(z) __tgmath_real(z, sqrt)
39
+ #define fabs(z) __tgmath_real(z, fabs)
40
+
41
+ /* Functions defined in <math.h> only (7.22p5) */
42
+ #define atan2(x,y) __tgmath_real_2(x, y, atan2)
43
+ #define cbrt(x) __tgmath_real(x, cbrt)
44
+ #define ceil(x) __tgmath_real(x, ceil)
45
+ #define copysign(x,y) __tgmath_real_2(x, y, copysign)
46
+ #define erf(x) __tgmath_real(x, erf)
47
+ #define erfc(x) __tgmath_real(x, erfc)
48
+ #define exp2(x) __tgmath_real(x, exp2)
49
+ #define expm1(x) __tgmath_real(x, expm1)
50
+ #define fdim(x,y) __tgmath_real_2(x, y, fdim)
51
+ #define floor(x) __tgmath_real(x, floor)
52
+ #define fma(x,y,z) __tgmath_real_3(x, y, z, fma)
53
+ #define fmax(x,y) __tgmath_real_2(x, y, fmax)
54
+ #define fmin(x,y) __tgmath_real_2(x, y, fmin)
55
+ #define fmod(x,y) __tgmath_real_2(x, y, fmod)
56
+ #define frexp(x,y) __tgmath_real_2_1(x, y, frexp)
57
+ #define hypot(x,y) __tgmath_real_2(x, y, hypot)
58
+ #define ilogb(x) __tgmath_real(x, ilogb)
59
+ #define ldexp(x,y) __tgmath_real_2_1(x, y, ldexp)
60
+ #define lgamma(x) __tgmath_real(x, lgamma)
61
+ #define llrint(x) __tgmath_real(x, llrint)
62
+ #define llround(x) __tgmath_real(x, llround)
63
+ #define log10(x) __tgmath_real(x, log10)
64
+ #define log1p(x) __tgmath_real(x, log1p)
65
+ #define log2(x) __tgmath_real(x, log2)
66
+ #define logb(x) __tgmath_real(x, logb)
67
+ #define lrint(x) __tgmath_real(x, lrint)
68
+ #define lround(x) __tgmath_real(x, lround)
69
+ #define nearbyint(x) __tgmath_real(x, nearbyint)
70
+ #define nextafter(x,y) __tgmath_real_2(x, y, nextafter)
71
+ #define nexttoward(x,y) __tgmath_real_2(x, y, nexttoward)
72
+ #define remainder(x,y) __tgmath_real_2(x, y, remainder)
73
+ #define remquo(x,y,z) __tgmath_real_3_2(x, y, z, remquo)
74
+ #define rint(x) __tgmath_real(x, rint)
75
+ #define round(x) __tgmath_real(x, round)
76
+ #define scalbln(x,y) __tgmath_real_2_1(x, y, scalbln)
77
+ #define scalbn(x,y) __tgmath_real_2_1(x, y, scalbn)
78
+ #define tgamma(x) __tgmath_real(x, tgamma)
79
+ #define trunc(x) __tgmath_real(x, trunc)
80
+
81
+ /* Functions defined in <complex.h> only (7.22p6)
82
+ #define carg(z) __tgmath_cplx_only(z, carg)
83
+ #define cimag(z) __tgmath_cplx_only(z, cimag)
84
+ #define conj(z) __tgmath_cplx_only(z, conj)
85
+ #define cproj(z) __tgmath_cplx_only(z, cproj)
86
+ #define creal(z) __tgmath_cplx_only(z, creal)
87
+ */
88
+ #endif /* __cplusplus */
89
+ #endif /* _TGMATH_H */
@@ -0,0 +1,287 @@
1
+ /**
2
+ * This file has no copyright assigned and is placed in the Public Domain.
3
+ * This file is part of the w64 mingw-runtime package.
4
+ * No warranty is given; refer to the file DISCLAIMER within this package.
5
+ */
6
+ #ifndef _TIME_H_
7
+ #define _TIME_H_
8
+
9
+ #include <_mingw.h>
10
+
11
+ #ifndef _WIN32
12
+ #error Only Win32 target is supported!
13
+ #endif
14
+
15
+ #pragma pack(push,_CRT_PACKING)
16
+
17
+ #ifdef __cplusplus
18
+ extern "C" {
19
+ #endif
20
+
21
+ #ifndef _CRTIMP
22
+ #define _CRTIMP __declspec(dllimport)
23
+ #endif
24
+
25
+ #ifndef _WCHAR_T_DEFINED
26
+ #define _WCHAR_T_DEFINED
27
+ typedef unsigned short wchar_t;
28
+ #endif
29
+
30
+ #ifndef _TIME32_T_DEFINED
31
+ #define _TIME32_T_DEFINED
32
+ typedef long __time32_t;
33
+ #endif
34
+
35
+ #ifndef _TIME64_T_DEFINED
36
+ #define _TIME64_T_DEFINED
37
+ #if _INTEGRAL_MAX_BITS >= 64
38
+ #if defined(__GNUC__) && defined(__STRICT_ANSI__)
39
+ typedef int _time64_t __attribute__ ((mode (DI)));
40
+ #else
41
+ typedef __int64 __time64_t;
42
+ #endif
43
+ #endif
44
+ #endif
45
+
46
+ #ifndef _TIME_T_DEFINED
47
+ #define _TIME_T_DEFINED
48
+ #ifdef _USE_32BIT_TIME_T
49
+ typedef __time32_t time_t;
50
+ #else
51
+ typedef __time64_t time_t;
52
+ #endif
53
+ #endif
54
+
55
+ #ifndef _CLOCK_T_DEFINED
56
+ #define _CLOCK_T_DEFINED
57
+ typedef long clock_t;
58
+ #endif
59
+
60
+ #ifndef _SIZE_T_DEFINED
61
+ #define _SIZE_T_DEFINED
62
+ #undef size_t
63
+ #ifdef _WIN64
64
+ #if defined(__GNUC__) && defined(__STRICT_ANSI__)
65
+ typedef unsigned int size_t __attribute__ ((mode (DI)));
66
+ #else
67
+ typedef unsigned __int64 size_t;
68
+ #endif
69
+ #else
70
+ typedef unsigned int size_t;
71
+ #endif
72
+ #endif
73
+
74
+ #ifndef _SSIZE_T_DEFINED
75
+ #define _SSIZE_T_DEFINED
76
+ #undef ssize_t
77
+ #ifdef _WIN64
78
+ #if defined(__GNUC__) && defined(__STRICT_ANSI__)
79
+ typedef int ssize_t __attribute__ ((mode (DI)));
80
+ #else
81
+ typedef __int64 ssize_t;
82
+ #endif
83
+ #else
84
+ typedef int ssize_t;
85
+ #endif
86
+ #endif
87
+
88
+ #ifndef NULL
89
+ #ifdef __cplusplus
90
+ #define NULL 0
91
+ #else
92
+ #define NULL ((void *)0)
93
+ #endif
94
+ #endif
95
+
96
+ #ifdef _USE_32BIT_TIME_T
97
+ #define _localtime32 localtime
98
+ #define _difftime32 difftime
99
+ #define _ctime32 ctime
100
+ #define _gmtime32 gmtime
101
+ #define _mktime32 mktime
102
+ #define _time32 time
103
+ #endif
104
+
105
+ #ifndef _TM_DEFINED
106
+ #define _TM_DEFINED
107
+ struct tm {
108
+ int tm_sec;
109
+ int tm_min;
110
+ int tm_hour;
111
+ int tm_mday;
112
+ int tm_mon;
113
+ int tm_year;
114
+ int tm_wday;
115
+ int tm_yday;
116
+ int tm_isdst;
117
+ };
118
+ #endif
119
+
120
+ #define CLOCKS_PER_SEC 1000
121
+
122
+ __MINGW_IMPORT int _daylight;
123
+ __MINGW_IMPORT long _dstbias;
124
+ __MINGW_IMPORT long _timezone;
125
+ __MINGW_IMPORT char * _tzname[2];
126
+ _CRTIMP errno_t __cdecl _get_daylight(int *_Daylight);
127
+ _CRTIMP errno_t __cdecl _get_dstbias(long *_Daylight_savings_bias);
128
+ _CRTIMP errno_t __cdecl _get_timezone(long *_Timezone);
129
+ _CRTIMP errno_t __cdecl _get_tzname(size_t *_ReturnValue,char *_Buffer,size_t _SizeInBytes,int _Index);
130
+ char *__cdecl asctime(const struct tm *_Tm);
131
+ _CRTIMP char *__cdecl _ctime32(const __time32_t *_Time);
132
+ clock_t __cdecl clock(void);
133
+ _CRTIMP double __cdecl _difftime32(__time32_t _Time1,__time32_t _Time2);
134
+ _CRTIMP struct tm *__cdecl _gmtime32(const __time32_t *_Time);
135
+ _CRTIMP struct tm *__cdecl _localtime32(const __time32_t *_Time);
136
+ size_t __cdecl strftime(char *_Buf,size_t _SizeInBytes,const char *_Format,const struct tm *_Tm);
137
+ _CRTIMP size_t __cdecl _strftime_l(char *_Buf,size_t _Max_size,const char *_Format,const struct tm *_Tm,_locale_t _Locale);
138
+ _CRTIMP char *__cdecl _strdate(char *_Buffer);
139
+ _CRTIMP char *__cdecl _strtime(char *_Buffer);
140
+ _CRTIMP __time32_t __cdecl _time32(__time32_t *_Time);
141
+ _CRTIMP __time32_t __cdecl _mktime32(struct tm *_Tm);
142
+ _CRTIMP __time32_t __cdecl _mkgmtime32(struct tm *_Tm);
143
+ #if defined (_POSIX_) || defined(__GNUC__)
144
+ void __cdecl tzset(void);
145
+ #else
146
+ _CRTIMP void __cdecl _tzset(void);
147
+ #endif
148
+
149
+ #if _INTEGRAL_MAX_BITS >= 64
150
+ double __cdecl _difftime64(__time64_t _Time1,__time64_t _Time2);
151
+ _CRTIMP char *__cdecl _ctime64(const __time64_t *_Time);
152
+ _CRTIMP struct tm *__cdecl _gmtime64(const __time64_t *_Time);
153
+ _CRTIMP struct tm *__cdecl _localtime64(const __time64_t *_Time);
154
+ _CRTIMP __time64_t __cdecl _mktime64(struct tm *_Tm);
155
+ _CRTIMP __time64_t __cdecl _mkgmtime64(struct tm *_Tm);
156
+ _CRTIMP __time64_t __cdecl _time64(__time64_t *_Time);
157
+ #endif
158
+ unsigned __cdecl _getsystime(struct tm *_Tm);
159
+ unsigned __cdecl _setsystime(struct tm *_Tm,unsigned _MilliSec);
160
+
161
+ #ifndef _SIZE_T_DEFINED
162
+ #define _SIZE_T_DEFINED
163
+ #ifdef _WIN64
164
+ #if defined(__GNUC__) && defined(__STRICT_ANSI__)
165
+ typedef unsigned int size_t __attribute__ ((mode (DI)));
166
+ #else
167
+ typedef unsigned __int64 size_t;
168
+ #endif
169
+ #else
170
+ typedef unsigned long size_t;
171
+ #endif
172
+ #endif
173
+
174
+ #ifndef _SSIZE_T_DEFINED
175
+ #define _SSIZE_T_DEFINED
176
+ #ifdef _WIN64
177
+ #if defined(__GNUC__) && defined(__STRICT_ANSI__)
178
+ typedef int ssize_t __attribute__ ((mode (DI)));
179
+ #else
180
+ typedef __int64 ssize_t;
181
+ #endif
182
+ #else
183
+ typedef long ssize_t;
184
+ #endif
185
+ #endif
186
+
187
+ #ifndef _WTIME_DEFINED
188
+ _CRTIMP wchar_t *__cdecl _wasctime(const struct tm *_Tm);
189
+ _CRTIMP wchar_t *__cdecl _wctime32(const __time32_t *_Time);
190
+ size_t __cdecl wcsftime(wchar_t *_Buf,size_t _SizeInWords,const wchar_t *_Format,const struct tm *_Tm);
191
+ _CRTIMP size_t __cdecl _wcsftime_l(wchar_t *_Buf,size_t _SizeInWords,const wchar_t *_Format,const struct tm *_Tm,_locale_t _Locale);
192
+ _CRTIMP wchar_t *__cdecl _wstrdate(wchar_t *_Buffer);
193
+ _CRTIMP wchar_t *__cdecl _wstrtime(wchar_t *_Buffer);
194
+ #if _INTEGRAL_MAX_BITS >= 64
195
+ _CRTIMP wchar_t *__cdecl _wctime64(const __time64_t *_Time);
196
+ #endif
197
+
198
+ #if !defined (RC_INVOKED) && !defined (_INC_WTIME_INL)
199
+ #define _INC_WTIME_INL
200
+ #ifdef _USE_32BIT_TIME_T
201
+ __CRT_INLINE wchar_t *__cdecl _wctime(const time_t *_Time) { return _wctime32(_Time); }
202
+ #else
203
+ __CRT_INLINE wchar_t *__cdecl _wctime(const time_t *_Time) { return _wctime64(_Time); }
204
+ #endif
205
+ #endif
206
+
207
+ #define _WTIME_DEFINED
208
+ #endif
209
+
210
+ #ifndef RC_INVOKED
211
+ double __cdecl difftime(time_t _Time1,time_t _Time2);
212
+ char *__cdecl ctime(const time_t *_Time);
213
+ struct tm *__cdecl gmtime(const time_t *_Time);
214
+ struct tm *__cdecl localtime(const time_t *_Time);
215
+ struct tm *__cdecl localtime_r(const time_t *_Time,struct tm *);
216
+
217
+ time_t __cdecl mktime(struct tm *_Tm);
218
+ time_t __cdecl _mkgmtime(struct tm *_Tm);
219
+ time_t __cdecl time(time_t *_Time);
220
+
221
+ #ifdef _USE_32BIT_TIME_T
222
+ #if 0
223
+ __CRT_INLINE double __cdecl difftime(time_t _Time1,time_t _Time2) { return _difftime32(_Time1,_Time2); }
224
+ __CRT_INLINE char *__cdecl ctime(const time_t *_Time) { return _ctime32(_Time); }
225
+ __CRT_INLINE struct tm *__cdecl gmtime(const time_t *_Time) { return _gmtime32(_Time); }
226
+ __CRT_INLINE struct tm *__cdecl localtime(const time_t *_Time) { return _localtime32(_Time); }
227
+ __CRT_INLINE time_t __cdecl mktime(struct tm *_Tm) { return _mktime32(_Tm); }
228
+ __CRT_INLINE time_t __cdecl _mkgmtime(struct tm *_Tm) { return _mkgmtime32(_Tm); }
229
+ __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time32(_Time); }
230
+ #endif
231
+ #else
232
+ __CRT_INLINE double __cdecl difftime(time_t _Time1,time_t _Time2) { return _difftime64(_Time1,_Time2); }
233
+ __CRT_INLINE char *__cdecl ctime(const time_t *_Time) { return _ctime64(_Time); }
234
+ __CRT_INLINE struct tm *__cdecl gmtime(const time_t *_Time) { return _gmtime64(_Time); }
235
+ __CRT_INLINE struct tm *__cdecl localtime(const time_t *_Time) { return _localtime64(_Time); }
236
+ __CRT_INLINE time_t __cdecl mktime(struct tm *_Tm) { return _mktime64(_Tm); }
237
+ __CRT_INLINE time_t __cdecl _mkgmtime(struct tm *_Tm) { return _mkgmtime64(_Tm); }
238
+ __CRT_INLINE time_t __cdecl time(time_t *_Time) { return _time64(_Time); }
239
+ #endif
240
+ #endif
241
+
242
+ #if !defined(NO_OLDNAMES) || defined(_POSIX)
243
+ #define CLK_TCK CLOCKS_PER_SEC
244
+
245
+ __MINGW_IMPORT int daylight;
246
+ __MINGW_IMPORT long dstbias;
247
+ __MINGW_IMPORT long timezone;
248
+ __MINGW_IMPORT char *tzname[2];
249
+ void __cdecl tzset(void);
250
+ #endif
251
+
252
+ #ifndef _TIMEVAL_DEFINED /* also in winsock[2].h */
253
+ #define _TIMEVAL_DEFINED
254
+ struct timeval {
255
+ long tv_sec;
256
+ long tv_usec;
257
+ };
258
+ #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
259
+ #define timercmp(tvp,uvp,cmp) ((tvp)->tv_sec cmp (uvp)->tv_sec || (tvp)->tv_sec==(uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec)
260
+ #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
261
+ #endif /* _TIMEVAL_DEFINED */
262
+
263
+ #ifndef __STRICT_ANSI__
264
+ #ifndef _TIMEZONE_DEFINED /* also in sys/time.h */
265
+ #define _TIMEZONE_DEFINED
266
+ struct timezone {
267
+ int tz_minuteswest;
268
+ int tz_dsttime;
269
+ };
270
+
271
+ extern int __cdecl mingw_gettimeofday (struct timeval *p, struct timezone *z);
272
+ #endif
273
+ #endif /* __STRICT_ANSI__ */
274
+
275
+ #ifdef __cplusplus
276
+ }
277
+ #endif
278
+
279
+ #pragma pack(pop)
280
+
281
+ #include <sec_api/time_s.h>
282
+
283
+ /* Adding timespec definition. */
284
+ #include <sys/timeb.h>
285
+
286
+ #endif /* End _TIME_H_ */
287
+
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file has no copyright assigned and is placed in the Public Domain.
3
+ * This file is part of the TinyCC package.
4
+ * No warranty is given; refer to the file DISCLAIMER within this package.
5
+ */
6
+
7
+ #ifndef _INC_UCHAR
8
+ #define _INC_UCHAR
9
+
10
+ /*
11
+ * The following defines are only valid when C11 (-std=c11) is used.
12
+ *
13
+ * ... a wide character constant prefixed by the letter u or U has type char16_t
14
+ * or char32_t, respectively, unsigned integer types defined in the <uchar.h>
15
+ * header.
16
+ */
17
+
18
+ #if __STDC_VERSION__ >= 201112L
19
+ /**
20
+ * __STDC_UTF_16__ The integer constant 1, intended to indicate that
21
+ * values of type char16_t are UTF-16 encoded.
22
+ */
23
+ #define __STDC_UTF_16__ 1
24
+ /**
25
+ * __STDC_UTF_32__ The integer constant 1, intended to indicate that
26
+ * values of type char32_t are UTF-32 encoded.
27
+ */
28
+ #define __STDC_UTF_32__ 1
29
+
30
+ typedef unsigned short char16_t;
31
+ typedef unsigned int char32_t;
32
+ #endif /* __STDC_VERSION__ >= 201112L */
33
+ #endif /* _INC_UCHAR */
@@ -0,0 +1 @@
1
+ #include <sys/unistd.h>
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file has no copyright assigned and is placed in the Public Domain.
3
+ * This file is part of the w64 mingw-runtime package.
4
+ * No warranty is given; refer to the file DISCLAIMER within this package.
5
+ */
6
+ #ifndef _INC_VADEFS
7
+ #define _INC_VADEFS
8
+
9
+ //!__TINYC__: GNUC specific stuff removed
10
+
11
+ #endif
@@ -0,0 +1,4 @@
1
+ /*
2
+ * TODO: Nothing here yet. Should provide UNIX compatibility constants
3
+ * comparable to those in limits.h and float.h.
4
+ */
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file has no copyright assigned and is placed in the Public Domain.
3
+ * This file is part of the w64 mingw-runtime package.
4
+ * No warranty is given; refer to the file DISCLAIMER within this package.
5
+ */
6
+ #ifndef _VARARGS_H
7
+ #define _VARARGS_H
8
+
9
+ #error "TinyCC no longer implements <varargs.h>."
10
+ #error "Revise your code to use <stdarg.h>."
11
+
12
+ #endif