@cpp-linter/clang-tidy-linux-arm64 17.0.6 → 18.1.8

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.
Files changed (242) hide show
  1. package/README.md +2 -2
  2. package/bin/clang-tidy +2 -2
  3. package/lib/clang/{17 → 18}/include/__clang_cuda_device_functions.h +2 -2
  4. package/lib/clang/{17 → 18}/include/__clang_cuda_libdevice_declares.h +2 -2
  5. package/lib/clang/{17 → 18}/include/__clang_cuda_math.h +2 -2
  6. package/lib/clang/{17 → 18}/include/__clang_cuda_runtime_wrapper.h +2 -2
  7. package/lib/clang/{17 → 18}/include/__clang_hip_math.h +192 -171
  8. package/lib/clang/{17 → 18}/include/__clang_hip_runtime_wrapper.h +34 -26
  9. package/lib/clang/18/include/__stdarg___gnuc_va_list.h +13 -0
  10. package/lib/clang/18/include/__stdarg___va_copy.h +12 -0
  11. package/lib/clang/18/include/__stdarg_va_arg.h +22 -0
  12. package/lib/clang/18/include/__stdarg_va_copy.h +12 -0
  13. package/lib/clang/18/include/__stdarg_va_list.h +13 -0
  14. package/lib/clang/{17 → 18}/include/__stddef_max_align_t.h +1 -1
  15. package/lib/clang/18/include/__stddef_null.h +29 -0
  16. package/lib/clang/18/include/__stddef_nullptr_t.h +29 -0
  17. package/lib/clang/18/include/__stddef_offsetof.h +17 -0
  18. package/lib/clang/18/include/__stddef_ptrdiff_t.h +20 -0
  19. package/lib/clang/18/include/__stddef_rsize_t.h +20 -0
  20. package/lib/clang/18/include/__stddef_size_t.h +20 -0
  21. package/lib/clang/18/include/__stddef_unreachable.h +21 -0
  22. package/lib/clang/18/include/__stddef_wchar_t.h +28 -0
  23. package/lib/clang/18/include/__stddef_wint_t.h +15 -0
  24. package/lib/clang/{17/include/adxintrin.h → 18/include/adcintrin.h} +27 -94
  25. package/lib/clang/18/include/adxintrin.h +102 -0
  26. package/lib/clang/{17 → 18}/include/altivec.h +31 -12
  27. package/lib/clang/{17 → 18}/include/ammintrin.h +4 -4
  28. package/lib/clang/{17 → 18}/include/arm_acle.h +111 -31
  29. package/lib/clang/{17 → 18}/include/arm_neon.h +85 -327
  30. package/lib/clang/18/include/arm_sme.h +2412 -0
  31. package/lib/clang/{17 → 18}/include/arm_sve.h +7386 -351
  32. package/lib/clang/18/include/arm_vector_types.h +345 -0
  33. package/lib/clang/{17 → 18}/include/avx2intrin.h +24 -3
  34. package/lib/clang/{17 → 18}/include/avx512bf16intrin.h +3 -2
  35. package/lib/clang/{17 → 18}/include/avx512bitalgintrin.h +4 -1
  36. package/lib/clang/{17 → 18}/include/avx512bwintrin.h +28 -38
  37. package/lib/clang/{17 → 18}/include/avx512cdintrin.h +3 -1
  38. package/lib/clang/{17 → 18}/include/avx512dqintrin.h +4 -2
  39. package/lib/clang/{17 → 18}/include/avx512fintrin.h +7 -3
  40. package/lib/clang/{17 → 18}/include/avx512fp16intrin.h +6 -4
  41. package/lib/clang/{17 → 18}/include/avx512ifmaintrin.h +3 -1
  42. package/lib/clang/{17 → 18}/include/avx512ifmavlintrin.h +8 -2
  43. package/lib/clang/{17 → 18}/include/avx512pfintrin.h +0 -5
  44. package/lib/clang/{17 → 18}/include/avx512vbmi2intrin.h +1 -1
  45. package/lib/clang/{17 → 18}/include/avx512vbmiintrin.h +3 -2
  46. package/lib/clang/{17 → 18}/include/avx512vbmivlintrin.h +8 -3
  47. package/lib/clang/{17 → 18}/include/avx512vlbf16intrin.h +8 -6
  48. package/lib/clang/{17 → 18}/include/avx512vlbitalgintrin.h +8 -2
  49. package/lib/clang/{17 → 18}/include/avx512vlbwintrin.h +8 -2
  50. package/lib/clang/{17 → 18}/include/avx512vlcdintrin.h +8 -3
  51. package/lib/clang/{17 → 18}/include/avx512vldqintrin.h +8 -2
  52. package/lib/clang/{17 → 18}/include/avx512vlfp16intrin.h +2 -2
  53. package/lib/clang/{17 → 18}/include/avx512vlintrin.h +8 -2
  54. package/lib/clang/{17 → 18}/include/avx512vlvbmi2intrin.h +8 -2
  55. package/lib/clang/{17 → 18}/include/avx512vlvnniintrin.h +8 -2
  56. package/lib/clang/{17 → 18}/include/avx512vlvp2intersectintrin.h +6 -4
  57. package/lib/clang/{17 → 18}/include/avx512vnniintrin.h +3 -2
  58. package/lib/clang/{17 → 18}/include/avx512vp2intersectintrin.h +3 -2
  59. package/lib/clang/{17 → 18}/include/avx512vpopcntdqintrin.h +3 -1
  60. package/lib/clang/{17 → 18}/include/avx512vpopcntdqvlintrin.h +6 -2
  61. package/lib/clang/{17 → 18}/include/avxintrin.h +9 -5
  62. package/lib/clang/{17 → 18}/include/bmiintrin.h +231 -46
  63. package/lib/clang/{17 → 18}/include/emmintrin.h +10 -10
  64. package/lib/clang/{17 → 18}/include/gfniintrin.h +23 -6
  65. package/lib/clang/18/include/hlsl/hlsl_intrinsics.h +624 -0
  66. package/lib/clang/18/include/ia32intrin.h +863 -0
  67. package/lib/clang/{17 → 18}/include/immintrin.h +66 -3
  68. package/lib/clang/{17 → 18}/include/intrin.h +16 -0
  69. package/lib/clang/{17 → 18}/include/larchintrin.h +13 -1
  70. package/lib/clang/18/include/lasxintrin.h +3884 -0
  71. package/lib/clang/{17 → 18}/include/limits.h +2 -4
  72. package/lib/clang/{17/include/llvm_libc_wrappers/stdio.h → 18/include/llvm_libc_wrappers/assert.h} +7 -7
  73. package/lib/clang/{17 → 18}/include/llvm_libc_wrappers/ctype.h +17 -0
  74. package/lib/clang/18/include/llvm_libc_wrappers/stdio.h +80 -0
  75. package/lib/clang/{17 → 18}/include/llvm_libc_wrappers/stdlib.h +4 -1
  76. package/lib/clang/18/include/llvm_libc_wrappers/string.h +96 -0
  77. package/lib/clang/{17/include/llvm_libc_wrappers/string.h → 18/include/llvm_libc_wrappers/time.h} +9 -12
  78. package/lib/clang/18/include/lsxintrin.h +3750 -0
  79. package/lib/clang/{17 → 18}/include/mmintrin.h +7 -5
  80. package/lib/clang/{17 → 18}/include/module.modulemap +155 -2
  81. package/lib/clang/{17 → 18}/include/opencl-c-base.h +5 -0
  82. package/lib/clang/{17 → 18}/include/openmp_wrappers/cmath +1 -1
  83. package/lib/clang/{17 → 18}/include/pmmintrin.h +3 -2
  84. package/lib/clang/18/include/ppc_wrappers/nmmintrin.h +26 -0
  85. package/lib/clang/{17 → 18}/include/ppc_wrappers/smmintrin.h +35 -15
  86. package/lib/clang/18/include/riscv_bitmanip.h +195 -0
  87. package/lib/clang/18/include/riscv_crypto.h +170 -0
  88. package/lib/clang/{17 → 18}/include/riscv_ntlh.h +3 -5
  89. package/lib/clang/{17 → 18}/include/riscv_vector.h +31 -0
  90. package/lib/clang/{17 → 18}/include/smmintrin.h +3 -3
  91. package/lib/clang/{17 → 18}/include/stdalign.h +1 -3
  92. package/lib/clang/18/include/stdarg.h +79 -0
  93. package/lib/clang/{17 → 18}/include/stdatomic.h +3 -5
  94. package/lib/clang/18/include/stdckdint.h +42 -0
  95. package/lib/clang/18/include/stddef.h +123 -0
  96. package/lib/clang/{17 → 18}/include/stdint.h +19 -48
  97. package/lib/clang/{17 → 18}/include/stdnoreturn.h +2 -2
  98. package/lib/clang/{17 → 18}/include/tmmintrin.h +7 -2
  99. package/lib/clang/18/include/usermsrintrin.h +51 -0
  100. package/lib/clang/{17 → 18}/include/vaesintrin.h +4 -2
  101. package/lib/clang/{17 → 18}/include/vecintrin.h +217 -199
  102. package/lib/clang/{17 → 18}/include/x86gprintrin.h +5 -0
  103. package/lib/clang/{17 → 18}/include/xmmintrin.h +9 -5
  104. package/package.json +6 -6
  105. package/lib/clang/17/include/arm_sme_draft_spec_subject_to_change.h +0 -642
  106. package/lib/clang/17/include/hlsl/hlsl_intrinsics.h +0 -480
  107. package/lib/clang/17/include/ia32intrin.h +0 -441
  108. package/lib/clang/17/include/stdarg.h +0 -51
  109. package/lib/clang/17/include/stddef.h +0 -133
  110. /package/lib/clang/{17 → 18}/include/__clang_cuda_builtin_vars.h +0 -0
  111. /package/lib/clang/{17 → 18}/include/__clang_cuda_cmath.h +0 -0
  112. /package/lib/clang/{17 → 18}/include/__clang_cuda_complex_builtins.h +0 -0
  113. /package/lib/clang/{17 → 18}/include/__clang_cuda_intrinsics.h +0 -0
  114. /package/lib/clang/{17 → 18}/include/__clang_cuda_math_forward_declares.h +0 -0
  115. /package/lib/clang/{17 → 18}/include/__clang_cuda_texture_intrinsics.h +0 -0
  116. /package/lib/clang/{17 → 18}/include/__clang_hip_cmath.h +0 -0
  117. /package/lib/clang/{17 → 18}/include/__clang_hip_libdevice_declares.h +0 -0
  118. /package/lib/clang/{17 → 18}/include/__clang_hip_stdlib.h +0 -0
  119. /package/lib/clang/{17 → 18}/include/__wmmintrin_aes.h +0 -0
  120. /package/lib/clang/{17 → 18}/include/__wmmintrin_pclmul.h +0 -0
  121. /package/lib/clang/{17 → 18}/include/amxcomplexintrin.h +0 -0
  122. /package/lib/clang/{17 → 18}/include/amxfp16intrin.h +0 -0
  123. /package/lib/clang/{17 → 18}/include/amxintrin.h +0 -0
  124. /package/lib/clang/{17 → 18}/include/arm64intr.h +0 -0
  125. /package/lib/clang/{17 → 18}/include/arm_bf16.h +0 -0
  126. /package/lib/clang/{17 → 18}/include/arm_cde.h +0 -0
  127. /package/lib/clang/{17 → 18}/include/arm_cmse.h +0 -0
  128. /package/lib/clang/{17 → 18}/include/arm_fp16.h +0 -0
  129. /package/lib/clang/{17 → 18}/include/arm_mve.h +0 -0
  130. /package/lib/clang/{17 → 18}/include/arm_neon_sve_bridge.h +0 -0
  131. /package/lib/clang/{17 → 18}/include/armintr.h +0 -0
  132. /package/lib/clang/{17 → 18}/include/avx512erintrin.h +0 -0
  133. /package/lib/clang/{17 → 18}/include/avxifmaintrin.h +0 -0
  134. /package/lib/clang/{17 → 18}/include/avxneconvertintrin.h +0 -0
  135. /package/lib/clang/{17 → 18}/include/avxvnniint16intrin.h +0 -0
  136. /package/lib/clang/{17 → 18}/include/avxvnniint8intrin.h +0 -0
  137. /package/lib/clang/{17 → 18}/include/avxvnniintrin.h +0 -0
  138. /package/lib/clang/{17 → 18}/include/bmi2intrin.h +0 -0
  139. /package/lib/clang/{17 → 18}/include/builtins.h +0 -0
  140. /package/lib/clang/{17 → 18}/include/cet.h +0 -0
  141. /package/lib/clang/{17 → 18}/include/cetintrin.h +0 -0
  142. /package/lib/clang/{17 → 18}/include/cldemoteintrin.h +0 -0
  143. /package/lib/clang/{17 → 18}/include/clflushoptintrin.h +0 -0
  144. /package/lib/clang/{17 → 18}/include/clwbintrin.h +0 -0
  145. /package/lib/clang/{17 → 18}/include/clzerointrin.h +0 -0
  146. /package/lib/clang/{17 → 18}/include/cmpccxaddintrin.h +0 -0
  147. /package/lib/clang/{17 → 18}/include/cpuid.h +0 -0
  148. /package/lib/clang/{17 → 18}/include/crc32intrin.h +0 -0
  149. /package/lib/clang/{17 → 18}/include/cuda_wrappers/algorithm +0 -0
  150. /package/lib/clang/{17 → 18}/include/cuda_wrappers/bits/basic_string.h +0 -0
  151. /package/lib/clang/{17 → 18}/include/cuda_wrappers/bits/basic_string.tcc +0 -0
  152. /package/lib/clang/{17 → 18}/include/cuda_wrappers/bits/shared_ptr_base.h +0 -0
  153. /package/lib/clang/{17 → 18}/include/cuda_wrappers/cmath +0 -0
  154. /package/lib/clang/{17 → 18}/include/cuda_wrappers/complex +0 -0
  155. /package/lib/clang/{17 → 18}/include/cuda_wrappers/new +0 -0
  156. /package/lib/clang/{17 → 18}/include/enqcmdintrin.h +0 -0
  157. /package/lib/clang/{17 → 18}/include/f16cintrin.h +0 -0
  158. /package/lib/clang/{17 → 18}/include/float.h +0 -0
  159. /package/lib/clang/{17 → 18}/include/fma4intrin.h +0 -0
  160. /package/lib/clang/{17 → 18}/include/fmaintrin.h +0 -0
  161. /package/lib/clang/{17 → 18}/include/fxsrintrin.h +0 -0
  162. /package/lib/clang/{17 → 18}/include/hexagon_circ_brev_intrinsics.h +0 -0
  163. /package/lib/clang/{17 → 18}/include/hexagon_protos.h +0 -0
  164. /package/lib/clang/{17 → 18}/include/hexagon_types.h +0 -0
  165. /package/lib/clang/{17 → 18}/include/hlsl/hlsl_basic_types.h +0 -0
  166. /package/lib/clang/{17 → 18}/include/hlsl.h +0 -0
  167. /package/lib/clang/{17 → 18}/include/hresetintrin.h +0 -0
  168. /package/lib/clang/{17 → 18}/include/htmintrin.h +0 -0
  169. /package/lib/clang/{17 → 18}/include/htmxlintrin.h +0 -0
  170. /package/lib/clang/{17 → 18}/include/hvx_hexagon_protos.h +0 -0
  171. /package/lib/clang/{17 → 18}/include/inttypes.h +0 -0
  172. /package/lib/clang/{17 → 18}/include/invpcidintrin.h +0 -0
  173. /package/lib/clang/{17 → 18}/include/iso646.h +0 -0
  174. /package/lib/clang/{17 → 18}/include/keylockerintrin.h +0 -0
  175. /package/lib/clang/{17 → 18}/include/llvm_libc_wrappers/inttypes.h +0 -0
  176. /package/lib/clang/{17 → 18}/include/lwpintrin.h +0 -0
  177. /package/lib/clang/{17 → 18}/include/lzcntintrin.h +0 -0
  178. /package/lib/clang/{17 → 18}/include/mm3dnow.h +0 -0
  179. /package/lib/clang/{17 → 18}/include/mm_malloc.h +0 -0
  180. /package/lib/clang/{17 → 18}/include/movdirintrin.h +0 -0
  181. /package/lib/clang/{17 → 18}/include/msa.h +0 -0
  182. /package/lib/clang/{17 → 18}/include/mwaitxintrin.h +0 -0
  183. /package/lib/clang/{17 → 18}/include/nmmintrin.h +0 -0
  184. /package/lib/clang/{17 → 18}/include/opencl-c.h +0 -0
  185. /package/lib/clang/{17 → 18}/include/openmp_wrappers/__clang_openmp_device_functions.h +0 -0
  186. /package/lib/clang/{17 → 18}/include/openmp_wrappers/complex +0 -0
  187. /package/lib/clang/{17 → 18}/include/openmp_wrappers/complex.h +0 -0
  188. /package/lib/clang/{17 → 18}/include/openmp_wrappers/complex_cmath.h +0 -0
  189. /package/lib/clang/{17 → 18}/include/openmp_wrappers/math.h +0 -0
  190. /package/lib/clang/{17 → 18}/include/openmp_wrappers/new +0 -0
  191. /package/lib/clang/{17 → 18}/include/pconfigintrin.h +0 -0
  192. /package/lib/clang/{17 → 18}/include/pkuintrin.h +0 -0
  193. /package/lib/clang/{17 → 18}/include/popcntintrin.h +0 -0
  194. /package/lib/clang/{17 → 18}/include/ppc_wrappers/bmi2intrin.h +0 -0
  195. /package/lib/clang/{17 → 18}/include/ppc_wrappers/bmiintrin.h +0 -0
  196. /package/lib/clang/{17 → 18}/include/ppc_wrappers/emmintrin.h +0 -0
  197. /package/lib/clang/{17 → 18}/include/ppc_wrappers/immintrin.h +0 -0
  198. /package/lib/clang/{17 → 18}/include/ppc_wrappers/mm_malloc.h +0 -0
  199. /package/lib/clang/{17 → 18}/include/ppc_wrappers/mmintrin.h +0 -0
  200. /package/lib/clang/{17 → 18}/include/ppc_wrappers/pmmintrin.h +0 -0
  201. /package/lib/clang/{17 → 18}/include/ppc_wrappers/tmmintrin.h +0 -0
  202. /package/lib/clang/{17 → 18}/include/ppc_wrappers/x86gprintrin.h +0 -0
  203. /package/lib/clang/{17 → 18}/include/ppc_wrappers/x86intrin.h +0 -0
  204. /package/lib/clang/{17 → 18}/include/ppc_wrappers/xmmintrin.h +0 -0
  205. /package/lib/clang/{17 → 18}/include/prfchiintrin.h +0 -0
  206. /package/lib/clang/{17 → 18}/include/prfchwintrin.h +0 -0
  207. /package/lib/clang/{17 → 18}/include/ptwriteintrin.h +0 -0
  208. /package/lib/clang/{17 → 18}/include/raointintrin.h +0 -0
  209. /package/lib/clang/{17 → 18}/include/rdpruintrin.h +0 -0
  210. /package/lib/clang/{17 → 18}/include/rdseedintrin.h +0 -0
  211. /package/lib/clang/{17 → 18}/include/rtmintrin.h +0 -0
  212. /package/lib/clang/{17 → 18}/include/s390intrin.h +0 -0
  213. /package/lib/clang/{17 → 18}/include/serializeintrin.h +0 -0
  214. /package/lib/clang/{17 → 18}/include/sgxintrin.h +0 -0
  215. /package/lib/clang/{17 → 18}/include/sha512intrin.h +0 -0
  216. /package/lib/clang/{17 → 18}/include/shaintrin.h +0 -0
  217. /package/lib/clang/{17 → 18}/include/sifive_vector.h +0 -0
  218. /package/lib/clang/{17 → 18}/include/sm3intrin.h +0 -0
  219. /package/lib/clang/{17 → 18}/include/sm4intrin.h +0 -0
  220. /package/lib/clang/{17 → 18}/include/stdbool.h +0 -0
  221. /package/lib/clang/{17 → 18}/include/tbmintrin.h +0 -0
  222. /package/lib/clang/{17 → 18}/include/tgmath.h +0 -0
  223. /package/lib/clang/{17 → 18}/include/tsxldtrkintrin.h +0 -0
  224. /package/lib/clang/{17 → 18}/include/uintrintrin.h +0 -0
  225. /package/lib/clang/{17 → 18}/include/unwind.h +0 -0
  226. /package/lib/clang/{17 → 18}/include/vadefs.h +0 -0
  227. /package/lib/clang/{17 → 18}/include/varargs.h +0 -0
  228. /package/lib/clang/{17 → 18}/include/velintrin.h +0 -0
  229. /package/lib/clang/{17 → 18}/include/velintrin_approx.h +0 -0
  230. /package/lib/clang/{17 → 18}/include/velintrin_gen.h +0 -0
  231. /package/lib/clang/{17 → 18}/include/vpclmulqdqintrin.h +0 -0
  232. /package/lib/clang/{17 → 18}/include/waitpkgintrin.h +0 -0
  233. /package/lib/clang/{17 → 18}/include/wasm_simd128.h +0 -0
  234. /package/lib/clang/{17 → 18}/include/wbnoinvdintrin.h +0 -0
  235. /package/lib/clang/{17 → 18}/include/wmmintrin.h +0 -0
  236. /package/lib/clang/{17 → 18}/include/x86intrin.h +0 -0
  237. /package/lib/clang/{17 → 18}/include/xopintrin.h +0 -0
  238. /package/lib/clang/{17 → 18}/include/xsavecintrin.h +0 -0
  239. /package/lib/clang/{17 → 18}/include/xsaveintrin.h +0 -0
  240. /package/lib/clang/{17 → 18}/include/xsaveoptintrin.h +0 -0
  241. /package/lib/clang/{17 → 18}/include/xsavesintrin.h +0 -0
  242. /package/lib/clang/{17 → 18}/include/xtestintrin.h +0 -0
