@nativescript/linux 0.0.0-stage → 0.1.0-alpha.0

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 (238) hide show
  1. package/framework/App_Resources/Linux/app.desktop +8 -0
  2. package/framework/App_Resources/Linux/app.metainfo.xml +15 -0
  3. package/framework/App_Resources/Linux/icon.png +0 -0
  4. package/framework/App_Resources/Linux/images/.gitkeep +0 -0
  5. package/framework/__PROJECT_NAME__/app/.gitkeep +0 -0
  6. package/framework/runtime/x64/metadata-x86_64.bin +0 -0
  7. package/framework/runtime/x64/ns-linux +4 -0
  8. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_builtin_vars.h +121 -0
  9. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_cmath.h +512 -0
  10. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_complex_builtins.h +285 -0
  11. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_device_functions.h +1558 -0
  12. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_intrinsics.h +709 -0
  13. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_libdevice_declares.h +468 -0
  14. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_math.h +348 -0
  15. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_math_forward_declares.h +284 -0
  16. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_runtime_wrapper.h +503 -0
  17. package/framework/tools/x64/lib/clang/17/include/__clang_cuda_texture_intrinsics.h +742 -0
  18. package/framework/tools/x64/lib/clang/17/include/__clang_hip_cmath.h +842 -0
  19. package/framework/tools/x64/lib/clang/17/include/__clang_hip_libdevice_declares.h +353 -0
  20. package/framework/tools/x64/lib/clang/17/include/__clang_hip_math.h +1303 -0
  21. package/framework/tools/x64/lib/clang/17/include/__clang_hip_runtime_wrapper.h +151 -0
  22. package/framework/tools/x64/lib/clang/17/include/__clang_hip_stdlib.h +43 -0
  23. package/framework/tools/x64/lib/clang/17/include/__stddef_max_align_t.h +27 -0
  24. package/framework/tools/x64/lib/clang/17/include/__wmmintrin_aes.h +140 -0
  25. package/framework/tools/x64/lib/clang/17/include/__wmmintrin_pclmul.h +48 -0
  26. package/framework/tools/x64/lib/clang/17/include/adxintrin.h +227 -0
  27. package/framework/tools/x64/lib/clang/17/include/altivec.h +19342 -0
  28. package/framework/tools/x64/lib/clang/17/include/ammintrin.h +183 -0
  29. package/framework/tools/x64/lib/clang/17/include/amxcomplexintrin.h +169 -0
  30. package/framework/tools/x64/lib/clang/17/include/amxfp16intrin.h +58 -0
  31. package/framework/tools/x64/lib/clang/17/include/amxintrin.h +524 -0
  32. package/framework/tools/x64/lib/clang/17/include/arm64intr.h +35 -0
  33. package/framework/tools/x64/lib/clang/17/include/arm_acle.h +782 -0
  34. package/framework/tools/x64/lib/clang/17/include/arm_bf16.h +20 -0
  35. package/framework/tools/x64/lib/clang/17/include/arm_cde.h +410 -0
  36. package/framework/tools/x64/lib/clang/17/include/arm_cmse.h +217 -0
  37. package/framework/tools/x64/lib/clang/17/include/arm_fp16.h +596 -0
  38. package/framework/tools/x64/lib/clang/17/include/arm_mve.h +19187 -0
  39. package/framework/tools/x64/lib/clang/17/include/arm_neon.h +69885 -0
  40. package/framework/tools/x64/lib/clang/17/include/arm_neon_sve_bridge.h +182 -0
  41. package/framework/tools/x64/lib/clang/17/include/arm_sme_draft_spec_subject_to_change.h +642 -0
  42. package/framework/tools/x64/lib/clang/17/include/arm_sve.h +23950 -0
  43. package/framework/tools/x64/lib/clang/17/include/armintr.h +31 -0
  44. package/framework/tools/x64/lib/clang/17/include/avx2intrin.h +5263 -0
  45. package/framework/tools/x64/lib/clang/17/include/avx512bf16intrin.h +282 -0
  46. package/framework/tools/x64/lib/clang/17/include/avx512bitalgintrin.h +83 -0
  47. package/framework/tools/x64/lib/clang/17/include/avx512bwintrin.h +2024 -0
  48. package/framework/tools/x64/lib/clang/17/include/avx512cdintrin.h +123 -0
  49. package/framework/tools/x64/lib/clang/17/include/avx512dqintrin.h +1377 -0
  50. package/framework/tools/x64/lib/clang/17/include/avx512erintrin.h +271 -0
  51. package/framework/tools/x64/lib/clang/17/include/avx512fintrin.h +9775 -0
  52. package/framework/tools/x64/lib/clang/17/include/avx512fp16intrin.h +3350 -0
  53. package/framework/tools/x64/lib/clang/17/include/avx512ifmaintrin.h +68 -0
  54. package/framework/tools/x64/lib/clang/17/include/avx512ifmavlintrin.h +105 -0
  55. package/framework/tools/x64/lib/clang/17/include/avx512pfintrin.h +97 -0
  56. package/framework/tools/x64/lib/clang/17/include/avx512vbmi2intrin.h +357 -0
  57. package/framework/tools/x64/lib/clang/17/include/avx512vbmiintrin.h +105 -0
  58. package/framework/tools/x64/lib/clang/17/include/avx512vbmivlintrin.h +188 -0
  59. package/framework/tools/x64/lib/clang/17/include/avx512vlbf16intrin.h +515 -0
  60. package/framework/tools/x64/lib/clang/17/include/avx512vlbitalgintrin.h +145 -0
  61. package/framework/tools/x64/lib/clang/17/include/avx512vlbwintrin.h +3161 -0
  62. package/framework/tools/x64/lib/clang/17/include/avx512vlcdintrin.h +225 -0
  63. package/framework/tools/x64/lib/clang/17/include/avx512vldqintrin.h +1167 -0
  64. package/framework/tools/x64/lib/clang/17/include/avx512vlfp16intrin.h +2071 -0
  65. package/framework/tools/x64/lib/clang/17/include/avx512vlintrin.h +8431 -0
  66. package/framework/tools/x64/lib/clang/17/include/avx512vlvbmi2intrin.h +689 -0
  67. package/framework/tools/x64/lib/clang/17/include/avx512vlvnniintrin.h +304 -0
  68. package/framework/tools/x64/lib/clang/17/include/avx512vlvp2intersectintrin.h +121 -0
  69. package/framework/tools/x64/lib/clang/17/include/avx512vnniintrin.h +115 -0
  70. package/framework/tools/x64/lib/clang/17/include/avx512vp2intersectintrin.h +77 -0
  71. package/framework/tools/x64/lib/clang/17/include/avx512vpopcntdqintrin.h +54 -0
  72. package/framework/tools/x64/lib/clang/17/include/avx512vpopcntdqvlintrin.h +91 -0
  73. package/framework/tools/x64/lib/clang/17/include/avxifmaintrin.h +177 -0
  74. package/framework/tools/x64/lib/clang/17/include/avxintrin.h +5108 -0
  75. package/framework/tools/x64/lib/clang/17/include/avxneconvertintrin.h +484 -0
  76. package/framework/tools/x64/lib/clang/17/include/avxvnniint16intrin.h +473 -0
  77. package/framework/tools/x64/lib/clang/17/include/avxvnniint8intrin.h +471 -0
  78. package/framework/tools/x64/lib/clang/17/include/avxvnniintrin.h +225 -0
  79. package/framework/tools/x64/lib/clang/17/include/bmi2intrin.h +255 -0
  80. package/framework/tools/x64/lib/clang/17/include/bmiintrin.h +431 -0
  81. package/framework/tools/x64/lib/clang/17/include/builtins.h +16 -0
  82. package/framework/tools/x64/lib/clang/17/include/cet.h +66 -0
  83. package/framework/tools/x64/lib/clang/17/include/cetintrin.h +115 -0
  84. package/framework/tools/x64/lib/clang/17/include/cldemoteintrin.h +36 -0
  85. package/framework/tools/x64/lib/clang/17/include/clflushoptintrin.h +36 -0
  86. package/framework/tools/x64/lib/clang/17/include/clwbintrin.h +38 -0
  87. package/framework/tools/x64/lib/clang/17/include/clzerointrin.h +38 -0
  88. package/framework/tools/x64/lib/clang/17/include/cmpccxaddintrin.h +70 -0
  89. package/framework/tools/x64/lib/clang/17/include/cpuid.h +331 -0
  90. package/framework/tools/x64/lib/clang/17/include/crc32intrin.h +100 -0
  91. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/algorithm +116 -0
  92. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/bits/basic_string.h +9 -0
  93. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/bits/basic_string.tcc +9 -0
  94. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/bits/shared_ptr_base.h +9 -0
  95. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/cmath +90 -0
  96. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/complex +90 -0
  97. package/framework/tools/x64/lib/clang/17/include/cuda_wrappers/new +106 -0
  98. package/framework/tools/x64/lib/clang/17/include/emmintrin.h +4775 -0
  99. package/framework/tools/x64/lib/clang/17/include/enqcmdintrin.h +63 -0
  100. package/framework/tools/x64/lib/clang/17/include/f16cintrin.h +162 -0
  101. package/framework/tools/x64/lib/clang/17/include/float.h +168 -0
  102. package/framework/tools/x64/lib/clang/17/include/fma4intrin.h +218 -0
  103. package/framework/tools/x64/lib/clang/17/include/fmaintrin.h +780 -0
  104. package/framework/tools/x64/lib/clang/17/include/fxsrintrin.h +91 -0
  105. package/framework/tools/x64/lib/clang/17/include/gfniintrin.h +194 -0
  106. package/framework/tools/x64/lib/clang/17/include/hexagon_circ_brev_intrinsics.h +298 -0
  107. package/framework/tools/x64/lib/clang/17/include/hexagon_protos.h +8439 -0
  108. package/framework/tools/x64/lib/clang/17/include/hexagon_types.h +2621 -0
  109. package/framework/tools/x64/lib/clang/17/include/hresetintrin.h +49 -0
  110. package/framework/tools/x64/lib/clang/17/include/htmintrin.h +212 -0
  111. package/framework/tools/x64/lib/clang/17/include/htmxlintrin.h +345 -0
  112. package/framework/tools/x64/lib/clang/17/include/hvx_hexagon_protos.h +5183 -0
  113. package/framework/tools/x64/lib/clang/17/include/ia32intrin.h +441 -0
  114. package/framework/tools/x64/lib/clang/17/include/immintrin.h +758 -0
  115. package/framework/tools/x64/lib/clang/17/include/intrin.h +620 -0
  116. package/framework/tools/x64/lib/clang/17/include/inttypes.h +97 -0
  117. package/framework/tools/x64/lib/clang/17/include/invpcidintrin.h +23 -0
  118. package/framework/tools/x64/lib/clang/17/include/iso646.h +27 -0
  119. package/framework/tools/x64/lib/clang/17/include/keylockerintrin.h +530 -0
  120. package/framework/tools/x64/lib/clang/17/include/larchintrin.h +234 -0
  121. package/framework/tools/x64/lib/clang/17/include/limits.h +127 -0
  122. package/framework/tools/x64/lib/clang/17/include/llvm_libc_wrappers/ctype.h +85 -0
  123. package/framework/tools/x64/lib/clang/17/include/llvm_libc_wrappers/inttypes.h +34 -0
  124. package/framework/tools/x64/lib/clang/17/include/llvm_libc_wrappers/stdio.h +34 -0
  125. package/framework/tools/x64/lib/clang/17/include/llvm_libc_wrappers/stdlib.h +42 -0
  126. package/framework/tools/x64/lib/clang/17/include/llvm_libc_wrappers/string.h +37 -0
  127. package/framework/tools/x64/lib/clang/17/include/lwpintrin.h +136 -0
  128. package/framework/tools/x64/lib/clang/17/include/lzcntintrin.h +104 -0
  129. package/framework/tools/x64/lib/clang/17/include/mm3dnow.h +157 -0
  130. package/framework/tools/x64/lib/clang/17/include/mm_malloc.h +67 -0
  131. package/framework/tools/x64/lib/clang/17/include/mmintrin.h +1562 -0
  132. package/framework/tools/x64/lib/clang/17/include/module.modulemap +164 -0
  133. package/framework/tools/x64/lib/clang/17/include/movdirintrin.h +49 -0
  134. package/framework/tools/x64/lib/clang/17/include/msa.h +573 -0
  135. package/framework/tools/x64/lib/clang/17/include/mwaitxintrin.h +62 -0
  136. package/framework/tools/x64/lib/clang/17/include/nmmintrin.h +20 -0
  137. package/framework/tools/x64/lib/clang/17/include/opencl-c-base.h +820 -0
  138. package/framework/tools/x64/lib/clang/17/include/opencl-c.h +18356 -0
  139. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/__clang_openmp_device_functions.h +105 -0
  140. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/cmath +132 -0
  141. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/complex +55 -0
  142. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/complex.h +35 -0
  143. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/complex_cmath.h +388 -0
  144. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/math.h +61 -0
  145. package/framework/tools/x64/lib/clang/17/include/openmp_wrappers/new +48 -0
  146. package/framework/tools/x64/lib/clang/17/include/pconfigintrin.h +40 -0
  147. package/framework/tools/x64/lib/clang/17/include/pkuintrin.h +34 -0
  148. package/framework/tools/x64/lib/clang/17/include/pmmintrin.h +300 -0
  149. package/framework/tools/x64/lib/clang/17/include/popcntintrin.h +59 -0
  150. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/bmi2intrin.h +134 -0
  151. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/bmiintrin.h +165 -0
  152. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/emmintrin.h +2269 -0
  153. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/immintrin.h +27 -0
  154. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/mm_malloc.h +45 -0
  155. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/mmintrin.h +1453 -0
  156. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/pmmintrin.h +145 -0
  157. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/smmintrin.h +663 -0
  158. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/tmmintrin.h +453 -0
  159. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/x86gprintrin.h +17 -0
  160. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/x86intrin.h +28 -0
  161. package/framework/tools/x64/lib/clang/17/include/ppc_wrappers/xmmintrin.h +1827 -0
  162. package/framework/tools/x64/lib/clang/17/include/prfchiintrin.h +61 -0
  163. package/framework/tools/x64/lib/clang/17/include/prfchwintrin.h +58 -0
  164. package/framework/tools/x64/lib/clang/17/include/ptwriteintrin.h +37 -0
  165. package/framework/tools/x64/lib/clang/17/include/raointintrin.h +203 -0
  166. package/framework/tools/x64/lib/clang/17/include/rdpruintrin.h +57 -0
  167. package/framework/tools/x64/lib/clang/17/include/rdseedintrin.h +105 -0
  168. package/framework/tools/x64/lib/clang/17/include/riscv_ntlh.h +28 -0
  169. package/framework/tools/x64/lib/clang/17/include/rtmintrin.h +45 -0
  170. package/framework/tools/x64/lib/clang/17/include/s390intrin.h +25 -0
  171. package/framework/tools/x64/lib/clang/17/include/serializeintrin.h +30 -0
  172. package/framework/tools/x64/lib/clang/17/include/sgxintrin.h +60 -0
  173. package/framework/tools/x64/lib/clang/17/include/sha512intrin.h +200 -0
  174. package/framework/tools/x64/lib/clang/17/include/shaintrin.h +189 -0
  175. package/framework/tools/x64/lib/clang/17/include/sifive_vector.h +16 -0
  176. package/framework/tools/x64/lib/clang/17/include/sm3intrin.h +238 -0
  177. package/framework/tools/x64/lib/clang/17/include/sm4intrin.h +269 -0
  178. package/framework/tools/x64/lib/clang/17/include/smmintrin.h +2328 -0
  179. package/framework/tools/x64/lib/clang/17/include/stdalign.h +26 -0
  180. package/framework/tools/x64/lib/clang/17/include/stdarg.h +51 -0
  181. package/framework/tools/x64/lib/clang/17/include/stdatomic.h +196 -0
  182. package/framework/tools/x64/lib/clang/17/include/stdbool.h +34 -0
  183. package/framework/tools/x64/lib/clang/17/include/stddef.h +133 -0
  184. package/framework/tools/x64/lib/clang/17/include/stdint.h +979 -0
  185. package/framework/tools/x64/lib/clang/17/include/stdnoreturn.h +29 -0
  186. package/framework/tools/x64/lib/clang/17/include/tbmintrin.h +140 -0
  187. package/framework/tools/x64/lib/clang/17/include/tgmath.h +1368 -0
  188. package/framework/tools/x64/lib/clang/17/include/tmmintrin.h +775 -0
  189. package/framework/tools/x64/lib/clang/17/include/tsxldtrkintrin.h +56 -0
  190. package/framework/tools/x64/lib/clang/17/include/uintrintrin.h +157 -0
  191. package/framework/tools/x64/lib/clang/17/include/unwind.h +332 -0
  192. package/framework/tools/x64/lib/clang/17/include/vadefs.h +51 -0
  193. package/framework/tools/x64/lib/clang/17/include/vaesintrin.h +85 -0
  194. package/framework/tools/x64/lib/clang/17/include/varargs.h +12 -0
  195. package/framework/tools/x64/lib/clang/17/include/vecintrin.h +11127 -0
  196. package/framework/tools/x64/lib/clang/17/include/velintrin.h +71 -0
  197. package/framework/tools/x64/lib/clang/17/include/velintrin_approx.h +120 -0
  198. package/framework/tools/x64/lib/clang/17/include/velintrin_gen.h +1257 -0
  199. package/framework/tools/x64/lib/clang/17/include/vpclmulqdqintrin.h +30 -0
  200. package/framework/tools/x64/lib/clang/17/include/waitpkgintrin.h +42 -0
  201. package/framework/tools/x64/lib/clang/17/include/wasm_simd128.h +1997 -0
  202. package/framework/tools/x64/lib/clang/17/include/wbnoinvdintrin.h +24 -0
  203. package/framework/tools/x64/lib/clang/17/include/wmmintrin.h +23 -0
  204. package/framework/tools/x64/lib/clang/17/include/x86gprintrin.h +65 -0
  205. package/framework/tools/x64/lib/clang/17/include/x86intrin.h +67 -0
  206. package/framework/tools/x64/lib/clang/17/include/xmmintrin.h +3017 -0
  207. package/framework/tools/x64/lib/clang/17/include/xopintrin.h +770 -0
  208. package/framework/tools/x64/lib/clang/17/include/xsavecintrin.h +84 -0
  209. package/framework/tools/x64/lib/clang/17/include/xsaveintrin.h +63 -0
  210. package/framework/tools/x64/lib/clang/17/include/xsaveoptintrin.h +34 -0
  211. package/framework/tools/x64/lib/clang/17/include/xsavesintrin.h +44 -0
  212. package/framework/tools/x64/lib/clang/17/include/xtestintrin.h +27 -0
  213. package/framework/tools/x64/metadata-generator +4 -0
  214. package/framework/tools/x64/ns-bundle +0 -0
  215. package/framework/tools/x64/ns-metadata-filter +0 -0
  216. package/framework/typings/c!EGL.d.ts +431 -0
  217. package/framework/typings/c!GLES.d.ts +5002 -0
  218. package/framework/typings/c!GLib.d.ts +14488 -0
  219. package/framework/typings/c!Gtk.d.ts +17630 -0
  220. package/framework/typings/c!X11.d.ts +7054 -0
  221. package/framework/typings/c!_Builtin_intrinsics.d.ts +106 -0
  222. package/framework/typings/c!_Builtin_stddef_max_align_t.d.ts +6 -0
  223. package/framework/typings/c!cairo.d.ts +1248 -0
  224. package/framework/typings/c!fontconfig.d.ts +819 -0
  225. package/framework/typings/c!freetype.d.ts +1068 -0
  226. package/framework/typings/c!gdk_pixbuf.d.ts +326 -0
  227. package/framework/typings/c!graphene.d.ts +320 -0
  228. package/framework/typings/c!harfbuzz.d.ts +1292 -0
  229. package/framework/typings/c!icu.d.ts +3330 -0
  230. package/framework/typings/c!libc.d.ts +11639 -0
  231. package/framework/typings/c!libxml2.d.ts +7029 -0
  232. package/framework/typings/c!pango.d.ts +2225 -0
  233. package/framework/typings/c!uuid.d.ts +68 -0
  234. package/framework/typings/c!zlib.d.ts +276 -0
  235. package/framework/typings/index.d.ts +10 -0
  236. package/framework/typings/linux-runtime.d.ts +90 -0
  237. package/package.json +9 -4
  238. package/README.md +0 -3
@@ -0,0 +1,225 @@
1
+ /*===--------------- avxvnniintrin.h - VNNI intrinsics --------------------===
2
+ *
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ * THE SOFTWARE.
21
+ *
22
+ *===-----------------------------------------------------------------------===
23
+ */
24
+ #ifndef __IMMINTRIN_H
25
+ #error "Never use <avxvnniintrin.h> directly; include <immintrin.h> instead."
26
+ #endif
27
+
28
+ #ifndef __AVXVNNIINTRIN_H
29
+ #define __AVXVNNIINTRIN_H
30
+
31
+ /* Below intrinsics defined in avx512vlvnniintrin.h can be used for AVXVNNI */
32
+ /// \fn __m256i _mm256_dpbusd_epi32(__m256i __S, __m256i __A, __m256i __B)
33
+ /// \fn __m256i _mm256_dpbusds_epi32(__m256i __S, __m256i __A, __m256i __B)
34
+ /// \fn __m256i _mm256_dpwssd_epi32(__m256i __S, __m256i __A, __m256i __B)
35
+ /// \fn __m256i _mm256_dpwssds_epi32(__m256i __S, __m256i __A, __m256i __B)
36
+ /// \fn __m128i _mm_dpbusd_epi32(__m128i __S, __m128i __A, __m128i __B)
37
+ /// \fn __m128i _mm_dpbusds_epi32(__m128i __S, __m128i __A, __m128i __B)
38
+ /// \fn __m128i _mm_dpwssd_epi32(__m128i __S, __m128i __A, __m128i __B)
39
+ /// \fn __m128i _mm_dpwssds_epi32(__m128i __S, __m128i __A, __m128i __B)
40
+
41
+ /* Intrinsics with _avx_ prefix are for compatibility with msvc. */
42
+ /* Define the default attributes for the functions in this file. */
43
+ #define __DEFAULT_FN_ATTRS256 __attribute__((__always_inline__, __nodebug__, __target__("avxvnni"), __min_vector_width__(256)))
44
+ #define __DEFAULT_FN_ATTRS128 __attribute__((__always_inline__, __nodebug__, __target__("avxvnni"), __min_vector_width__(128)))
45
+
46
+ /// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in \a __A with
47
+ /// corresponding signed 8-bit integers in \a __B, producing 4 intermediate signed
48
+ /// 16-bit results. Sum these 4 results with the corresponding 32-bit integer
49
+ /// in \a __S, and store the packed 32-bit results in DST.
50
+ ///
51
+ /// This intrinsic corresponds to the <c> VPDPBUSD </c> instructions.
52
+ ///
53
+ /// \code{.operation}
54
+ /// FOR j := 0 to 7
55
+ /// tmp1.word := Signed(ZeroExtend16(__A.byte[4*j]) * SignExtend16(__B.byte[4*j]))
56
+ /// tmp2.word := Signed(ZeroExtend16(__A.byte[4*j+1]) * SignExtend16(__B.byte[4*j+1]))
57
+ /// tmp3.word := Signed(ZeroExtend16(__A.byte[4*j+2]) * SignExtend16(__B.byte[4*j+2]))
58
+ /// tmp4.word := Signed(ZeroExtend16(__A.byte[4*j+3]) * SignExtend16(__B.byte[4*j+3]))
59
+ /// DST.dword[j] := __S.dword[j] + tmp1 + tmp2 + tmp3 + tmp4
60
+ /// ENDFOR
61
+ /// DST[MAX:256] := 0
62
+ /// \endcode
63
+ static __inline__ __m256i __DEFAULT_FN_ATTRS256
64
+ _mm256_dpbusd_avx_epi32(__m256i __S, __m256i __A, __m256i __B)
65
+ {
66
+ return (__m256i)__builtin_ia32_vpdpbusd256((__v8si)__S, (__v8si)__A, (__v8si)__B);
67
+ }
68
+
69
+ /// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in \a __A with
70
+ /// corresponding signed 8-bit integers in \a __B, producing 4 intermediate signed
71
+ /// 16-bit results. Sum these 4 results with the corresponding 32-bit integer
72
+ /// in \a __S using signed saturation, and store the packed 32-bit results in DST.
73
+ ///
74
+ /// This intrinsic corresponds to the <c> VPDPBUSDS </c> instructions.
75
+ ///
76
+ /// \code{.operation}
77
+ /// FOR j := 0 to 7
78
+ /// tmp1.word := Signed(ZeroExtend16(__A.byte[4*j]) * SignExtend16(__B.byte[4*j]))
79
+ /// tmp2.word := Signed(ZeroExtend16(__A.byte[4*j+1]) * SignExtend16(__B.byte[4*j+1]))
80
+ /// tmp3.word := Signed(ZeroExtend16(__A.byte[4*j+2]) * SignExtend16(__B.byte[4*j+2]))
81
+ /// tmp4.word := Signed(ZeroExtend16(__A.byte[4*j+3]) * SignExtend16(__B.byte[4*j+3]))
82
+ /// DST.dword[j] := Saturate32(__S.dword[j] + tmp1 + tmp2 + tmp3 + tmp4)
83
+ /// ENDFOR
84
+ /// DST[MAX:256] := 0
85
+ /// \endcode
86
+ static __inline__ __m256i __DEFAULT_FN_ATTRS256
87
+ _mm256_dpbusds_avx_epi32(__m256i __S, __m256i __A, __m256i __B)
88
+ {
89
+ return (__m256i)__builtin_ia32_vpdpbusds256((__v8si)__S, (__v8si)__A, (__v8si)__B);
90
+ }
91
+
92
+ /// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
93
+ /// corresponding 16-bit integers in \a __B, producing 2 intermediate signed 32-bit
94
+ /// results. Sum these 2 results with the corresponding 32-bit integer in \a __S,
95
+ /// and store the packed 32-bit results in DST.
96
+ ///
97
+ /// This intrinsic corresponds to the <c> VPDPWSSD </c> instructions.
98
+ ///
99
+ /// \code{.operation}
100
+ /// FOR j := 0 to 7
101
+ /// tmp1.dword := SignExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
102
+ /// tmp2.dword := SignExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
103
+ /// DST.dword[j] := __S.dword[j] + tmp1 + tmp2
104
+ /// ENDFOR
105
+ /// DST[MAX:256] := 0
106
+ /// \endcode
107
+ static __inline__ __m256i __DEFAULT_FN_ATTRS256
108
+ _mm256_dpwssd_avx_epi32(__m256i __S, __m256i __A, __m256i __B)
109
+ {
110
+ return (__m256i)__builtin_ia32_vpdpwssd256((__v8si)__S, (__v8si)__A, (__v8si)__B);
111
+ }
112
+
113
+ /// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
114
+ /// corresponding 16-bit integers in \a __B, producing 2 intermediate signed 32-bit
115
+ /// results. Sum these 2 results with the corresponding 32-bit integer in \a __S
116
+ /// using signed saturation, and store the packed 32-bit results in DST.
117
+ ///
118
+ /// This intrinsic corresponds to the <c> VPDPWSSDS </c> instructions.
119
+ ///
120
+ /// \code{.operation}
121
+ /// FOR j := 0 to 7
122
+ /// tmp1.dword := SignExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
123
+ /// tmp2.dword := SignExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
124
+ /// DST.dword[j] := Saturate32(__S.dword[j] + tmp1 + tmp2)
125
+ /// ENDFOR
126
+ /// DST[MAX:256] := 0
127
+ /// \endcode
128
+ static __inline__ __m256i __DEFAULT_FN_ATTRS256
129
+ _mm256_dpwssds_avx_epi32(__m256i __S, __m256i __A, __m256i __B)
130
+ {
131
+ return (__m256i)__builtin_ia32_vpdpwssds256((__v8si)__S, (__v8si)__A, (__v8si)__B);
132
+ }
133
+
134
+ /// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in \a __A with
135
+ /// corresponding signed 8-bit integers in \a __B, producing 4 intermediate signed
136
+ /// 16-bit results. Sum these 4 results with the corresponding 32-bit integer
137
+ /// in \a __S, and store the packed 32-bit results in DST.
138
+ ///
139
+ /// This intrinsic corresponds to the <c> VPDPBUSD </c> instructions.
140
+ ///
141
+ /// \code{.operation}
142
+ /// FOR j := 0 to 3
143
+ /// tmp1.word := Signed(ZeroExtend16(__A.byte[4*j]) * SignExtend16(__B.byte[4*j]))
144
+ /// tmp2.word := Signed(ZeroExtend16(__A.byte[4*j+1]) * SignExtend16(__B.byte[4*j+1]))
145
+ /// tmp3.word := Signed(ZeroExtend16(__A.byte[4*j+2]) * SignExtend16(__B.byte[4*j+2]))
146
+ /// tmp4.word := Signed(ZeroExtend16(__A.byte[4*j+3]) * SignExtend16(__B.byte[4*j+3]))
147
+ /// DST.dword[j] := __S.dword[j] + tmp1 + tmp2 + tmp3 + tmp4
148
+ /// ENDFOR
149
+ /// DST[MAX:128] := 0
150
+ /// \endcode
151
+ static __inline__ __m128i __DEFAULT_FN_ATTRS128
152
+ _mm_dpbusd_avx_epi32(__m128i __S, __m128i __A, __m128i __B)
153
+ {
154
+ return (__m128i)__builtin_ia32_vpdpbusd128((__v4si)__S, (__v4si)__A, (__v4si)__B);
155
+ }
156
+
157
+ /// Multiply groups of 4 adjacent pairs of unsigned 8-bit integers in \a __A with
158
+ /// corresponding signed 8-bit integers in \a __B, producing 4 intermediate signed
159
+ /// 16-bit results. Sum these 4 results with the corresponding 32-bit integer
160
+ /// in \a __S using signed saturation, and store the packed 32-bit results in DST.
161
+ ///
162
+ /// This intrinsic corresponds to the <c> VPDPBUSDS </c> instructions.
163
+ ///
164
+ /// \code{.operation}
165
+ /// FOR j := 0 to 3
166
+ /// tmp1.word := Signed(ZeroExtend16(__A.byte[4*j]) * SignExtend16(__B.byte[4*j]))
167
+ /// tmp2.word := Signed(ZeroExtend16(__A.byte[4*j+1]) * SignExtend16(__B.byte[4*j+1]))
168
+ /// tmp3.word := Signed(ZeroExtend16(__A.byte[4*j+2]) * SignExtend16(__B.byte[4*j+2]))
169
+ /// tmp4.word := Signed(ZeroExtend16(__A.byte[4*j+3]) * SignExtend16(__B.byte[4*j+3]))
170
+ /// DST.dword[j] := Saturate32(__S.dword[j] + tmp1 + tmp2 + tmp3 + tmp4)
171
+ /// ENDFOR
172
+ /// DST[MAX:128] := 0
173
+ /// \endcode
174
+ static __inline__ __m128i __DEFAULT_FN_ATTRS128
175
+ _mm_dpbusds_avx_epi32(__m128i __S, __m128i __A, __m128i __B)
176
+ {
177
+ return (__m128i)__builtin_ia32_vpdpbusds128((__v4si)__S, (__v4si)__A, (__v4si)__B);
178
+ }
179
+
180
+ /// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
181
+ /// corresponding 16-bit integers in \a __B, producing 2 intermediate signed 32-bit
182
+ /// results. Sum these 2 results with the corresponding 32-bit integer in \a __S,
183
+ /// and store the packed 32-bit results in DST.
184
+ ///
185
+ /// This intrinsic corresponds to the <c> VPDPWSSD </c> instructions.
186
+ ///
187
+ /// \code{.operation}
188
+ /// FOR j := 0 to 3
189
+ /// tmp1.dword := SignExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
190
+ /// tmp2.dword := SignExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
191
+ /// DST.dword[j] := __S.dword[j] + tmp1 + tmp2
192
+ /// ENDFOR
193
+ /// DST[MAX:128] := 0
194
+ /// \endcode
195
+ static __inline__ __m128i __DEFAULT_FN_ATTRS128
196
+ _mm_dpwssd_avx_epi32(__m128i __S, __m128i __A, __m128i __B)
197
+ {
198
+ return (__m128i)__builtin_ia32_vpdpwssd128((__v4si)__S, (__v4si)__A, (__v4si)__B);
199
+ }
200
+
201
+ /// Multiply groups of 2 adjacent pairs of signed 16-bit integers in \a __A with
202
+ /// corresponding 16-bit integers in \a __B, producing 2 intermediate signed 32-bit
203
+ /// results. Sum these 2 results with the corresponding 32-bit integer in \a __S
204
+ /// using signed saturation, and store the packed 32-bit results in DST.
205
+ ///
206
+ /// This intrinsic corresponds to the <c> VPDPWSSDS </c> instructions.
207
+ ///
208
+ /// \code{.operation}
209
+ /// FOR j := 0 to 3
210
+ /// tmp1.dword := SignExtend32(__A.word[2*j]) * SignExtend32(__B.word[2*j])
211
+ /// tmp2.dword := SignExtend32(__A.word[2*j+1]) * SignExtend32(__B.word[2*j+1])
212
+ /// DST.dword[j] := Saturate32(__S.dword[j] + tmp1 + tmp2)
213
+ /// ENDFOR
214
+ /// DST[MAX:128] := 0
215
+ /// \endcode
216
+ static __inline__ __m128i __DEFAULT_FN_ATTRS128
217
+ _mm_dpwssds_avx_epi32(__m128i __S, __m128i __A, __m128i __B)
218
+ {
219
+ return (__m128i)__builtin_ia32_vpdpwssds128((__v4si)__S, (__v4si)__A, (__v4si)__B);
220
+ }
221
+
222
+ #undef __DEFAULT_FN_ATTRS128
223
+ #undef __DEFAULT_FN_ATTRS256
224
+
225
+ #endif // __AVXVNNIINTRIN_H
@@ -0,0 +1,255 @@
1
+ /*===---- bmi2intrin.h - BMI2 intrinsics -----------------------------------===
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 __IMMINTRIN_H
11
+ #error "Never use <bmi2intrin.h> directly; include <immintrin.h> instead."
12
+ #endif
13
+
14
+ #ifndef __BMI2INTRIN_H
15
+ #define __BMI2INTRIN_H
16
+
17
+ /* Define the default attributes for the functions in this file. */
18
+ #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("bmi2")))
19
+
20
+ /// Copies the unsigned 32-bit integer \a __X and zeroes the upper bits
21
+ /// starting at bit number \a __Y.
22
+ ///
23
+ /// \code{.operation}
24
+ /// i := __Y[7:0]
25
+ /// result := __X
26
+ /// IF i < 32
27
+ /// result[31:i] := 0
28
+ /// FI
29
+ /// \endcode
30
+ ///
31
+ /// \headerfile <immintrin.h>
32
+ ///
33
+ /// This intrinsic corresponds to the \c BZHI instruction.
34
+ ///
35
+ /// \param __X
36
+ /// The 32-bit source value to copy.
37
+ /// \param __Y
38
+ /// The lower 8 bits specify the bit number of the lowest bit to zero.
39
+ /// \returns The partially zeroed 32-bit value.
40
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
41
+ _bzhi_u32(unsigned int __X, unsigned int __Y)
42
+ {
43
+ return __builtin_ia32_bzhi_si(__X, __Y);
44
+ }
45
+
46
+ /// Deposit (scatter) low-order bits from the unsigned 32-bit integer \a __X
47
+ /// into the 32-bit result, according to the mask in the unsigned 32-bit
48
+ /// integer \a __Y. All other bits of the result are zero.
49
+ ///
50
+ /// \code{.operation}
51
+ /// i := 0
52
+ /// result := 0
53
+ /// FOR m := 0 TO 31
54
+ /// IF __Y[m] == 1
55
+ /// result[m] := __X[i]
56
+ /// i := i + 1
57
+ /// ENDIF
58
+ /// ENDFOR
59
+ /// \endcode
60
+ ///
61
+ /// \headerfile <immintrin.h>
62
+ ///
63
+ /// This intrinsic corresponds to the \c PDEP instruction.
64
+ ///
65
+ /// \param __X
66
+ /// The 32-bit source value to copy.
67
+ /// \param __Y
68
+ /// The 32-bit mask specifying where to deposit source bits.
69
+ /// \returns The 32-bit result.
70
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
71
+ _pdep_u32(unsigned int __X, unsigned int __Y)
72
+ {
73
+ return __builtin_ia32_pdep_si(__X, __Y);
74
+ }
75
+
76
+ /// Extract (gather) bits from the unsigned 32-bit integer \a __X into the
77
+ /// low-order bits of the 32-bit result, according to the mask in the
78
+ /// unsigned 32-bit integer \a __Y. All other bits of the result are zero.
79
+ ///
80
+ /// \code{.operation}
81
+ /// i := 0
82
+ /// result := 0
83
+ /// FOR m := 0 TO 31
84
+ /// IF __Y[m] == 1
85
+ /// result[i] := __X[m]
86
+ /// i := i + 1
87
+ /// ENDIF
88
+ /// ENDFOR
89
+ /// \endcode
90
+ ///
91
+ /// \headerfile <immintrin.h>
92
+ ///
93
+ /// This intrinsic corresponds to the \c PEXT instruction.
94
+ ///
95
+ /// \param __X
96
+ /// The 32-bit source value to copy.
97
+ /// \param __Y
98
+ /// The 32-bit mask specifying which source bits to extract.
99
+ /// \returns The 32-bit result.
100
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
101
+ _pext_u32(unsigned int __X, unsigned int __Y)
102
+ {
103
+ return __builtin_ia32_pext_si(__X, __Y);
104
+ }
105
+
106
+ /// Multiplies the unsigned 32-bit integers \a __X and \a __Y to form a
107
+ /// 64-bit product. Stores the upper 32 bits of the product in the
108
+ /// memory at \a __P and returns the lower 32 bits.
109
+ ///
110
+ /// \code{.operation}
111
+ /// Store32(__P, (__X * __Y)[63:32])
112
+ /// result := (__X * __Y)[31:0]
113
+ /// \endcode
114
+ ///
115
+ /// \headerfile <immintrin.h>
116
+ ///
117
+ /// This intrinsic corresponds to the \c MULX instruction.
118
+ ///
119
+ /// \param __X
120
+ /// An unsigned 32-bit multiplicand.
121
+ /// \param __Y
122
+ /// An unsigned 32-bit multiplicand.
123
+ /// \param __P
124
+ /// A pointer to memory for storing the upper half of the product.
125
+ /// \returns The lower half of the product.
126
+ static __inline__ unsigned int __DEFAULT_FN_ATTRS
127
+ _mulx_u32(unsigned int __X, unsigned int __Y, unsigned int *__P)
128
+ {
129
+ unsigned long long __res = (unsigned long long) __X * __Y;
130
+ *__P = (unsigned int)(__res >> 32);
131
+ return (unsigned int)__res;
132
+ }
133
+
134
+ #ifdef __x86_64__
135
+
136
+ /// Copies the unsigned 64-bit integer \a __X and zeroes the upper bits
137
+ /// starting at bit number \a __Y.
138
+ ///
139
+ /// \code{.operation}
140
+ /// i := __Y[7:0]
141
+ /// result := __X
142
+ /// IF i < 64
143
+ /// result[63:i] := 0
144
+ /// FI
145
+ /// \endcode
146
+ ///
147
+ /// \headerfile <immintrin.h>
148
+ ///
149
+ /// This intrinsic corresponds to the \c BZHI instruction.
150
+ ///
151
+ /// \param __X
152
+ /// The 64-bit source value to copy.
153
+ /// \param __Y
154
+ /// The lower 8 bits specify the bit number of the lowest bit to zero.
155
+ /// \returns The partially zeroed 64-bit value.
156
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
157
+ _bzhi_u64(unsigned long long __X, unsigned long long __Y)
158
+ {
159
+ return __builtin_ia32_bzhi_di(__X, __Y);
160
+ }
161
+
162
+ /// Deposit (scatter) low-order bits from the unsigned 64-bit integer \a __X
163
+ /// into the 64-bit result, according to the mask in the unsigned 64-bit
164
+ /// integer \a __Y. All other bits of the result are zero.
165
+ ///
166
+ /// \code{.operation}
167
+ /// i := 0
168
+ /// result := 0
169
+ /// FOR m := 0 TO 63
170
+ /// IF __Y[m] == 1
171
+ /// result[m] := __X[i]
172
+ /// i := i + 1
173
+ /// ENDIF
174
+ /// ENDFOR
175
+ /// \endcode
176
+ ///
177
+ /// \headerfile <immintrin.h>
178
+ ///
179
+ /// This intrinsic corresponds to the \c PDEP instruction.
180
+ ///
181
+ /// \param __X
182
+ /// The 64-bit source value to copy.
183
+ /// \param __Y
184
+ /// The 64-bit mask specifying where to deposit source bits.
185
+ /// \returns The 64-bit result.
186
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
187
+ _pdep_u64(unsigned long long __X, unsigned long long __Y)
188
+ {
189
+ return __builtin_ia32_pdep_di(__X, __Y);
190
+ }
191
+
192
+ /// Extract (gather) bits from the unsigned 64-bit integer \a __X into the
193
+ /// low-order bits of the 64-bit result, according to the mask in the
194
+ /// unsigned 64-bit integer \a __Y. All other bits of the result are zero.
195
+ ///
196
+ /// \code{.operation}
197
+ /// i := 0
198
+ /// result := 0
199
+ /// FOR m := 0 TO 63
200
+ /// IF __Y[m] == 1
201
+ /// result[i] := __X[m]
202
+ /// i := i + 1
203
+ /// ENDIF
204
+ /// ENDFOR
205
+ /// \endcode
206
+ ///
207
+ /// \headerfile <immintrin.h>
208
+ ///
209
+ /// This intrinsic corresponds to the \c PEXT instruction.
210
+ ///
211
+ /// \param __X
212
+ /// The 64-bit source value to copy.
213
+ /// \param __Y
214
+ /// The 64-bit mask specifying which source bits to extract.
215
+ /// \returns The 64-bit result.
216
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
217
+ _pext_u64(unsigned long long __X, unsigned long long __Y)
218
+ {
219
+ return __builtin_ia32_pext_di(__X, __Y);
220
+ }
221
+
222
+ /// Multiplies the unsigned 64-bit integers \a __X and \a __Y to form a
223
+ /// 128-bit product. Stores the upper 64 bits of the product to the
224
+ /// memory addressed by \a __P and returns the lower 64 bits.
225
+ ///
226
+ /// \code{.operation}
227
+ /// Store64(__P, (__X * __Y)[127:64])
228
+ /// result := (__X * __Y)[63:0]
229
+ /// \endcode
230
+ ///
231
+ /// \headerfile <immintrin.h>
232
+ ///
233
+ /// This intrinsic corresponds to the \c MULX instruction.
234
+ ///
235
+ /// \param __X
236
+ /// An unsigned 64-bit multiplicand.
237
+ /// \param __Y
238
+ /// An unsigned 64-bit multiplicand.
239
+ /// \param __P
240
+ /// A pointer to memory for storing the upper half of the product.
241
+ /// \returns The lower half of the product.
242
+ static __inline__ unsigned long long __DEFAULT_FN_ATTRS
243
+ _mulx_u64 (unsigned long long __X, unsigned long long __Y,
244
+ unsigned long long *__P)
245
+ {
246
+ unsigned __int128 __res = (unsigned __int128) __X * __Y;
247
+ *__P = (unsigned long long) (__res >> 64);
248
+ return (unsigned long long) __res;
249
+ }
250
+
251
+ #endif /* __x86_64__ */
252
+
253
+ #undef __DEFAULT_FN_ATTRS
254
+
255
+ #endif /* __BMI2INTRIN_H */