@@ -1,441 +0,0 @@
1
- /* ===-------- ia32intrin.h ---------------------------------------------------===
2
- *
3
- * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
- * See https://llvm.org/LICENSE.txt for license information.
5
- * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
- *
7
- *===-----------------------------------------------------------------------===
8
- */
9
-
10
- #ifndef __X86INTRIN_H
11
- #error "Never use <ia32intrin.h> directly; include <x86intrin.h> instead."
12
- #endif
13
-
14
- #ifndef __IA32INTRIN_H
15
- #define __IA32INTRIN_H
16
-
17
- /* Define the default attributes for the functions in this file. */
18
- #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__))
19
- #define __DEFAULT_FN_ATTRS_CRC32 __attribute__((__always_inline__, __nodebug__, __target__("crc32")))
20
-
21
- #if defined(__cplusplus) && (__cplusplus >= 201103L)
22
- #define __DEFAULT_FN_ATTRS_CAST __attribute__((__always_inline__)) constexpr
23
- #define __DEFAULT_FN_ATTRS_CONSTEXPR __DEFAULT_FN_ATTRS constexpr
24
- #else
25
- #define __DEFAULT_FN_ATTRS_CAST __attribute__((__always_inline__))
26
- #define __DEFAULT_FN_ATTRS_CONSTEXPR __DEFAULT_FN_ATTRS
27
- #endif
28
-
29
- /** Find the first set bit starting from the lsb. Result is undefined if
30
- * input is 0.
31
- *
32
- * \headerfile <x86intrin.h>
33
- *
34
- * This intrinsic corresponds to the <c> BSF </c> instruction or the
35
- * <c> TZCNT </c> instruction.
36
- *
37
- * \param __A
38
- * A 32-bit integer operand.
39
- * \returns A 32-bit integer containing the bit number.
40
- */
41
- static __inline__ int __DEFAULT_FN_ATTRS_CONSTEXPR
42
- __bsfd(int __A) {
43
- return __builtin_ctz((unsigned int)__A);
44
- }
45
-
46
- /** Find the first set bit starting from the msb. Result is undefined if
47
- * input is 0.
48
- *
49
- * \headerfile <x86intrin.h>
50
- *
51
- * This intrinsic corresponds to the <c> BSR </c> instruction or the
52
- * <c> LZCNT </c> instruction and an <c> XOR </c>.
53
- *
54
- * \param __A
55
- * A 32-bit integer operand.
56
- * \returns A 32-bit integer containing the bit number.
57
- */
58
- static __inline__ int __DEFAULT_FN_ATTRS_CONSTEXPR
59
- __bsrd(int __A) {
60
- return 31 - __builtin_clz((unsigned int)__A);
61
- }
62
-
63
- /** Swaps the bytes in the input. Converting little endian to big endian or
64
- * vice versa.
65
- *
66
- * \headerfile <x86intrin.h>
67
- *
68
- * This intrinsic corresponds to the <c> BSWAP </c> instruction.
69
- *
70
- * \param __A
71
- * A 32-bit integer operand.
72
- * \returns A 32-bit integer containing the swapped bytes.
73
- */
74
- static __inline__ int __DEFAULT_FN_ATTRS_CONSTEXPR
75
- __bswapd(int __A) {
76
- return (int)__builtin_bswap32((unsigned int)__A);
77
- }
78
-
79
- static __inline__ int __DEFAULT_FN_ATTRS_CONSTEXPR
80
- _bswap(int __A) {
81
- return (int)__builtin_bswap32((unsigned int)__A);
82
- }
83
-
84
- #define _bit_scan_forward(A) __bsfd((A))
85
- #define _bit_scan_reverse(A) __bsrd((A))
86
-
87
- #ifdef __x86_64__
88
- /** Find the first set bit starting from the lsb. Result is undefined if
89
- * input is 0.
90
- *
91
- * \headerfile <x86intrin.h>
92
- *
93
- * This intrinsic corresponds to the <c> BSF </c> instruction or the
94
- * <c> TZCNT </c> instruction.
95
- *
96
- * \param __A
97
- * A 64-bit integer operand.
98
- * \returns A 32-bit integer containing the bit number.
99
- */
100
- static __inline__ int __DEFAULT_FN_ATTRS_CONSTEXPR
101
- __bsfq(long long __A) {
102
- return (long long)__builtin_ctzll((unsigned long long)__A);
103
- }
104
-
105
- /** Find the first set bit starting from the msb. Result is undefined if
106
- * input is 0.
107
- *
108
- * \headerfile <x86intrin.h>
109
- *
110
- * This intrinsic corresponds to the <c> BSR </c> instruction or the
111
- * <c> LZCNT </c> instruction and an <c> XOR </c>.
112
- *
113
- * \param __A
114
- * A 64-bit integer operand.
115
- * \returns A 32-bit integer containing the bit number.
116
- */
117
- static __inline__ int __DEFAULT_FN_ATTRS_CONSTEXPR
118
- __bsrq(long long __A) {
119
- return 63 - __builtin_clzll((unsigned long long)__A);
120
- }
121
-
122
- /** Swaps the bytes in the input. Converting little endian to big endian or
123
- * vice versa.
124
- *
125
- * \headerfile <x86intrin.h>
126
- *
127
- * This intrinsic corresponds to the <c> BSWAP </c> instruction.
128
- *
129
- * \param __A
130
- * A 64-bit integer operand.
131
- * \returns A 64-bit integer containing the swapped bytes.
132
- */
133
- static __inline__ long long __DEFAULT_FN_ATTRS_CONSTEXPR
134
- __bswapq(long long __A) {
135
- return (long long)__builtin_bswap64((unsigned long long)__A);
136
- }
137
-
138
- #define _bswap64(A) __bswapq((A))
139
- #endif
140
-
141
- /** Counts the number of bits in the source operand having a value of 1.
142
- *
143
- * \headerfile <x86intrin.h>
144
- *
145
- * This intrinsic corresponds to the <c> POPCNT </c> instruction or a
146
- * a sequence of arithmetic and logic ops to calculate it.
147
- *
148
- * \param __A
149
- * An unsigned 32-bit integer operand.
150
- * \returns A 32-bit integer containing the number of bits with value 1 in the
151
- * source operand.
152
- */
153
- static __inline__ int __DEFAULT_FN_ATTRS_CONSTEXPR
154
- __popcntd(unsigned int __A)
155
- {
156
- return __builtin_popcount(__A);
157
- }
158
-
159
- #define _popcnt32(A) __popcntd((A))
160
-
161
- #ifdef __x86_64__
162
- /** Counts the number of bits in the source operand having a value of 1.
163
- *
164
- * \headerfile <x86intrin.h>
165
- *
166
- * This intrinsic corresponds to the <c> POPCNT </c> instruction or a
167
- * a sequence of arithmetic and logic ops to calculate it.
168
- *
169
- * \param __A
170
- * An unsigned 64-bit integer operand.
171
- * \returns A 64-bit integer containing the number of bits with value 1 in the
172
- * source operand.
173
- */
174
- static __inline__ long long __DEFAULT_FN_ATTRS_CONSTEXPR
175
- __popcntq(unsigned long long __A)
176
- {
177
- return __builtin_popcountll(__A);
178
- }
179
-
180
- #define _popcnt64(A) __popcntq((A))
181
- #endif /* __x86_64__ */
182
-
183
- #ifdef __x86_64__
184
- static __inline__ unsigned long long __DEFAULT_FN_ATTRS
185
- __readeflags(void)
186
- {
187
- return __builtin_ia32_readeflags_u64();
188
- }
189
-
190
- static __inline__ void __DEFAULT_FN_ATTRS
191
- __writeeflags(unsigned long long __f)
192
- {
193
- __builtin_ia32_writeeflags_u64(__f);
194
- }
195
-
196
- #else /* !__x86_64__ */
197
- static __inline__ unsigned int __DEFAULT_FN_ATTRS
198
- __readeflags(void)
199
- {
200
- return __builtin_ia32_readeflags_u32();
201
- }
202
-
203
- static __inline__ void __DEFAULT_FN_ATTRS
204
- __writeeflags(unsigned int __f)
205
- {
206
- __builtin_ia32_writeeflags_u32(__f);
207
- }
208
- #endif /* !__x86_64__ */
209
-
210
- /** Cast a 32-bit float value to a 32-bit unsigned integer value
211
- *
212
- * \headerfile <x86intrin.h>
213
- * This intrinsic corresponds to the <c> VMOVD / MOVD </c> instruction in x86_64,
214
- * and corresponds to the <c> VMOVL / MOVL </c> instruction in ia32.
215
- *
216
- * \param __A
217
- * A 32-bit float value.
218
- * \returns a 32-bit unsigned integer containing the converted value.
219
- */
220
- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CAST
221
- _castf32_u32(float __A) {
222
- return __builtin_bit_cast(unsigned int, __A);
223
- }
224
-
225
- /** Cast a 64-bit float value to a 64-bit unsigned integer value
226
- *
227
- * \headerfile <x86intrin.h>
228
- * This intrinsic corresponds to the <c> VMOVQ / MOVQ </c> instruction in x86_64,
229
- * and corresponds to the <c> VMOVL / MOVL </c> instruction in ia32.
230
- *
231
- * \param __A
232
- * A 64-bit float value.
233
- * \returns a 64-bit unsigned integer containing the converted value.
234
- */
235
- static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CAST
236
- _castf64_u64(double __A) {
237
- return __builtin_bit_cast(unsigned long long, __A);
238
- }
239
-
240
- /** Cast a 32-bit unsigned integer value to a 32-bit float value
241
- *
242
- * \headerfile <x86intrin.h>
243
- * This intrinsic corresponds to the <c> VMOVQ / MOVQ </c> instruction in x86_64,
244
- * and corresponds to the <c> FLDS </c> instruction in ia32.
245
- *
246
- * \param __A
247
- * A 32-bit unsigned integer value.
248
- * \returns a 32-bit float value containing the converted value.
249
- */
250
- static __inline__ float __DEFAULT_FN_ATTRS_CAST
251
- _castu32_f32(unsigned int __A) {
252
- return __builtin_bit_cast(float, __A);
253
- }
254
-
255
- /** Cast a 64-bit unsigned integer value to a 64-bit float value
256
- *
257
- * \headerfile <x86intrin.h>
258
- * This intrinsic corresponds to the <c> VMOVQ / MOVQ </c> instruction in x86_64,
259
- * and corresponds to the <c> FLDL </c> instruction in ia32.
260
- *
261
- * \param __A
262
- * A 64-bit unsigned integer value.
263
- * \returns a 64-bit float value containing the converted value.
264
- */
265
- static __inline__ double __DEFAULT_FN_ATTRS_CAST
266
- _castu64_f64(unsigned long long __A) {
267
- return __builtin_bit_cast(double, __A);
268
- }
269
-
270
- /** Adds the unsigned integer operand to the CRC-32C checksum of the
271
- * unsigned char operand.
272
- *
273
- * \headerfile <x86intrin.h>
274
- *
275
- * This intrinsic corresponds to the <c> CRC32B </c> instruction.
276
- *
277
- * \param __C
278
- * An unsigned integer operand to add to the CRC-32C checksum of operand
279
- * \a __D.
280
- * \param __D
281
- * An unsigned 8-bit integer operand used to compute the CRC-32C checksum.
282
- * \returns The result of adding operand \a __C to the CRC-32C checksum of
283
- * operand \a __D.
284
- */
285
- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CRC32
286
- __crc32b(unsigned int __C, unsigned char __D)
287
- {
288
- return __builtin_ia32_crc32qi(__C, __D);
289
- }
290
-
291
- /** Adds the unsigned integer operand to the CRC-32C checksum of the
292
- * unsigned short operand.
293
- *
294
- * \headerfile <x86intrin.h>
295
- *
296
- * This intrinsic corresponds to the <c> CRC32W </c> instruction.
297
- *
298
- * \param __C
299
- * An unsigned integer operand to add to the CRC-32C checksum of operand
300
- * \a __D.
301
- * \param __D
302
- * An unsigned 16-bit integer operand used to compute the CRC-32C checksum.
303
- * \returns The result of adding operand \a __C to the CRC-32C checksum of
304
- * operand \a __D.
305
- */
306
- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CRC32
307
- __crc32w(unsigned int __C, unsigned short __D)
308
- {
309
- return __builtin_ia32_crc32hi(__C, __D);
310
- }
311
-
312
- /** Adds the unsigned integer operand to the CRC-32C checksum of the
313
- * second unsigned integer operand.
314
- *
315
- * \headerfile <x86intrin.h>
316
- *
317
- * This intrinsic corresponds to the <c> CRC32D </c> instruction.
318
- *
319
- * \param __C
320
- * An unsigned integer operand to add to the CRC-32C checksum of operand
321
- * \a __D.
322
- * \param __D
323
- * An unsigned 32-bit integer operand used to compute the CRC-32C checksum.
324
- * \returns The result of adding operand \a __C to the CRC-32C checksum of
325
- * operand \a __D.
326
- */
327
- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CRC32
328
- __crc32d(unsigned int __C, unsigned int __D)
329
- {
330
- return __builtin_ia32_crc32si(__C, __D);
331
- }
332
-
333
- #ifdef __x86_64__
334
- /** Adds the unsigned integer operand to the CRC-32C checksum of the
335
- * unsigned 64-bit integer operand.
336
- *
337
- * \headerfile <x86intrin.h>
338
- *
339
- * This intrinsic corresponds to the <c> CRC32Q </c> instruction.
340
- *
341
- * \param __C
342
- * An unsigned integer operand to add to the CRC-32C checksum of operand
343
- * \a __D.
344
- * \param __D
345
- * An unsigned 64-bit integer operand used to compute the CRC-32C checksum.
346
- * \returns The result of adding operand \a __C to the CRC-32C checksum of
347
- * operand \a __D.
348
- */
349
- static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CRC32
350
- __crc32q(unsigned long long __C, unsigned long long __D)
351
- {
352
- return __builtin_ia32_crc32di(__C, __D);
353
- }
354
- #endif /* __x86_64__ */
355
-
356
- static __inline__ unsigned long long __DEFAULT_FN_ATTRS
357
- __rdpmc(int __A) {
358
- return __builtin_ia32_rdpmc(__A);
359
- }
360
-
361
- /* __rdtscp */
362
- static __inline__ unsigned long long __DEFAULT_FN_ATTRS
363
- __rdtscp(unsigned int *__A) {
364
- return __builtin_ia32_rdtscp(__A);
365
- }
366
-
367
- #define _rdtsc() __rdtsc()
368
-
369
- #define _rdpmc(A) __rdpmc(A)
370
-
371
- static __inline__ void __DEFAULT_FN_ATTRS
372
- _wbinvd(void) {
373
- __builtin_ia32_wbinvd();
374
- }
375
-
376
- static __inline__ unsigned char __DEFAULT_FN_ATTRS_CONSTEXPR
377
- __rolb(unsigned char __X, int __C) {
378
- return __builtin_rotateleft8(__X, __C);
379
- }
380
-
381
- static __inline__ unsigned char __DEFAULT_FN_ATTRS_CONSTEXPR
382
- __rorb(unsigned char __X, int __C) {
383
- return __builtin_rotateright8(__X, __C);
384
- }
385
-
386
- static __inline__ unsigned short __DEFAULT_FN_ATTRS_CONSTEXPR
387
- __rolw(unsigned short __X, int __C) {
388
- return __builtin_rotateleft16(__X, __C);
389
- }
390
-
391
- static __inline__ unsigned short __DEFAULT_FN_ATTRS_CONSTEXPR
392
- __rorw(unsigned short __X, int __C) {
393
- return __builtin_rotateright16(__X, __C);
394
- }
395
-
396
- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CONSTEXPR
397
- __rold(unsigned int __X, int __C) {
398
- return __builtin_rotateleft32(__X, (unsigned int)__C);
399
- }
400
-
401
- static __inline__ unsigned int __DEFAULT_FN_ATTRS_CONSTEXPR
402
- __rord(unsigned int __X, int __C) {
403
- return __builtin_rotateright32(__X, (unsigned int)__C);
404
- }
405
-
406
- #ifdef __x86_64__
407
- static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CONSTEXPR
408
- __rolq(unsigned long long __X, int __C) {
409
- return __builtin_rotateleft64(__X, (unsigned long long)__C);
410
- }
411
-
412
- static __inline__ unsigned long long __DEFAULT_FN_ATTRS_CONSTEXPR
413
- __rorq(unsigned long long __X, int __C) {
414
- return __builtin_rotateright64(__X, (unsigned long long)__C);
415
- }
416
- #endif /* __x86_64__ */
417
-
418
- #ifndef _MSC_VER
419
- /* These are already provided as builtins for MSVC. */
420
- /* Select the correct function based on the size of long. */
421
- #ifdef __LP64__
422
- #define _lrotl(a,b) __rolq((a), (b))
423
- #define _lrotr(a,b) __rorq((a), (b))
424
- #else
425
- #define _lrotl(a,b) __rold((a), (b))
426
- #define _lrotr(a,b) __rord((a), (b))
427
- #endif
428
- #define _rotl(a,b) __rold((a), (b))
429
- #define _rotr(a,b) __rord((a), (b))
430
- #endif // _MSC_VER
431
-
432
- /* These are not builtins so need to be provided in all modes. */
433
- #define _rotwl(a,b) __rolw((a), (b))
434
- #define _rotwr(a,b) __rorw((a), (b))
435
-
436
- #undef __DEFAULT_FN_ATTRS
437
- #undef __DEFAULT_FN_ATTRS_CAST
438
- #undef __DEFAULT_FN_ATTRS_CRC32
439
- #undef __DEFAULT_FN_ATTRS_CONSTEXPR
440
-
441
- #endif /* __IA32INTRIN_H */
@@ -1,51 +0,0 @@
1
- /*===---- stdarg.h - Variable argument handling ----------------------------===
2
- *
3
- * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
- * See https://llvm.org/LICENSE.txt for license information.
5
- * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
- *
7
- *===-----------------------------------------------------------------------===
8
- */
9
-
10
- #ifndef __STDARG_H
11
-
12
- #ifndef __GNUC_VA_LIST
13
- #define __GNUC_VA_LIST
14
- typedef __builtin_va_list __gnuc_va_list;
15
- #endif
16
-
17
- #ifdef __need___va_list
18
- #undef __need___va_list
19
- #else
20
- #define __STDARG_H
21
- #ifndef _VA_LIST
22
- typedef __builtin_va_list va_list;
23
- #define _VA_LIST
24
- #endif
25
-
26
- /* FIXME: This is using the placeholder dates Clang produces for these macros
27
- in C2x mode; switch to the correct values once they've been published. */
28
- #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L
29
- /* C2x does not require the second parameter for va_start. */
30
- #define va_start(ap, ...) __builtin_va_start(ap, 0)
31
- #else
32
- /* Versions before C2x do require the second parameter. */
33
- #define va_start(ap, param) __builtin_va_start(ap, param)
34
- #endif
35
- #define va_end(ap) __builtin_va_end(ap)
36
- #define va_arg(ap, type) __builtin_va_arg(ap, type)
37
-
38
- /* GCC always defines __va_copy, but does not define va_copy unless in c99 mode
39
- * or -ansi is not specified, since it was not part of C90.
40
- */
41
- #define __va_copy(d,s) __builtin_va_copy(d,s)
42
-
43
- #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
44
- (defined(__cplusplus) && __cplusplus >= 201103L) || \
45
- !defined(__STRICT_ANSI__)
46
- #define va_copy(dest, src) __builtin_va_copy(dest, src)
47
- #endif
48
-
49
- #endif /* __STDARG_H */
50
-
51
- #endif /* not __STDARG_H */
@@ -1,133 +0,0 @@
1
- /*===---- stddef.h - Basic type definitions --------------------------------===
2
- *
3
- * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
- * See https://llvm.org/LICENSE.txt for license information.
5
- * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
- *
7
- *===-----------------------------------------------------------------------===
8
- */
9
-
10
- #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \
11
- defined(__need_size_t) || defined(__need_wchar_t) || \
12
- defined(__need_NULL) || defined(__need_wint_t)
13
-
14
- #if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \
15
- !defined(__need_wchar_t) && !defined(__need_NULL) && \
16
- !defined(__need_wint_t)
17
- /* Always define miscellaneous pieces when modules are available. */
18
- #if !__has_feature(modules)
19
- #define __STDDEF_H
20
- #endif
21
- #define __need_ptrdiff_t
22
- #define __need_size_t
23
- #define __need_wchar_t
24
- #define __need_NULL
25
- #define __need_STDDEF_H_misc
26
- /* __need_wint_t is intentionally not defined here. */
27
- #endif
28
-
29
- #if defined(__need_ptrdiff_t)
30
- #if !defined(_PTRDIFF_T) || __has_feature(modules)
31
- /* Always define ptrdiff_t when modules are available. */
32
- #if !__has_feature(modules)
33
- #define _PTRDIFF_T
34
- #endif
35
- typedef __PTRDIFF_TYPE__ ptrdiff_t;
36
- #endif
37
- #undef __need_ptrdiff_t
38
- #endif /* defined(__need_ptrdiff_t) */
39
-
40
- #if defined(__need_size_t)
41
- #if !defined(_SIZE_T) || __has_feature(modules)
42
- /* Always define size_t when modules are available. */
43
- #if !__has_feature(modules)
44
- #define _SIZE_T
45
- #endif
46
- typedef __SIZE_TYPE__ size_t;
47
- #endif
48
- #undef __need_size_t
49
- #endif /*defined(__need_size_t) */
50
-
51
- #if defined(__need_STDDEF_H_misc)
52
- /* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is
53
- * enabled. */
54
- #if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \
55
- !defined(_RSIZE_T)) || __has_feature(modules)
56
- /* Always define rsize_t when modules are available. */
57
- #if !__has_feature(modules)
58
- #define _RSIZE_T
59
- #endif
60
- typedef __SIZE_TYPE__ rsize_t;
61
- #endif
62
- #endif /* defined(__need_STDDEF_H_misc) */
63
-
64
- #if defined(__need_wchar_t)
65
- #if !defined(__cplusplus) || (defined(_MSC_VER) && !_NATIVE_WCHAR_T_DEFINED)
66
- /* Always define wchar_t when modules are available. */
67
- #if !defined(_WCHAR_T) || __has_feature(modules)
68
- #if !__has_feature(modules)
69
- #define _WCHAR_T
70
- #if defined(_MSC_EXTENSIONS)
71
- #define _WCHAR_T_DEFINED
72
- #endif
73
- #endif
74
- typedef __WCHAR_TYPE__ wchar_t;
75
- #endif
76
- #endif
77
- #undef __need_wchar_t
78
- #endif /* defined(__need_wchar_t) */
79
-
80
- #if defined(__need_NULL)
81
- #undef NULL
82
- #ifdef __cplusplus
83
- # if !defined(__MINGW32__) && !defined(_MSC_VER)
84
- # define NULL __null
85
- # else
86
- # define NULL 0
87
- # endif
88
- #else
89
- # define NULL ((void*)0)
90
- #endif
91
- #ifdef __cplusplus
92
- #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED)
93
- namespace std { typedef decltype(nullptr) nullptr_t; }
94
- using ::std::nullptr_t;
95
- #endif
96
- #endif
97
- #undef __need_NULL
98
- #endif /* defined(__need_NULL) */
99
-
100
- /* FIXME: This is using the placeholder dates Clang produces for these macros
101
- in C2x mode; switch to the correct values once they've been published. */
102
- #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L
103
- typedef typeof(nullptr) nullptr_t;
104
- #endif /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202000L */
105
-
106
- #if defined(__need_STDDEF_H_misc) && defined(__STDC_VERSION__) && \
107
- __STDC_VERSION__ >= 202000L
108
- #define unreachable() __builtin_unreachable()
109
- #endif /* defined(__need_STDDEF_H_misc) && >= C23 */
110
-
111
- #if defined(__need_STDDEF_H_misc)
112
- #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || \
113
- (defined(__cplusplus) && __cplusplus >= 201103L)
114
- #include "__stddef_max_align_t.h"
115
- #endif
116
- #define offsetof(t, d) __builtin_offsetof(t, d)
117
- #undef __need_STDDEF_H_misc
118
- #endif /* defined(__need_STDDEF_H_misc) */
119
-
120
- /* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use
121
- __WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */
122
- #if defined(__need_wint_t)
123
- /* Always define wint_t when modules are available. */
124
- #if !defined(_WINT_T) || __has_feature(modules)
125
- #if !__has_feature(modules)
126
- #define _WINT_T
127
- #endif
128
- typedef __WINT_TYPE__ wint_t;
129
- #endif
130
- #undef __need_wint_t
131
- #endif /* __need_wint_t */
132
-
133
- #endif
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes