@swiftbrowser/wasm-sdk 0.0.0-stage → 0.9.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 (633) hide show
  1. package/LICENSE.txt +1445 -0
  2. package/README.md +24 -2
  3. package/files.json +631 -0
  4. package/package.json +18 -4
  5. package/wasm32-unknown-wasip1/WASI.sdk/bin/xml2-config +108 -0
  6. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__errno.h +15 -0
  7. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__errno_values.h +84 -0
  8. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__fd_set.h +67 -0
  9. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__function___isatty.h +14 -0
  10. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__functions_malloc.h +29 -0
  11. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__functions_memcpy.h +24 -0
  12. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_dirent.h +44 -0
  13. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h +60 -0
  14. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_inttypes.h +184 -0
  15. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_netinet_in.h +32 -0
  16. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_poll.h +33 -0
  17. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_stdlib.h +21 -0
  18. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_string.h +26 -0
  19. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_sys_ioctl.h +17 -0
  20. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_sys_resource.h +19 -0
  21. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_sys_socket.h +81 -0
  22. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_sys_stat.h +15 -0
  23. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_time.h +31 -0
  24. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_unistd.h +29 -0
  25. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__macro_FD_SETSIZE.h +6 -0
  26. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__macro_PAGESIZE.h +24 -0
  27. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__mode_t.h +38 -0
  28. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__seek.h +8 -0
  29. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_dirent.h +14 -0
  30. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_in6_addr.h +8 -0
  31. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_in_addr.h +10 -0
  32. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_iovec.h +12 -0
  33. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_msghdr.h +16 -0
  34. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_pollfd.h +10 -0
  35. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_rusage.h +12 -0
  36. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_sockaddr.h +11 -0
  37. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_sockaddr_in.h +14 -0
  38. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_sockaddr_in6.h +16 -0
  39. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_sockaddr_storage.h +11 -0
  40. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_sockaddr_un.h +10 -0
  41. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_stat.h +35 -0
  42. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_timespec.h +12 -0
  43. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_timeval.h +13 -0
  44. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_tm.h +19 -0
  45. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__struct_tms.h +13 -0
  46. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_DIR.h +6 -0
  47. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_blkcnt_t.h +7 -0
  48. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_blksize_t.h +6 -0
  49. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_clock_t.h +7 -0
  50. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_clockid_t.h +6 -0
  51. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_dev_t.h +7 -0
  52. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_fd_set.h +14 -0
  53. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_gid_t.h +6 -0
  54. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_in_addr_t.h +6 -0
  55. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_in_port_t.h +6 -0
  56. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_ino_t.h +7 -0
  57. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_mode_t.h +6 -0
  58. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_nfds_t.h +6 -0
  59. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_nlink_t.h +7 -0
  60. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_off_t.h +7 -0
  61. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_sa_family_t.h +6 -0
  62. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_sigset_t.h +7 -0
  63. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_socklen_t.h +6 -0
  64. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_ssize_t.h +7 -0
  65. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_suseconds_t.h +8 -0
  66. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_time_t.h +7 -0
  67. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__typedef_uid_t.h +6 -0
  68. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/alloca.h +19 -0
  69. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/ar.h +25 -0
  70. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/arpa/ftp.h +35 -0
  71. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/arpa/inet.h +31 -0
  72. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/arpa/nameser.h +526 -0
  73. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/arpa/nameser_compat.h +2 -0
  74. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/arpa/telnet.h +251 -0
  75. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/arpa/tftp.h +31 -0
  76. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/assert.h +23 -0
  77. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/alltypes.h +460 -0
  78. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/dirent.h +1 -0
  79. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/fcntl.h +1 -0
  80. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/fenv.h +10 -0
  81. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/float.h +16 -0
  82. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/hwcap.h +0 -0
  83. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/io.h +0 -0
  84. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/ioctl.h +1 -0
  85. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/ioctl_fix.h +0 -0
  86. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/ipcstat.h +1 -0
  87. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/limits.h +1 -0
  88. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/mman.h +0 -0
  89. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/poll.h +0 -0
  90. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/posix.h +2 -0
  91. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/reg.h +2 -0
  92. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/resource.h +0 -0
  93. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/setjmp.h +1 -0
  94. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/signal.h +40 -0
  95. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/socket.h +0 -0
  96. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/stat.h +1 -0
  97. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/bits/stdint.h +20 -0
  98. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/byteswap.h +26 -0
  99. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/complex.h +143 -0
  100. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/cpio.h +29 -0
  101. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/crypt.h +20 -0
  102. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/ctype.h +77 -0
  103. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/dirent.h +89 -0
  104. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/dlfcn.h +56 -0
  105. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/endian.h +80 -0
  106. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/err.h +25 -0
  107. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/errno.h +32 -0
  108. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/fcntl.h +250 -0
  109. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/features.h +40 -0
  110. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/fenv.h +28 -0
  111. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/float.h +56 -0
  112. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/fmtmsg.h +47 -0
  113. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/fnmatch.h +24 -0
  114. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/fts.h +155 -0
  115. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/ftw.h +45 -0
  116. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/getopt.h +30 -0
  117. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/glob.h +54 -0
  118. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/iconv.h +24 -0
  119. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/ifaddrs.h +35 -0
  120. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/inttypes.h +233 -0
  121. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/iso646.h +20 -0
  122. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/langinfo.h +98 -0
  123. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/libgen.h +15 -0
  124. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/limits.h +178 -0
  125. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/locale.h +93 -0
  126. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/malloc.h +33 -0
  127. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/math.h +459 -0
  128. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/memory.h +1 -0
  129. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/monetary.h +23 -0
  130. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/mqueue.h +41 -0
  131. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/icmp6.h +305 -0
  132. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/igmp.h +45 -0
  133. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/in.h +433 -0
  134. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/in_systm.h +9 -0
  135. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/ip.h +199 -0
  136. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/ip6.h +141 -0
  137. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/ip_icmp.h +193 -0
  138. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/tcp.h +305 -0
  139. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netinet/udp.h +46 -0
  140. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/netpacket/packet.h +62 -0
  141. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/nl_types.h +22 -0
  142. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/poll.h +69 -0
  143. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/pthread.h +267 -0
  144. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/regex.h +62 -0
  145. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sched.h +152 -0
  146. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/search.h +63 -0
  147. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/semaphore.h +39 -0
  148. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/setjmp.h +55 -0
  149. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/signal.h +339 -0
  150. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdalign.h +20 -0
  151. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdbool.h +14 -0
  152. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdc-predef.h +18 -0
  153. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdint.h +117 -0
  154. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdio.h +254 -0
  155. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdio_ext.h +34 -0
  156. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdlib.h +217 -0
  157. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stdnoreturn.h +7 -0
  158. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/string.h +123 -0
  159. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/strings.h +40 -0
  160. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/stropts.h +139 -0
  161. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/dir.h +2 -0
  162. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/errno.h +2 -0
  163. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/eventfd.h +26 -0
  164. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/fcntl.h +2 -0
  165. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/file.h +21 -0
  166. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/ioctl.h +124 -0
  167. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/mman.h +157 -0
  168. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/param.h +37 -0
  169. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/poll.h +2 -0
  170. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/random.h +27 -0
  171. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/reg.h +9 -0
  172. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/resource.h +126 -0
  173. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/select.h +54 -0
  174. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/signal.h +2 -0
  175. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/socket.h +454 -0
  176. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/stat.h +198 -0
  177. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/statvfs.h +57 -0
  178. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/stropts.h +1 -0
  179. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/syscall.h +10 -0
  180. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/sysinfo.h +36 -0
  181. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/time.h +84 -0
  182. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/timeb.h +28 -0
  183. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/times.h +34 -0
  184. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/timex.h +103 -0
  185. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/ttydefaults.h +34 -0
  186. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/types.h +85 -0
  187. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/uio.h +57 -0
  188. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/un.h +39 -0
  189. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/utsname.h +29 -0
  190. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/syscall.h +1 -0
  191. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sysexits.h +21 -0
  192. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/tar.h +33 -0
  193. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/tgmath.h +270 -0
  194. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/threads.h +93 -0
  195. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/time.h +204 -0
  196. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/uchar.h +29 -0
  197. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/unistd.h +589 -0
  198. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/utime.h +29 -0
  199. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/values.h +39 -0
  200. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wasi/api.h +34 -0
  201. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wasi/libc-busywait.h +15 -0
  202. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wasi/libc-environ.h +36 -0
  203. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wasi/libc-find-relpath.h +75 -0
  204. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wasi/libc-nocwd.h +61 -0
  205. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wasi/libc.h +84 -0
  206. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wasi/version.h +17 -0
  207. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wasi/wasip1.h +2130 -0
  208. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wasi/wasip2.h +10 -0
  209. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wasi/wasip3.h +10 -0
  210. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wchar.h +214 -0
  211. package/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/wctype.h +79 -0
  212. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/cmake/libxml2-2.11.5/libxml2-config-version.cmake +83 -0
  213. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/cmake/libxml2-2.11.5/libxml2-config.cmake +160 -0
  214. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/cmake/libxml2-2.11.5/libxml2-export-release.cmake +19 -0
  215. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/cmake/libxml2-2.11.5/libxml2-export.cmake +108 -0
  216. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/crt1-command.o +0 -0
  217. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/crt1-reactor.o +0 -0
  218. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/crt1.o +0 -0
  219. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libc++.a +0 -0
  220. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libc++.modules.json +26 -0
  221. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libc++abi.a +0 -0
  222. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libc++experimental.a +0 -0
  223. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libc-printscan-long-double.a +0 -0
  224. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libc-printscan-no-floating-point.a +0 -0
  225. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libc.a +0 -0
  226. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libc.so +0 -0
  227. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libcrypt.a +1 -0
  228. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libdl.a +0 -0
  229. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libdl.so +0 -0
  230. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libm.a +1 -0
  231. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libpthread.a +1 -0
  232. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libresolv.a +1 -0
  233. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/librt.a +1 -0
  234. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libsetjmp.a +0 -0
  235. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libsetjmp.so +0 -0
  236. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libutil.a +1 -0
  237. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libwasi-emulated-getpid.a +0 -0
  238. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libwasi-emulated-getpid.so +0 -0
  239. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libwasi-emulated-mman.a +0 -0
  240. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libwasi-emulated-mman.so +0 -0
  241. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libwasi-emulated-process-clocks.a +0 -0
  242. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libwasi-emulated-process-clocks.so +0 -0
  243. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libwasi-emulated-signal.a +0 -0
  244. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libwasi-emulated-signal.so +0 -0
  245. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libxml2.a +0 -0
  246. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/libxnet.a +1 -0
  247. package/wasm32-unknown-wasip1/WASI.sdk/lib/wasm32-wasip1/pkgconfig/libxml-2.0.pc +13 -0
  248. package/wasm32-unknown-wasip1/swift-sdk.json +13 -0
  249. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/clang/lib/wasip1/libclang_rt.builtins-wasm32.a +0 -0
  250. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/clang/lib/wasip1/libclang_rt.profile-wasm32.a +0 -0
  251. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/apinotes/SwiftWASILibc.apinotes +5 -0
  252. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_cuda_builtin_vars.h +121 -0
  253. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_cuda_cmath.h +512 -0
  254. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_cuda_complex_builtins.h +285 -0
  255. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_cuda_device_functions.h +1572 -0
  256. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_cuda_intrinsics.h +994 -0
  257. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_cuda_libdevice_declares.h +468 -0
  258. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_cuda_math.h +353 -0
  259. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_cuda_math_forward_declares.h +284 -0
  260. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_cuda_runtime_wrapper.h +504 -0
  261. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_cuda_texture_intrinsics.h +1177 -0
  262. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_hip_cmath.h +848 -0
  263. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_hip_libdevice_declares.h +345 -0
  264. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_hip_math.h +1405 -0
  265. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_hip_runtime_wrapper.h +162 -0
  266. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_hip_stdlib.h +43 -0
  267. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__clang_spirv_builtins.h +217 -0
  268. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__float_float.h +165 -0
  269. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__float_header_macro.h +12 -0
  270. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__float_infinity_nan.h +20 -0
  271. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stdarg___gnuc_va_list.h +13 -0
  272. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stdarg___va_copy.h +12 -0
  273. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stdarg_header_macro.h +12 -0
  274. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stdarg_va_arg.h +22 -0
  275. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stdarg_va_copy.h +12 -0
  276. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stdarg_va_list.h +13 -0
  277. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_header_macro.h +12 -0
  278. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_max_align_t.h +27 -0
  279. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_null.h +29 -0
  280. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_nullptr_t.h +29 -0
  281. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_offsetof.h +17 -0
  282. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_ptrdiff_t.h +20 -0
  283. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_rsize_t.h +20 -0
  284. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_size_t.h +20 -0
  285. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_unreachable.h +21 -0
  286. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_wchar_t.h +28 -0
  287. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__stddef_wint_t.h +15 -0
  288. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__wmmintrin_aes.h +140 -0
  289. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/__wmmintrin_pclmul.h +48 -0
  290. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/adcintrin.h +165 -0
  291. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/adxintrin.h +107 -0
  292. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/altivec.h +19364 -0
  293. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amdgpuintrin.h +191 -0
  294. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ammintrin.h +183 -0
  295. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxavx512intrin.h +382 -0
  296. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxbf16transposeintrin.h +94 -0
  297. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxcomplexintrin.h +167 -0
  298. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxcomplextransposeintrin.h +303 -0
  299. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxfp16intrin.h +93 -0
  300. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxfp16transposeintrin.h +94 -0
  301. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxfp8intrin.h +230 -0
  302. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxintrin.h +494 -0
  303. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxmovrsintrin.h +48 -0
  304. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxmovrstransposeintrin.h +200 -0
  305. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxtf32intrin.h +108 -0
  306. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxtf32transposeintrin.h +105 -0
  307. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/amxtransposeintrin.h +248 -0
  308. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/andes_vector.h +16 -0
  309. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm64intr.h +35 -0
  310. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_acle.h +855 -0
  311. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_bf16.h +20 -0
  312. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_cde.h +410 -0
  313. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_cmse.h +217 -0
  314. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_fp16.h +596 -0
  315. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_mve.h +19187 -0
  316. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_neon.h +74047 -0
  317. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_neon_sve_bridge.h +182 -0
  318. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_sme.h +3741 -0
  319. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_sve.h +31898 -0
  320. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/arm_vector_types.h +432 -0
  321. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/armintr.h +31 -0
  322. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/availability_domain.h +51 -0
  323. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2_512bf16intrin.h +561 -0
  324. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2_512convertintrin.h +322 -0
  325. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2_512minmaxintrin.h +127 -0
  326. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2_512niintrin.h +314 -0
  327. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2_512satcvtdsintrin.h +307 -0
  328. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2_512satcvtintrin.h +301 -0
  329. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2bf16intrin.h +1085 -0
  330. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2convertintrin.h +3257 -0
  331. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2copyintrin.h +66 -0
  332. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2minmaxintrin.h +232 -0
  333. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2niintrin.h +409 -0
  334. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2satcvtdsintrin.h +376 -0
  335. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx10_2satcvtintrin.h +312 -0
  336. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx2intrin.h +5293 -0
  337. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512bf16intrin.h +283 -0
  338. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512bitalgintrin.h +86 -0
  339. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512bwintrin.h +2014 -0
  340. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512cdintrin.h +125 -0
  341. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512dqintrin.h +1379 -0
  342. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512fintrin.h +9787 -0
  343. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512fp16intrin.h +3353 -0
  344. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512ifmaintrin.h +70 -0
  345. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512ifmavlintrin.h +111 -0
  346. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vbmi2intrin.h +357 -0
  347. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vbmiintrin.h +106 -0
  348. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vbmivlintrin.h +193 -0
  349. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vlbf16intrin.h +517 -0
  350. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vlbitalgintrin.h +151 -0
  351. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vlbwintrin.h +3167 -0
  352. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vlcdintrin.h +230 -0
  353. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vldqintrin.h +1173 -0
  354. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vlfp16intrin.h +2071 -0
  355. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vlintrin.h +8437 -0
  356. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vlvbmi2intrin.h +695 -0
  357. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vlvnniintrin.h +310 -0
  358. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vlvp2intersectintrin.h +123 -0
  359. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vnniintrin.h +116 -0
  360. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vp2intersectintrin.h +78 -0
  361. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vpopcntdqintrin.h +64 -0
  362. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avx512vpopcntdqvlintrin.h +103 -0
  363. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avxifmaintrin.h +177 -0
  364. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avxintrin.h +5140 -0
  365. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avxneconvertintrin.h +484 -0
  366. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avxvnniint16intrin.h +432 -0
  367. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avxvnniint8intrin.h +430 -0
  368. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/avxvnniintrin.h +225 -0
  369. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/bmi2intrin.h +253 -0
  370. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/bmiintrin.h +604 -0
  371. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/bounds_safety_soft_traps.h +55 -0
  372. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/builtins.h +19 -0
  373. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/cet.h +66 -0
  374. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/cetintrin.h +115 -0
  375. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/cldemoteintrin.h +36 -0
  376. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/clflushoptintrin.h +36 -0
  377. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/clwbintrin.h +38 -0
  378. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/clzerointrin.h +38 -0
  379. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/cmpccxaddintrin.h +70 -0
  380. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/cpuid.h +354 -0
  381. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/crc32intrin.h +100 -0
  382. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/cuda_wrappers/bits/basic_string.h +9 -0
  383. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/cuda_wrappers/bits/c++config.h +61 -0
  384. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/cuda_wrappers/bits/shared_ptr_base.h +9 -0
  385. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/cuda_wrappers/cmath +44 -0
  386. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/emmintrin.h +4940 -0
  387. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/enqcmdintrin.h +63 -0
  388. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/f16cintrin.h +162 -0
  389. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/feature-availability.h +17 -0
  390. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/float.h +45 -0
  391. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/fma4intrin.h +218 -0
  392. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/fmaintrin.h +796 -0
  393. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/fuzzer/FuzzedDataProvider.h +397 -0
  394. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/fxsrintrin.h +91 -0
  395. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/gfniintrin.h +233 -0
  396. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/gpuintrin.h +328 -0
  397. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/hexagon_circ_brev_intrinsics.h +298 -0
  398. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/hexagon_protos.h +8439 -0
  399. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/hexagon_types.h +2625 -0
  400. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/hresetintrin.h +49 -0
  401. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/htmintrin.h +212 -0
  402. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/htmxlintrin.h +345 -0
  403. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/hvx_hexagon_protos.h +5610 -0
  404. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ia32intrin.h +863 -0
  405. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/immintrin.h +607 -0
  406. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/intrin.h +487 -0
  407. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/intrin0.h +256 -0
  408. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/inttypes.h +101 -0
  409. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/invpcidintrin.h +23 -0
  410. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/iso646.h +31 -0
  411. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/keylockerintrin.h +518 -0
  412. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/larchintrin.h +260 -0
  413. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/lasxintrin.h +3886 -0
  414. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/lifetimebound.h +37 -0
  415. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/limits.h +133 -0
  416. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/llvm_libc_wrappers/assert.h +34 -0
  417. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/llvm_libc_wrappers/ctype.h +140 -0
  418. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/llvm_libc_wrappers/inttypes.h +34 -0
  419. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/llvm_libc_wrappers/stdio.h +80 -0
  420. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/llvm_libc_wrappers/stdlib.h +53 -0
  421. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/llvm_libc_wrappers/string.h +96 -0
  422. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/llvm_libc_wrappers/time.h +34 -0
  423. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/llvm_offload_wrappers/__llvm_offload.h +31 -0
  424. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/llvm_offload_wrappers/__llvm_offload_device.h +10 -0
  425. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/llvm_offload_wrappers/__llvm_offload_host.h +15 -0
  426. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/lsxintrin.h +3752 -0
  427. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/lwpintrin.h +136 -0
  428. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/lzcntintrin.h +109 -0
  429. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/mm3dnow.h +22 -0
  430. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/mm_malloc.h +67 -0
  431. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/mmintrin.h +1610 -0
  432. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/module.modulemap +393 -0
  433. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/movdirintrin.h +49 -0
  434. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/movrs_avx10_2_512intrin.h +98 -0
  435. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/movrs_avx10_2intrin.h +174 -0
  436. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/movrsintrin.h +59 -0
  437. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/msa.h +573 -0
  438. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/mwaitxintrin.h +62 -0
  439. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/nmmintrin.h +20 -0
  440. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/nvptxintrin.h +219 -0
  441. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/opencl-c-base.h +851 -0
  442. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/opencl-c.h +18630 -0
  443. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/openmp_wrappers/__clang_openmp_device_functions.h +104 -0
  444. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/openmp_wrappers/cmath +132 -0
  445. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/openmp_wrappers/complex.h +35 -0
  446. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/openmp_wrappers/complex_cmath.h +393 -0
  447. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/openmp_wrappers/math.h +61 -0
  448. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/orc/c_api.h +202 -0
  449. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/pconfigintrin.h +40 -0
  450. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/pkuintrin.h +34 -0
  451. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/pmmintrin.h +314 -0
  452. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/popcntintrin.h +59 -0
  453. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/bmi2intrin.h +134 -0
  454. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/bmiintrin.h +165 -0
  455. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/emmintrin.h +2269 -0
  456. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/immintrin.h +27 -0
  457. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/mm_malloc.h +45 -0
  458. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/mmintrin.h +1453 -0
  459. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/nmmintrin.h +26 -0
  460. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/pmmintrin.h +145 -0
  461. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/smmintrin.h +683 -0
  462. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/tmmintrin.h +453 -0
  463. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/x86gprintrin.h +17 -0
  464. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/x86intrin.h +28 -0
  465. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ppc_wrappers/xmmintrin.h +1827 -0
  466. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/prfchiintrin.h +61 -0
  467. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/prfchwintrin.h +57 -0
  468. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/profile/instr_prof_interface.h +88 -0
  469. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ptrauth.h +467 -0
  470. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ptrcheck.h +339 -0
  471. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/ptwriteintrin.h +37 -0
  472. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/raointintrin.h +203 -0
  473. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/rdpruintrin.h +57 -0
  474. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/rdseedintrin.h +105 -0
  475. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/riscv_bitmanip.h +195 -0
  476. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/riscv_corev_alu.h +128 -0
  477. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/riscv_crypto.h +170 -0
  478. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/riscv_ntlh.h +26 -0
  479. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/riscv_vector.h +422 -0
  480. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/rtmintrin.h +45 -0
  481. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/s390intrin.h +25 -0
  482. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/allocator_interface.h +106 -0
  483. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/asan_interface.h +340 -0
  484. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/common_interface_defs.h +492 -0
  485. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/coverage_interface.h +36 -0
  486. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/dfsan_interface.h +220 -0
  487. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/hwasan_interface.h +109 -0
  488. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/linux_syscall_hooks.h +3112 -0
  489. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/lsan_interface.h +89 -0
  490. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/memprof_interface.h +72 -0
  491. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/msan_interface.h +135 -0
  492. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/netbsd_syscall_hooks.h +5005 -0
  493. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/rtsan_interface.h +75 -0
  494. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/scudo_interface.h +38 -0
  495. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/tsan_interface.h +316 -0
  496. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/tsan_interface_atomic.h +223 -0
  497. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sanitizer/ubsan_interface.h +34 -0
  498. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/serializeintrin.h +30 -0
  499. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sgxintrin.h +60 -0
  500. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sha512intrin.h +200 -0
  501. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/shaintrin.h +190 -0
  502. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sifive_vector.h +118 -0
  503. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sm3intrin.h +238 -0
  504. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sm4evexintrin.h +32 -0
  505. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/sm4intrin.h +269 -0
  506. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/smmintrin.h +2334 -0
  507. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/stdalign.h +24 -0
  508. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/stdarg.h +75 -0
  509. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/stdatomic.h +204 -0
  510. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/stdbool.h +39 -0
  511. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/stdckdint.h +42 -0
  512. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/stdcountof.h +15 -0
  513. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/stddef.h +144 -0
  514. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/stdint.h +844 -0
  515. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/stdnoreturn.h +35 -0
  516. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/tbmintrin.h +128 -0
  517. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/tgmath.h +1368 -0
  518. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/tmmintrin.h +810 -0
  519. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/tsxldtrkintrin.h +56 -0
  520. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/uintrintrin.h +157 -0
  521. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/unwind.h +332 -0
  522. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/usermsrintrin.h +51 -0
  523. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/vadefs.h +51 -0
  524. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/vaesintrin.h +87 -0
  525. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/varargs.h +16 -0
  526. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/vecintrin.h +12868 -0
  527. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/velintrin.h +71 -0
  528. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/velintrin_approx.h +120 -0
  529. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/velintrin_gen.h +1257 -0
  530. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/vpclmulqdqintrin.h +30 -0
  531. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/waitpkgintrin.h +42 -0
  532. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/wasm_simd128.h +2143 -0
  533. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/wbnoinvdintrin.h +24 -0
  534. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/wmmintrin.h +23 -0
  535. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/x86gprintrin.h +49 -0
  536. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/x86intrin.h +35 -0
  537. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/xmmintrin.h +3201 -0
  538. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/xopintrin.h +770 -0
  539. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/xray/xray_interface.h +178 -0
  540. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/xray/xray_log_interface.h +357 -0
  541. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/xray/xray_records.h +134 -0
  542. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/xsavecintrin.h +84 -0
  543. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/xsaveintrin.h +63 -0
  544. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/xsaveoptintrin.h +34 -0
  545. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/xsavesintrin.h +44 -0
  546. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/xtestintrin.h +27 -0
  547. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/yvals_core.h +25 -0
  548. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/include/zos_wrappers/builtins.h +18 -0
  549. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/lib/wasip1/libclang_rt.builtins-wasm32.a +0 -0
  550. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang/lib/wasip1/libclang_rt.profile-wasm32.a +0 -0
  551. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/AssertionReporting.h +87 -0
  552. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/CoreFoundationShims.h +97 -0
  553. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/EmbeddedShims.h +277 -0
  554. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/FoundationShims.h +65 -0
  555. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/GlobalObjects.h +114 -0
  556. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/HeapObject.h +304 -0
  557. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/KeyPath.h +142 -0
  558. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/LibcOverlayShims.h +141 -0
  559. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/LibcShims.h +198 -0
  560. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/MetadataSections.h +100 -0
  561. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/ObjCShims.h +51 -0
  562. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/Random.h +43 -0
  563. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/RefCount.h +1654 -0
  564. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/Reflection.h +36 -0
  565. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/RuntimeShims.h +161 -0
  566. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/RuntimeStubs.h +61 -0
  567. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/SwiftStdbool.h +23 -0
  568. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/SwiftStddef.h +53 -0
  569. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/SwiftStdint.h +89 -0
  570. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/System.h +227 -0
  571. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/Target.h +45 -0
  572. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/ThreadLocalStorage.h +76 -0
  573. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/Visibility.h +312 -0
  574. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/_SwiftConcurrency.h +33 -0
  575. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/_SwiftDistributed.h +29 -0
  576. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/_SynchronizationShims.h +60 -0
  577. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/shims/module.modulemap +39 -0
  578. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Distributed.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +346 -0
  579. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Distributed.swiftmodule/wasm32-unknown-wasip1.swiftinterface +346 -0
  580. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Distributed.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  581. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Observation.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +173 -0
  582. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Observation.swiftmodule/wasm32-unknown-wasip1.swiftinterface +157 -0
  583. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Observation.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  584. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/RegexBuilder.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +2961 -0
  585. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/RegexBuilder.swiftmodule/wasm32-unknown-wasip1.swiftinterface +2961 -0
  586. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/RegexBuilder.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  587. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Swift.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +58665 -0
  588. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Swift.swiftmodule/wasm32-unknown-wasip1.swiftinterface +57923 -0
  589. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Swift.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  590. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/SwiftOnoneSupport.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +5 -0
  591. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/SwiftOnoneSupport.swiftmodule/wasm32-unknown-wasip1.swiftinterface +5 -0
  592. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/SwiftOnoneSupport.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  593. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Synchronization.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +7122 -0
  594. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Synchronization.swiftmodule/wasm32-unknown-wasip1.swiftinterface +7122 -0
  595. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Synchronization.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  596. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/WASILibc.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +423 -0
  597. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/WASILibc.swiftmodule/wasm32-unknown-wasip1.swiftinterface +423 -0
  598. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/WASILibc.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  599. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Builtin_float.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +51 -0
  600. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Builtin_float.swiftmodule/wasm32-unknown-wasip1.swiftinterface +51 -0
  601. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Builtin_float.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  602. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Concurrency.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +7915 -0
  603. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Concurrency.swiftmodule/wasm32-unknown-wasip1.swiftinterface +7779 -0
  604. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Concurrency.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  605. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Differentiation.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +2257 -0
  606. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Differentiation.swiftmodule/wasm32-unknown-wasip1.swiftinterface +2257 -0
  607. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Differentiation.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  608. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_RegexParser.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +2310 -0
  609. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_RegexParser.swiftmodule/wasm32-unknown-wasip1.swiftinterface +2297 -0
  610. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_RegexParser.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  611. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_StringProcessing.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +573 -0
  612. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_StringProcessing.swiftmodule/wasm32-unknown-wasip1.swiftinterface +372 -0
  613. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_StringProcessing.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  614. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Volatile.swiftmodule/wasm32-unknown-wasip1.private.swiftinterface +46 -0
  615. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Volatile.swiftmodule/wasm32-unknown-wasip1.swiftinterface +46 -0
  616. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_Volatile.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  617. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswiftCore.a +0 -0
  618. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswiftDistributed.a +0 -0
  619. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswiftObservation.a +0 -0
  620. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswiftRegexBuilder.a +0 -0
  621. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswiftSwiftOnoneSupport.a +0 -0
  622. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswiftSynchronization.a +0 -0
  623. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswiftWASILibc.a +0 -0
  624. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswift_Builtin_float.a +0 -0
  625. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswift_Concurrency.a +0 -0
  626. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswift_Differentiation.a +0 -0
  627. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswift_RegexParser.a +0 -0
  628. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswift_StringProcessing.a +0 -0
  629. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libswift_Volatile.a +0 -0
  630. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/static-executable-args.lnk +10 -0
  631. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/wasm32/swiftrt.o +0 -0
  632. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/wasm32/wasi-libc.modulemap +95 -0
  633. package/wasm32-unknown-wasip1/toolset.json +9 -0
@@ -0,0 +1,3201 @@
1
+ /*===---- xmmintrin.h - SSE 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 __XMMINTRIN_H
11
+ #define __XMMINTRIN_H
12
+
13
+ #if !defined(__i386__) && !defined(__x86_64__)
14
+ #error "This header is only meant to be used on x86 and x64 architecture"
15
+ #endif
16
+
17
+ #include <mmintrin.h>
18
+
19
+ typedef int __v4si __attribute__((__vector_size__(16)));
20
+ typedef float __v4sf __attribute__((__vector_size__(16)));
21
+ typedef float __m128 __attribute__((__vector_size__(16), __aligned__(16)));
22
+
23
+ typedef float __m128_u __attribute__((__vector_size__(16), __aligned__(1)));
24
+
25
+ /* Unsigned types */
26
+ typedef unsigned int __v4su __attribute__((__vector_size__(16)));
27
+
28
+ /* This header should only be included in a hosted environment as it depends on
29
+ * a standard library to provide allocation routines. */
30
+ #if __STDC_HOSTED__
31
+ #include <mm_malloc.h>
32
+ #endif
33
+
34
+ /* Define the default attributes for the functions in this file. */
35
+ #if defined(__EVEX512__) && !defined(__AVX10_1_512__)
36
+ #define __DEFAULT_FN_ATTRS \
37
+ __attribute__((__always_inline__, __nodebug__, __target__("sse,no-evex512"), \
38
+ __min_vector_width__(128)))
39
+ #define __DEFAULT_FN_ATTRS_SSE2 \
40
+ __attribute__((__always_inline__, __nodebug__, \
41
+ __target__("sse2,no-evex512"), __min_vector_width__(128)))
42
+ #else
43
+ #define __DEFAULT_FN_ATTRS \
44
+ __attribute__((__always_inline__, __nodebug__, __target__("sse"), \
45
+ __min_vector_width__(128)))
46
+ #define __DEFAULT_FN_ATTRS_SSE2 \
47
+ __attribute__((__always_inline__, __nodebug__, __target__("sse2"), \
48
+ __min_vector_width__(128)))
49
+ #endif
50
+
51
+ #if defined(__cplusplus) && (__cplusplus >= 201103L)
52
+ #define __DEFAULT_FN_ATTRS_CONSTEXPR __DEFAULT_FN_ATTRS constexpr
53
+ #define __DEFAULT_FN_ATTRS_SSE2_CONSTEXPR __DEFAULT_FN_ATTRS_SSE2 constexpr
54
+ #else
55
+ #define __DEFAULT_FN_ATTRS_CONSTEXPR __DEFAULT_FN_ATTRS
56
+ #define __DEFAULT_FN_ATTRS_SSE2_CONSTEXPR __DEFAULT_FN_ATTRS_SSE2
57
+ #endif
58
+
59
+ #define __trunc64(x) \
60
+ (__m64) __builtin_shufflevector((__v2di)(x), __extension__(__v2di){}, 0)
61
+ #define __zext128(x) \
62
+ (__m128i) __builtin_shufflevector((__v2si)(x), __extension__(__v2si){}, 0, \
63
+ 1, 2, 3)
64
+ #define __anyext128(x) \
65
+ (__m128i) __builtin_shufflevector((__v2si)(x), __extension__(__v2si){}, 0, \
66
+ 1, -1, -1)
67
+ #define __zeroupper64(x) \
68
+ (__m128i) __builtin_shufflevector((__v4si)(x), __extension__(__v4si){}, 0, \
69
+ 1, 4, 5)
70
+
71
+ /// Adds the 32-bit float values in the low-order bits of the operands.
72
+ ///
73
+ /// \headerfile <x86intrin.h>
74
+ ///
75
+ /// This intrinsic corresponds to the <c> VADDSS / ADDSS </c> instructions.
76
+ ///
77
+ /// \param __a
78
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
79
+ /// The lower 32 bits of this operand are used in the calculation.
80
+ /// \param __b
81
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
82
+ /// The lower 32 bits of this operand are used in the calculation.
83
+ /// \returns A 128-bit vector of [4 x float] whose lower 32 bits contain the sum
84
+ /// of the lower 32 bits of both operands. The upper 96 bits are copied from
85
+ /// the upper 96 bits of the first source operand.
86
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
87
+ _mm_add_ss(__m128 __a, __m128 __b) {
88
+ __a[0] += __b[0];
89
+ return __a;
90
+ }
91
+
92
+ /// Adds two 128-bit vectors of [4 x float], and returns the results of
93
+ /// the addition.
94
+ ///
95
+ /// \headerfile <x86intrin.h>
96
+ ///
97
+ /// This intrinsic corresponds to the <c> VADDPS / ADDPS </c> instructions.
98
+ ///
99
+ /// \param __a
100
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
101
+ /// \param __b
102
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
103
+ /// \returns A 128-bit vector of [4 x float] containing the sums of both
104
+ /// operands.
105
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
106
+ _mm_add_ps(__m128 __a, __m128 __b) {
107
+ return (__m128)((__v4sf)__a + (__v4sf)__b);
108
+ }
109
+
110
+ /// Subtracts the 32-bit float value in the low-order bits of the second
111
+ /// operand from the corresponding value in the first operand.
112
+ ///
113
+ /// \headerfile <x86intrin.h>
114
+ ///
115
+ /// This intrinsic corresponds to the <c> VSUBSS / SUBSS </c> instructions.
116
+ ///
117
+ /// \param __a
118
+ /// A 128-bit vector of [4 x float] containing the minuend. The lower 32 bits
119
+ /// of this operand are used in the calculation.
120
+ /// \param __b
121
+ /// A 128-bit vector of [4 x float] containing the subtrahend. The lower 32
122
+ /// bits of this operand are used in the calculation.
123
+ /// \returns A 128-bit vector of [4 x float] whose lower 32 bits contain the
124
+ /// difference of the lower 32 bits of both operands. The upper 96 bits are
125
+ /// copied from the upper 96 bits of the first source operand.
126
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
127
+ _mm_sub_ss(__m128 __a, __m128 __b) {
128
+ __a[0] -= __b[0];
129
+ return __a;
130
+ }
131
+
132
+ /// Subtracts each of the values of the second operand from the first
133
+ /// operand, both of which are 128-bit vectors of [4 x float] and returns
134
+ /// the results of the subtraction.
135
+ ///
136
+ /// \headerfile <x86intrin.h>
137
+ ///
138
+ /// This intrinsic corresponds to the <c> VSUBPS / SUBPS </c> instructions.
139
+ ///
140
+ /// \param __a
141
+ /// A 128-bit vector of [4 x float] containing the minuend.
142
+ /// \param __b
143
+ /// A 128-bit vector of [4 x float] containing the subtrahend.
144
+ /// \returns A 128-bit vector of [4 x float] containing the differences between
145
+ /// both operands.
146
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
147
+ _mm_sub_ps(__m128 __a, __m128 __b) {
148
+ return (__m128)((__v4sf)__a - (__v4sf)__b);
149
+ }
150
+
151
+ /// Multiplies two 32-bit float values in the low-order bits of the
152
+ /// operands.
153
+ ///
154
+ /// \headerfile <x86intrin.h>
155
+ ///
156
+ /// This intrinsic corresponds to the <c> VMULSS / MULSS </c> instructions.
157
+ ///
158
+ /// \param __a
159
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
160
+ /// The lower 32 bits of this operand are used in the calculation.
161
+ /// \param __b
162
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
163
+ /// The lower 32 bits of this operand are used in the calculation.
164
+ /// \returns A 128-bit vector of [4 x float] containing the product of the lower
165
+ /// 32 bits of both operands. The upper 96 bits are copied from the upper 96
166
+ /// bits of the first source operand.
167
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
168
+ _mm_mul_ss(__m128 __a, __m128 __b) {
169
+ __a[0] *= __b[0];
170
+ return __a;
171
+ }
172
+
173
+ /// Multiplies two 128-bit vectors of [4 x float] and returns the
174
+ /// results of the multiplication.
175
+ ///
176
+ /// \headerfile <x86intrin.h>
177
+ ///
178
+ /// This intrinsic corresponds to the <c> VMULPS / MULPS </c> instructions.
179
+ ///
180
+ /// \param __a
181
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
182
+ /// \param __b
183
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
184
+ /// \returns A 128-bit vector of [4 x float] containing the products of both
185
+ /// operands.
186
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
187
+ _mm_mul_ps(__m128 __a, __m128 __b) {
188
+ return (__m128)((__v4sf)__a * (__v4sf)__b);
189
+ }
190
+
191
+ /// Divides the value in the low-order 32 bits of the first operand by
192
+ /// the corresponding value in the second operand.
193
+ ///
194
+ /// \headerfile <x86intrin.h>
195
+ ///
196
+ /// This intrinsic corresponds to the <c> VDIVSS / DIVSS </c> instructions.
197
+ ///
198
+ /// \param __a
199
+ /// A 128-bit vector of [4 x float] containing the dividend. The lower 32
200
+ /// bits of this operand are used in the calculation.
201
+ /// \param __b
202
+ /// A 128-bit vector of [4 x float] containing the divisor. The lower 32 bits
203
+ /// of this operand are used in the calculation.
204
+ /// \returns A 128-bit vector of [4 x float] containing the quotients of the
205
+ /// lower 32 bits of both operands. The upper 96 bits are copied from the
206
+ /// upper 96 bits of the first source operand.
207
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
208
+ _mm_div_ss(__m128 __a, __m128 __b) {
209
+ __a[0] /= __b[0];
210
+ return __a;
211
+ }
212
+
213
+ /// Divides two 128-bit vectors of [4 x float].
214
+ ///
215
+ /// \headerfile <x86intrin.h>
216
+ ///
217
+ /// This intrinsic corresponds to the <c> VDIVPS / DIVPS </c> instructions.
218
+ ///
219
+ /// \param __a
220
+ /// A 128-bit vector of [4 x float] containing the dividend.
221
+ /// \param __b
222
+ /// A 128-bit vector of [4 x float] containing the divisor.
223
+ /// \returns A 128-bit vector of [4 x float] containing the quotients of both
224
+ /// operands.
225
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
226
+ _mm_div_ps(__m128 __a, __m128 __b) {
227
+ return (__m128)((__v4sf)__a / (__v4sf)__b);
228
+ }
229
+
230
+ /// Calculates the square root of the value stored in the low-order bits
231
+ /// of a 128-bit vector of [4 x float].
232
+ ///
233
+ /// \headerfile <x86intrin.h>
234
+ ///
235
+ /// This intrinsic corresponds to the <c> VSQRTSS / SQRTSS </c> instructions.
236
+ ///
237
+ /// \param __a
238
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
239
+ /// used in the calculation.
240
+ /// \returns A 128-bit vector of [4 x float] containing the square root of the
241
+ /// value in the low-order bits of the operand.
242
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
243
+ _mm_sqrt_ss(__m128 __a)
244
+ {
245
+ return (__m128)__builtin_ia32_sqrtss((__v4sf)__a);
246
+ }
247
+
248
+ /// Calculates the square roots of the values stored in a 128-bit vector
249
+ /// of [4 x float].
250
+ ///
251
+ /// \headerfile <x86intrin.h>
252
+ ///
253
+ /// This intrinsic corresponds to the <c> VSQRTPS / SQRTPS </c> instructions.
254
+ ///
255
+ /// \param __a
256
+ /// A 128-bit vector of [4 x float].
257
+ /// \returns A 128-bit vector of [4 x float] containing the square roots of the
258
+ /// values in the operand.
259
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
260
+ _mm_sqrt_ps(__m128 __a)
261
+ {
262
+ return __builtin_ia32_sqrtps((__v4sf)__a);
263
+ }
264
+
265
+ /// Calculates the approximate reciprocal of the value stored in the
266
+ /// low-order bits of a 128-bit vector of [4 x float].
267
+ ///
268
+ /// \headerfile <x86intrin.h>
269
+ ///
270
+ /// This intrinsic corresponds to the <c> VRCPSS / RCPSS </c> instructions.
271
+ ///
272
+ /// \param __a
273
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
274
+ /// used in the calculation.
275
+ /// \returns A 128-bit vector of [4 x float] containing the approximate
276
+ /// reciprocal of the value in the low-order bits of the operand.
277
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
278
+ _mm_rcp_ss(__m128 __a)
279
+ {
280
+ return (__m128)__builtin_ia32_rcpss((__v4sf)__a);
281
+ }
282
+
283
+ /// Calculates the approximate reciprocals of the values stored in a
284
+ /// 128-bit vector of [4 x float].
285
+ ///
286
+ /// \headerfile <x86intrin.h>
287
+ ///
288
+ /// This intrinsic corresponds to the <c> VRCPPS / RCPPS </c> instructions.
289
+ ///
290
+ /// \param __a
291
+ /// A 128-bit vector of [4 x float].
292
+ /// \returns A 128-bit vector of [4 x float] containing the approximate
293
+ /// reciprocals of the values in the operand.
294
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
295
+ _mm_rcp_ps(__m128 __a)
296
+ {
297
+ return (__m128)__builtin_ia32_rcpps((__v4sf)__a);
298
+ }
299
+
300
+ /// Calculates the approximate reciprocal of the square root of the value
301
+ /// stored in the low-order bits of a 128-bit vector of [4 x float].
302
+ ///
303
+ /// \headerfile <x86intrin.h>
304
+ ///
305
+ /// This intrinsic corresponds to the <c> VRSQRTSS / RSQRTSS </c> instructions.
306
+ ///
307
+ /// \param __a
308
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
309
+ /// used in the calculation.
310
+ /// \returns A 128-bit vector of [4 x float] containing the approximate
311
+ /// reciprocal of the square root of the value in the low-order bits of the
312
+ /// operand.
313
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
314
+ _mm_rsqrt_ss(__m128 __a)
315
+ {
316
+ return __builtin_ia32_rsqrtss((__v4sf)__a);
317
+ }
318
+
319
+ /// Calculates the approximate reciprocals of the square roots of the
320
+ /// values stored in a 128-bit vector of [4 x float].
321
+ ///
322
+ /// \headerfile <x86intrin.h>
323
+ ///
324
+ /// This intrinsic corresponds to the <c> VRSQRTPS / RSQRTPS </c> instructions.
325
+ ///
326
+ /// \param __a
327
+ /// A 128-bit vector of [4 x float].
328
+ /// \returns A 128-bit vector of [4 x float] containing the approximate
329
+ /// reciprocals of the square roots of the values in the operand.
330
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
331
+ _mm_rsqrt_ps(__m128 __a)
332
+ {
333
+ return __builtin_ia32_rsqrtps((__v4sf)__a);
334
+ }
335
+
336
+ /// Compares two 32-bit float values in the low-order bits of both
337
+ /// operands and returns the lesser value in the low-order bits of the
338
+ /// vector of [4 x float].
339
+ ///
340
+ /// If either value in a comparison is NaN, returns the value from \a __b.
341
+ ///
342
+ /// \headerfile <x86intrin.h>
343
+ ///
344
+ /// This intrinsic corresponds to the <c> VMINSS / MINSS </c> instructions.
345
+ ///
346
+ /// \param __a
347
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
348
+ /// 32 bits of this operand are used in the comparison.
349
+ /// \param __b
350
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
351
+ /// 32 bits of this operand are used in the comparison.
352
+ /// \returns A 128-bit vector of [4 x float] whose lower 32 bits contain the
353
+ /// minimum value between both operands. The upper 96 bits are copied from
354
+ /// the upper 96 bits of the first source operand.
355
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
356
+ _mm_min_ss(__m128 __a, __m128 __b)
357
+ {
358
+ return __builtin_ia32_minss((__v4sf)__a, (__v4sf)__b);
359
+ }
360
+
361
+ /// Compares two 128-bit vectors of [4 x float] and returns the lesser
362
+ /// of each pair of values.
363
+ ///
364
+ /// If either value in a comparison is NaN, returns the value from \a __b.
365
+ ///
366
+ /// \headerfile <x86intrin.h>
367
+ ///
368
+ /// This intrinsic corresponds to the <c> VMINPS / MINPS </c> instructions.
369
+ ///
370
+ /// \param __a
371
+ /// A 128-bit vector of [4 x float] containing one of the operands.
372
+ /// \param __b
373
+ /// A 128-bit vector of [4 x float] containing one of the operands.
374
+ /// \returns A 128-bit vector of [4 x float] containing the minimum values
375
+ /// between both operands.
376
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
377
+ _mm_min_ps(__m128 __a, __m128 __b)
378
+ {
379
+ return __builtin_ia32_minps((__v4sf)__a, (__v4sf)__b);
380
+ }
381
+
382
+ /// Compares two 32-bit float values in the low-order bits of both
383
+ /// operands and returns the greater value in the low-order bits of a 128-bit
384
+ /// vector of [4 x float].
385
+ ///
386
+ /// If either value in a comparison is NaN, returns the value from \a __b.
387
+ ///
388
+ /// \headerfile <x86intrin.h>
389
+ ///
390
+ /// This intrinsic corresponds to the <c> VMAXSS / MAXSS </c> instructions.
391
+ ///
392
+ /// \param __a
393
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
394
+ /// 32 bits of this operand are used in the comparison.
395
+ /// \param __b
396
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
397
+ /// 32 bits of this operand are used in the comparison.
398
+ /// \returns A 128-bit vector of [4 x float] whose lower 32 bits contain the
399
+ /// maximum value between both operands. The upper 96 bits are copied from
400
+ /// the upper 96 bits of the first source operand.
401
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
402
+ _mm_max_ss(__m128 __a, __m128 __b)
403
+ {
404
+ return __builtin_ia32_maxss((__v4sf)__a, (__v4sf)__b);
405
+ }
406
+
407
+ /// Compares two 128-bit vectors of [4 x float] and returns the greater
408
+ /// of each pair of values.
409
+ ///
410
+ /// If either value in a comparison is NaN, returns the value from \a __b.
411
+ ///
412
+ /// \headerfile <x86intrin.h>
413
+ ///
414
+ /// This intrinsic corresponds to the <c> VMAXPS / MAXPS </c> instructions.
415
+ ///
416
+ /// \param __a
417
+ /// A 128-bit vector of [4 x float] containing one of the operands.
418
+ /// \param __b
419
+ /// A 128-bit vector of [4 x float] containing one of the operands.
420
+ /// \returns A 128-bit vector of [4 x float] containing the maximum values
421
+ /// between both operands.
422
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
423
+ _mm_max_ps(__m128 __a, __m128 __b)
424
+ {
425
+ return __builtin_ia32_maxps((__v4sf)__a, (__v4sf)__b);
426
+ }
427
+
428
+ /// Performs a bitwise AND of two 128-bit vectors of [4 x float].
429
+ ///
430
+ /// \headerfile <x86intrin.h>
431
+ ///
432
+ /// This intrinsic corresponds to the <c> VANDPS / ANDPS </c> instructions.
433
+ ///
434
+ /// \param __a
435
+ /// A 128-bit vector containing one of the source operands.
436
+ /// \param __b
437
+ /// A 128-bit vector containing one of the source operands.
438
+ /// \returns A 128-bit vector of [4 x float] containing the bitwise AND of the
439
+ /// values between both operands.
440
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
441
+ _mm_and_ps(__m128 __a, __m128 __b) {
442
+ return (__m128)((__v4su)__a & (__v4su)__b);
443
+ }
444
+
445
+ /// Performs a bitwise AND of two 128-bit vectors of [4 x float], using
446
+ /// the one's complement of the values contained in the first source
447
+ /// operand.
448
+ ///
449
+ /// \headerfile <x86intrin.h>
450
+ ///
451
+ /// This intrinsic corresponds to the <c> VANDNPS / ANDNPS </c> instructions.
452
+ ///
453
+ /// \param __a
454
+ /// A 128-bit vector of [4 x float] containing the first source operand. The
455
+ /// one's complement of this value is used in the bitwise AND.
456
+ /// \param __b
457
+ /// A 128-bit vector of [4 x float] containing the second source operand.
458
+ /// \returns A 128-bit vector of [4 x float] containing the bitwise AND of the
459
+ /// one's complement of the first operand and the values in the second
460
+ /// operand.
461
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
462
+ _mm_andnot_ps(__m128 __a, __m128 __b) {
463
+ return (__m128)(~(__v4su)__a & (__v4su)__b);
464
+ }
465
+
466
+ /// Performs a bitwise OR of two 128-bit vectors of [4 x float].
467
+ ///
468
+ /// \headerfile <x86intrin.h>
469
+ ///
470
+ /// This intrinsic corresponds to the <c> VORPS / ORPS </c> instructions.
471
+ ///
472
+ /// \param __a
473
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
474
+ /// \param __b
475
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
476
+ /// \returns A 128-bit vector of [4 x float] containing the bitwise OR of the
477
+ /// values between both operands.
478
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
479
+ _mm_or_ps(__m128 __a, __m128 __b) {
480
+ return (__m128)((__v4su)__a | (__v4su)__b);
481
+ }
482
+
483
+ /// Performs a bitwise exclusive OR of two 128-bit vectors of
484
+ /// [4 x float].
485
+ ///
486
+ /// \headerfile <x86intrin.h>
487
+ ///
488
+ /// This intrinsic corresponds to the <c> VXORPS / XORPS </c> instructions.
489
+ ///
490
+ /// \param __a
491
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
492
+ /// \param __b
493
+ /// A 128-bit vector of [4 x float] containing one of the source operands.
494
+ /// \returns A 128-bit vector of [4 x float] containing the bitwise exclusive OR
495
+ /// of the values between both operands.
496
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
497
+ _mm_xor_ps(__m128 __a, __m128 __b) {
498
+ return (__m128)((__v4su)__a ^ (__v4su)__b);
499
+ }
500
+
501
+ /// Compares two 32-bit float values in the low-order bits of both
502
+ /// operands for equality.
503
+ ///
504
+ /// The comparison returns 0x0 for false, 0xFFFFFFFF for true, in the
505
+ /// low-order bits of a vector [4 x float].
506
+ /// If either value in a comparison is NaN, returns false.
507
+ ///
508
+ /// \headerfile <x86intrin.h>
509
+ ///
510
+ /// This intrinsic corresponds to the <c> VCMPEQSS / CMPEQSS </c> instructions.
511
+ ///
512
+ /// \param __a
513
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
514
+ /// 32 bits of this operand are used in the comparison.
515
+ /// \param __b
516
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
517
+ /// 32 bits of this operand are used in the comparison.
518
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
519
+ /// in the low-order bits.
520
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
521
+ _mm_cmpeq_ss(__m128 __a, __m128 __b)
522
+ {
523
+ return (__m128)__builtin_ia32_cmpeqss((__v4sf)__a, (__v4sf)__b);
524
+ }
525
+
526
+ /// Compares each of the corresponding 32-bit float values of the
527
+ /// 128-bit vectors of [4 x float] for equality.
528
+ ///
529
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true.
530
+ /// If either value in a comparison is NaN, returns false.
531
+ ///
532
+ /// \headerfile <x86intrin.h>
533
+ ///
534
+ /// This intrinsic corresponds to the <c> VCMPEQPS / CMPEQPS </c> instructions.
535
+ ///
536
+ /// \param __a
537
+ /// A 128-bit vector of [4 x float].
538
+ /// \param __b
539
+ /// A 128-bit vector of [4 x float].
540
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
541
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
542
+ _mm_cmpeq_ps(__m128 __a, __m128 __b)
543
+ {
544
+ return (__m128)__builtin_ia32_cmpeqps((__v4sf)__a, (__v4sf)__b);
545
+ }
546
+
547
+ /// Compares two 32-bit float values in the low-order bits of both
548
+ /// operands to determine if the value in the first operand is less than the
549
+ /// corresponding value in the second operand.
550
+ ///
551
+ /// The comparison returns 0x0 for false, 0xFFFFFFFF for true, in the
552
+ /// low-order bits of a vector of [4 x float].
553
+ /// If either value in a comparison is NaN, returns false.
554
+ ///
555
+ /// \headerfile <x86intrin.h>
556
+ ///
557
+ /// This intrinsic corresponds to the <c> VCMPLTSS / CMPLTSS </c> instructions.
558
+ ///
559
+ /// \param __a
560
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
561
+ /// 32 bits of this operand are used in the comparison.
562
+ /// \param __b
563
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
564
+ /// 32 bits of this operand are used in the comparison.
565
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
566
+ /// in the low-order bits.
567
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
568
+ _mm_cmplt_ss(__m128 __a, __m128 __b)
569
+ {
570
+ return (__m128)__builtin_ia32_cmpltss((__v4sf)__a, (__v4sf)__b);
571
+ }
572
+
573
+ /// Compares each of the corresponding 32-bit float values of the
574
+ /// 128-bit vectors of [4 x float] to determine if the values in the first
575
+ /// operand are less than those in the second operand.
576
+ ///
577
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFFFFFFFFFF for true.
578
+ /// If either value in a comparison is NaN, returns false.
579
+ ///
580
+ /// \headerfile <x86intrin.h>
581
+ ///
582
+ /// This intrinsic corresponds to the <c> VCMPLTPS / CMPLTPS </c> instructions.
583
+ ///
584
+ /// \param __a
585
+ /// A 128-bit vector of [4 x float].
586
+ /// \param __b
587
+ /// A 128-bit vector of [4 x float].
588
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
589
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
590
+ _mm_cmplt_ps(__m128 __a, __m128 __b)
591
+ {
592
+ return (__m128)__builtin_ia32_cmpltps((__v4sf)__a, (__v4sf)__b);
593
+ }
594
+
595
+ /// Compares two 32-bit float values in the low-order bits of both
596
+ /// operands to determine if the value in the first operand is less than or
597
+ /// equal to the corresponding value in the second operand.
598
+ ///
599
+ /// The comparison returns 0x0 for false, 0xFFFFFFFFFFFFFFFF for true, in
600
+ /// the low-order bits of a vector of [4 x float].
601
+ /// If either value in a comparison is NaN, returns false.
602
+ ///
603
+ /// \headerfile <x86intrin.h>
604
+ ///
605
+ /// This intrinsic corresponds to the <c> VCMPLESS / CMPLESS </c> instructions.
606
+ ///
607
+ /// \param __a
608
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
609
+ /// 32 bits of this operand are used in the comparison.
610
+ /// \param __b
611
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
612
+ /// 32 bits of this operand are used in the comparison.
613
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
614
+ /// in the low-order bits.
615
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
616
+ _mm_cmple_ss(__m128 __a, __m128 __b)
617
+ {
618
+ return (__m128)__builtin_ia32_cmpless((__v4sf)__a, (__v4sf)__b);
619
+ }
620
+
621
+ /// Compares each of the corresponding 32-bit float values of the
622
+ /// 128-bit vectors of [4 x float] to determine if the values in the first
623
+ /// operand are less than or equal to those in the second operand.
624
+ ///
625
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true.
626
+ /// If either value in a comparison is NaN, returns false.
627
+ ///
628
+ /// \headerfile <x86intrin.h>
629
+ ///
630
+ /// This intrinsic corresponds to the <c> VCMPLEPS / CMPLEPS </c> instructions.
631
+ ///
632
+ /// \param __a
633
+ /// A 128-bit vector of [4 x float].
634
+ /// \param __b
635
+ /// A 128-bit vector of [4 x float].
636
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
637
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
638
+ _mm_cmple_ps(__m128 __a, __m128 __b)
639
+ {
640
+ return (__m128)__builtin_ia32_cmpleps((__v4sf)__a, (__v4sf)__b);
641
+ }
642
+
643
+ /// Compares two 32-bit float values in the low-order bits of both
644
+ /// operands to determine if the value in the first operand is greater than
645
+ /// the corresponding value in the second operand.
646
+ ///
647
+ /// The comparison returns 0x0 for false, 0xFFFFFFFF for true, in the
648
+ /// low-order bits of a vector of [4 x float].
649
+ /// If either value in a comparison is NaN, returns false.
650
+ ///
651
+ /// \headerfile <x86intrin.h>
652
+ ///
653
+ /// This intrinsic corresponds to the <c> VCMPLTSS / CMPLTSS </c> instructions.
654
+ ///
655
+ /// \param __a
656
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
657
+ /// 32 bits of this operand are used in the comparison.
658
+ /// \param __b
659
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
660
+ /// 32 bits of this operand are used in the comparison.
661
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
662
+ /// in the low-order bits.
663
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
664
+ _mm_cmpgt_ss(__m128 __a, __m128 __b)
665
+ {
666
+ return (__m128)__builtin_shufflevector((__v4sf)__a,
667
+ (__v4sf)__builtin_ia32_cmpltss((__v4sf)__b, (__v4sf)__a),
668
+ 4, 1, 2, 3);
669
+ }
670
+
671
+ /// Compares each of the corresponding 32-bit float values of the
672
+ /// 128-bit vectors of [4 x float] to determine if the values in the first
673
+ /// operand are greater than those in the second operand.
674
+ ///
675
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true.
676
+ /// If either value in a comparison is NaN, returns false.
677
+ ///
678
+ /// \headerfile <x86intrin.h>
679
+ ///
680
+ /// This intrinsic corresponds to the <c> VCMPLTPS / CMPLTPS </c> instructions.
681
+ ///
682
+ /// \param __a
683
+ /// A 128-bit vector of [4 x float].
684
+ /// \param __b
685
+ /// A 128-bit vector of [4 x float].
686
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
687
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
688
+ _mm_cmpgt_ps(__m128 __a, __m128 __b)
689
+ {
690
+ return (__m128)__builtin_ia32_cmpltps((__v4sf)__b, (__v4sf)__a);
691
+ }
692
+
693
+ /// Compares two 32-bit float values in the low-order bits of both
694
+ /// operands to determine if the value in the first operand is greater than
695
+ /// or equal to the corresponding value in the second operand.
696
+ ///
697
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true, in the
698
+ /// low-order bits of a vector of [4 x float].
699
+ /// If either value in a comparison is NaN, returns false.
700
+ ///
701
+ /// \headerfile <x86intrin.h>
702
+ ///
703
+ /// This intrinsic corresponds to the <c> VCMPLESS / CMPLESS </c> instructions.
704
+ ///
705
+ /// \param __a
706
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
707
+ /// 32 bits of this operand are used in the comparison.
708
+ /// \param __b
709
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
710
+ /// 32 bits of this operand are used in the comparison.
711
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
712
+ /// in the low-order bits.
713
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
714
+ _mm_cmpge_ss(__m128 __a, __m128 __b)
715
+ {
716
+ return (__m128)__builtin_shufflevector((__v4sf)__a,
717
+ (__v4sf)__builtin_ia32_cmpless((__v4sf)__b, (__v4sf)__a),
718
+ 4, 1, 2, 3);
719
+ }
720
+
721
+ /// Compares each of the corresponding 32-bit float values of the
722
+ /// 128-bit vectors of [4 x float] to determine if the values in the first
723
+ /// operand are greater than or equal to those in the second operand.
724
+ ///
725
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFFFFFFFFFF for true.
726
+ /// If either value in a comparison is NaN, returns false.
727
+ ///
728
+ /// \headerfile <x86intrin.h>
729
+ ///
730
+ /// This intrinsic corresponds to the <c> VCMPLEPS / CMPLEPS </c> instructions.
731
+ ///
732
+ /// \param __a
733
+ /// A 128-bit vector of [4 x float].
734
+ /// \param __b
735
+ /// A 128-bit vector of [4 x float].
736
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
737
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
738
+ _mm_cmpge_ps(__m128 __a, __m128 __b)
739
+ {
740
+ return (__m128)__builtin_ia32_cmpleps((__v4sf)__b, (__v4sf)__a);
741
+ }
742
+
743
+ /// Compares two 32-bit float values in the low-order bits of both operands
744
+ /// for inequality.
745
+ ///
746
+ /// The comparison returns 0x0 for false, 0xFFFFFFFF for true, in the
747
+ /// low-order bits of a vector of [4 x float].
748
+ /// If either value in a comparison is NaN, returns true.
749
+ ///
750
+ /// \headerfile <x86intrin.h>
751
+ ///
752
+ /// This intrinsic corresponds to the <c> VCMPNEQSS / CMPNEQSS </c>
753
+ /// instructions.
754
+ ///
755
+ /// \param __a
756
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
757
+ /// 32 bits of this operand are used in the comparison.
758
+ /// \param __b
759
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
760
+ /// 32 bits of this operand are used in the comparison.
761
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
762
+ /// in the low-order bits.
763
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
764
+ _mm_cmpneq_ss(__m128 __a, __m128 __b)
765
+ {
766
+ return (__m128)__builtin_ia32_cmpneqss((__v4sf)__a, (__v4sf)__b);
767
+ }
768
+
769
+ /// Compares each of the corresponding 32-bit float values of the
770
+ /// 128-bit vectors of [4 x float] for inequality.
771
+ ///
772
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true.
773
+ /// If either value in a comparison is NaN, returns true.
774
+ ///
775
+ /// \headerfile <x86intrin.h>
776
+ ///
777
+ /// This intrinsic corresponds to the <c> VCMPNEQPS / CMPNEQPS </c>
778
+ /// instructions.
779
+ ///
780
+ /// \param __a
781
+ /// A 128-bit vector of [4 x float].
782
+ /// \param __b
783
+ /// A 128-bit vector of [4 x float].
784
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
785
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
786
+ _mm_cmpneq_ps(__m128 __a, __m128 __b)
787
+ {
788
+ return (__m128)__builtin_ia32_cmpneqps((__v4sf)__a, (__v4sf)__b);
789
+ }
790
+
791
+ /// Compares two 32-bit float values in the low-order bits of both
792
+ /// operands to determine if the value in the first operand is not less than
793
+ /// the corresponding value in the second operand.
794
+ ///
795
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true, in the
796
+ /// low-order bits of a vector of [4 x float].
797
+ /// If either value in a comparison is NaN, returns true.
798
+ ///
799
+ /// \headerfile <x86intrin.h>
800
+ ///
801
+ /// This intrinsic corresponds to the <c> VCMPNLTSS / CMPNLTSS </c>
802
+ /// instructions.
803
+ ///
804
+ /// \param __a
805
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
806
+ /// 32 bits of this operand are used in the comparison.
807
+ /// \param __b
808
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
809
+ /// 32 bits of this operand are used in the comparison.
810
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
811
+ /// in the low-order bits.
812
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
813
+ _mm_cmpnlt_ss(__m128 __a, __m128 __b)
814
+ {
815
+ return (__m128)__builtin_ia32_cmpnltss((__v4sf)__a, (__v4sf)__b);
816
+ }
817
+
818
+ /// Compares each of the corresponding 32-bit float values of the
819
+ /// 128-bit vectors of [4 x float] to determine if the values in the first
820
+ /// operand are not less than those in the second operand.
821
+ ///
822
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true.
823
+ /// If either value in a comparison is NaN, returns true.
824
+ ///
825
+ /// \headerfile <x86intrin.h>
826
+ ///
827
+ /// This intrinsic corresponds to the <c> VCMPNLTPS / CMPNLTPS </c>
828
+ /// instructions.
829
+ ///
830
+ /// \param __a
831
+ /// A 128-bit vector of [4 x float].
832
+ /// \param __b
833
+ /// A 128-bit vector of [4 x float].
834
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
835
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
836
+ _mm_cmpnlt_ps(__m128 __a, __m128 __b)
837
+ {
838
+ return (__m128)__builtin_ia32_cmpnltps((__v4sf)__a, (__v4sf)__b);
839
+ }
840
+
841
+ /// Compares two 32-bit float values in the low-order bits of both
842
+ /// operands to determine if the value in the first operand is not less than
843
+ /// or equal to the corresponding value in the second operand.
844
+ ///
845
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true, in the
846
+ /// low-order bits of a vector of [4 x float].
847
+ /// If either value in a comparison is NaN, returns true.
848
+ ///
849
+ /// \headerfile <x86intrin.h>
850
+ ///
851
+ /// This intrinsic corresponds to the <c> VCMPNLESS / CMPNLESS </c>
852
+ /// instructions.
853
+ ///
854
+ /// \param __a
855
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
856
+ /// 32 bits of this operand are used in the comparison.
857
+ /// \param __b
858
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
859
+ /// 32 bits of this operand are used in the comparison.
860
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
861
+ /// in the low-order bits.
862
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
863
+ _mm_cmpnle_ss(__m128 __a, __m128 __b)
864
+ {
865
+ return (__m128)__builtin_ia32_cmpnless((__v4sf)__a, (__v4sf)__b);
866
+ }
867
+
868
+ /// Compares each of the corresponding 32-bit float values of the
869
+ /// 128-bit vectors of [4 x float] to determine if the values in the first
870
+ /// operand are not less than or equal to those in the second operand.
871
+ ///
872
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true.
873
+ /// If either value in a comparison is NaN, returns true.
874
+ ///
875
+ /// \headerfile <x86intrin.h>
876
+ ///
877
+ /// This intrinsic corresponds to the <c> VCMPNLEPS / CMPNLEPS </c>
878
+ /// instructions.
879
+ ///
880
+ /// \param __a
881
+ /// A 128-bit vector of [4 x float].
882
+ /// \param __b
883
+ /// A 128-bit vector of [4 x float].
884
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
885
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
886
+ _mm_cmpnle_ps(__m128 __a, __m128 __b)
887
+ {
888
+ return (__m128)__builtin_ia32_cmpnleps((__v4sf)__a, (__v4sf)__b);
889
+ }
890
+
891
+ /// Compares two 32-bit float values in the low-order bits of both
892
+ /// operands to determine if the value in the first operand is not greater
893
+ /// than the corresponding value in the second operand.
894
+ ///
895
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true, in the
896
+ /// low-order bits of a vector of [4 x float].
897
+ /// If either value in a comparison is NaN, returns true.
898
+ ///
899
+ /// \headerfile <x86intrin.h>
900
+ ///
901
+ /// This intrinsic corresponds to the <c> VCMPNLTSS / CMPNLTSS </c>
902
+ /// instructions.
903
+ ///
904
+ /// \param __a
905
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
906
+ /// 32 bits of this operand are used in the comparison.
907
+ /// \param __b
908
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
909
+ /// 32 bits of this operand are used in the comparison.
910
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
911
+ /// in the low-order bits.
912
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
913
+ _mm_cmpngt_ss(__m128 __a, __m128 __b)
914
+ {
915
+ return (__m128)__builtin_shufflevector((__v4sf)__a,
916
+ (__v4sf)__builtin_ia32_cmpnltss((__v4sf)__b, (__v4sf)__a),
917
+ 4, 1, 2, 3);
918
+ }
919
+
920
+ /// Compares each of the corresponding 32-bit float values of the
921
+ /// 128-bit vectors of [4 x float] to determine if the values in the first
922
+ /// operand are not greater than those in the second operand.
923
+ ///
924
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true.
925
+ /// If either value in a comparison is NaN, returns true.
926
+ ///
927
+ /// \headerfile <x86intrin.h>
928
+ ///
929
+ /// This intrinsic corresponds to the <c> VCMPNLTPS / CMPNLTPS </c>
930
+ /// instructions.
931
+ ///
932
+ /// \param __a
933
+ /// A 128-bit vector of [4 x float].
934
+ /// \param __b
935
+ /// A 128-bit vector of [4 x float].
936
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
937
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
938
+ _mm_cmpngt_ps(__m128 __a, __m128 __b)
939
+ {
940
+ return (__m128)__builtin_ia32_cmpnltps((__v4sf)__b, (__v4sf)__a);
941
+ }
942
+
943
+ /// Compares two 32-bit float values in the low-order bits of both
944
+ /// operands to determine if the value in the first operand is not greater
945
+ /// than or equal to the corresponding value in the second operand.
946
+ ///
947
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true, in the
948
+ /// low-order bits of a vector of [4 x float].
949
+ /// If either value in a comparison is NaN, returns true.
950
+ ///
951
+ /// \headerfile <x86intrin.h>
952
+ ///
953
+ /// This intrinsic corresponds to the <c> VCMPNLESS / CMPNLESS </c>
954
+ /// instructions.
955
+ ///
956
+ /// \param __a
957
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
958
+ /// 32 bits of this operand are used in the comparison.
959
+ /// \param __b
960
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
961
+ /// 32 bits of this operand are used in the comparison.
962
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
963
+ /// in the low-order bits.
964
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
965
+ _mm_cmpnge_ss(__m128 __a, __m128 __b)
966
+ {
967
+ return (__m128)__builtin_shufflevector((__v4sf)__a,
968
+ (__v4sf)__builtin_ia32_cmpnless((__v4sf)__b, (__v4sf)__a),
969
+ 4, 1, 2, 3);
970
+ }
971
+
972
+ /// Compares each of the corresponding 32-bit float values of the
973
+ /// 128-bit vectors of [4 x float] to determine if the values in the first
974
+ /// operand are not greater than or equal to those in the second operand.
975
+ ///
976
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true.
977
+ /// If either value in a comparison is NaN, returns true.
978
+ ///
979
+ /// \headerfile <x86intrin.h>
980
+ ///
981
+ /// This intrinsic corresponds to the <c> VCMPNLEPS / CMPNLEPS </c>
982
+ /// instructions.
983
+ ///
984
+ /// \param __a
985
+ /// A 128-bit vector of [4 x float].
986
+ /// \param __b
987
+ /// A 128-bit vector of [4 x float].
988
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
989
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
990
+ _mm_cmpnge_ps(__m128 __a, __m128 __b)
991
+ {
992
+ return (__m128)__builtin_ia32_cmpnleps((__v4sf)__b, (__v4sf)__a);
993
+ }
994
+
995
+ /// Compares two 32-bit float values in the low-order bits of both
996
+ /// operands to determine if the value in the first operand is ordered with
997
+ /// respect to the corresponding value in the second operand.
998
+ ///
999
+ /// A pair of floating-point values are ordered with respect to each
1000
+ /// other if neither value is a NaN. Each comparison returns 0x0 for false,
1001
+ /// 0xFFFFFFFF for true.
1002
+ ///
1003
+ /// \headerfile <x86intrin.h>
1004
+ ///
1005
+ /// This intrinsic corresponds to the <c> VCMPORDSS / CMPORDSS </c>
1006
+ /// instructions.
1007
+ ///
1008
+ /// \param __a
1009
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
1010
+ /// 32 bits of this operand are used in the comparison.
1011
+ /// \param __b
1012
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
1013
+ /// 32 bits of this operand are used in the comparison.
1014
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
1015
+ /// in the low-order bits.
1016
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1017
+ _mm_cmpord_ss(__m128 __a, __m128 __b)
1018
+ {
1019
+ return (__m128)__builtin_ia32_cmpordss((__v4sf)__a, (__v4sf)__b);
1020
+ }
1021
+
1022
+ /// Compares each of the corresponding 32-bit float values of the
1023
+ /// 128-bit vectors of [4 x float] to determine if the values in the first
1024
+ /// operand are ordered with respect to those in the second operand.
1025
+ ///
1026
+ /// A pair of floating-point values are ordered with respect to each
1027
+ /// other if neither value is a NaN. Each comparison returns 0x0 for false,
1028
+ /// 0xFFFFFFFF for true.
1029
+ ///
1030
+ /// \headerfile <x86intrin.h>
1031
+ ///
1032
+ /// This intrinsic corresponds to the <c> VCMPORDPS / CMPORDPS </c>
1033
+ /// instructions.
1034
+ ///
1035
+ /// \param __a
1036
+ /// A 128-bit vector of [4 x float].
1037
+ /// \param __b
1038
+ /// A 128-bit vector of [4 x float].
1039
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
1040
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1041
+ _mm_cmpord_ps(__m128 __a, __m128 __b)
1042
+ {
1043
+ return (__m128)__builtin_ia32_cmpordps((__v4sf)__a, (__v4sf)__b);
1044
+ }
1045
+
1046
+ /// Compares two 32-bit float values in the low-order bits of both
1047
+ /// operands to determine if the value in the first operand is unordered
1048
+ /// with respect to the corresponding value in the second operand.
1049
+ ///
1050
+ /// A pair of double-precision values are unordered with respect to each
1051
+ /// other if one or both values are NaN. Each comparison returns 0x0 for
1052
+ /// false, 0xFFFFFFFF for true.
1053
+ ///
1054
+ /// \headerfile <x86intrin.h>
1055
+ ///
1056
+ /// This intrinsic corresponds to the <c> VCMPUNORDSS / CMPUNORDSS </c>
1057
+ /// instructions.
1058
+ ///
1059
+ /// \param __a
1060
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
1061
+ /// 32 bits of this operand are used in the comparison.
1062
+ /// \param __b
1063
+ /// A 128-bit vector of [4 x float] containing one of the operands. The lower
1064
+ /// 32 bits of this operand are used in the comparison.
1065
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results
1066
+ /// in the low-order bits.
1067
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1068
+ _mm_cmpunord_ss(__m128 __a, __m128 __b)
1069
+ {
1070
+ return (__m128)__builtin_ia32_cmpunordss((__v4sf)__a, (__v4sf)__b);
1071
+ }
1072
+
1073
+ /// Compares each of the corresponding 32-bit float values of the
1074
+ /// 128-bit vectors of [4 x float] to determine if the values in the first
1075
+ /// operand are unordered with respect to those in the second operand.
1076
+ ///
1077
+ /// A pair of double-precision values are unordered with respect to each
1078
+ /// other if one or both values are NaN. Each comparison returns 0x0 for
1079
+ /// false, 0xFFFFFFFFFFFFFFFF for true.
1080
+ ///
1081
+ /// \headerfile <x86intrin.h>
1082
+ ///
1083
+ /// This intrinsic corresponds to the <c> VCMPUNORDPS / CMPUNORDPS </c>
1084
+ /// instructions.
1085
+ ///
1086
+ /// \param __a
1087
+ /// A 128-bit vector of [4 x float].
1088
+ /// \param __b
1089
+ /// A 128-bit vector of [4 x float].
1090
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
1091
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1092
+ _mm_cmpunord_ps(__m128 __a, __m128 __b)
1093
+ {
1094
+ return (__m128)__builtin_ia32_cmpunordps((__v4sf)__a, (__v4sf)__b);
1095
+ }
1096
+
1097
+ /// Compares two 32-bit float values in the low-order bits of both
1098
+ /// operands for equality.
1099
+ ///
1100
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1101
+ /// comparison is NaN, returns 0.
1102
+ ///
1103
+ /// \headerfile <x86intrin.h>
1104
+ ///
1105
+ /// This intrinsic corresponds to the <c> VCOMISS / COMISS </c>
1106
+ /// instructions.
1107
+ ///
1108
+ /// \param __a
1109
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1110
+ /// used in the comparison.
1111
+ /// \param __b
1112
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1113
+ /// used in the comparison.
1114
+ /// \returns An integer containing the comparison results.
1115
+ static __inline__ int __DEFAULT_FN_ATTRS
1116
+ _mm_comieq_ss(__m128 __a, __m128 __b)
1117
+ {
1118
+ return __builtin_ia32_comieq((__v4sf)__a, (__v4sf)__b);
1119
+ }
1120
+
1121
+ /// Compares two 32-bit float values in the low-order bits of both
1122
+ /// operands to determine if the first operand is less than the second
1123
+ /// operand.
1124
+ ///
1125
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1126
+ /// comparison is NaN, returns 0.
1127
+ ///
1128
+ /// \headerfile <x86intrin.h>
1129
+ ///
1130
+ /// This intrinsic corresponds to the <c> VCOMISS / COMISS </c>
1131
+ /// instructions.
1132
+ ///
1133
+ /// \param __a
1134
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1135
+ /// used in the comparison.
1136
+ /// \param __b
1137
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1138
+ /// used in the comparison.
1139
+ /// \returns An integer containing the comparison results.
1140
+ static __inline__ int __DEFAULT_FN_ATTRS
1141
+ _mm_comilt_ss(__m128 __a, __m128 __b)
1142
+ {
1143
+ return __builtin_ia32_comilt((__v4sf)__a, (__v4sf)__b);
1144
+ }
1145
+
1146
+ /// Compares two 32-bit float values in the low-order bits of both
1147
+ /// operands to determine if the first operand is less than or equal to the
1148
+ /// second operand.
1149
+ ///
1150
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1151
+ /// comparison is NaN, returns 0.
1152
+ ///
1153
+ /// \headerfile <x86intrin.h>
1154
+ ///
1155
+ /// This intrinsic corresponds to the <c> VCOMISS / COMISS </c> instructions.
1156
+ ///
1157
+ /// \param __a
1158
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1159
+ /// used in the comparison.
1160
+ /// \param __b
1161
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1162
+ /// used in the comparison.
1163
+ /// \returns An integer containing the comparison results.
1164
+ static __inline__ int __DEFAULT_FN_ATTRS
1165
+ _mm_comile_ss(__m128 __a, __m128 __b)
1166
+ {
1167
+ return __builtin_ia32_comile((__v4sf)__a, (__v4sf)__b);
1168
+ }
1169
+
1170
+ /// Compares two 32-bit float values in the low-order bits of both
1171
+ /// operands to determine if the first operand is greater than the second
1172
+ /// operand.
1173
+ ///
1174
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1175
+ /// comparison is NaN, returns 0.
1176
+ ///
1177
+ /// \headerfile <x86intrin.h>
1178
+ ///
1179
+ /// This intrinsic corresponds to the <c> VCOMISS / COMISS </c> instructions.
1180
+ ///
1181
+ /// \param __a
1182
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1183
+ /// used in the comparison.
1184
+ /// \param __b
1185
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1186
+ /// used in the comparison.
1187
+ /// \returns An integer containing the comparison results.
1188
+ static __inline__ int __DEFAULT_FN_ATTRS
1189
+ _mm_comigt_ss(__m128 __a, __m128 __b)
1190
+ {
1191
+ return __builtin_ia32_comigt((__v4sf)__a, (__v4sf)__b);
1192
+ }
1193
+
1194
+ /// Compares two 32-bit float values in the low-order bits of both
1195
+ /// operands to determine if the first operand is greater than or equal to
1196
+ /// the second operand.
1197
+ ///
1198
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1199
+ /// comparison is NaN, returns 0.
1200
+ ///
1201
+ /// \headerfile <x86intrin.h>
1202
+ ///
1203
+ /// This intrinsic corresponds to the <c> VCOMISS / COMISS </c> instructions.
1204
+ ///
1205
+ /// \param __a
1206
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1207
+ /// used in the comparison.
1208
+ /// \param __b
1209
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1210
+ /// used in the comparison.
1211
+ /// \returns An integer containing the comparison results.
1212
+ static __inline__ int __DEFAULT_FN_ATTRS
1213
+ _mm_comige_ss(__m128 __a, __m128 __b)
1214
+ {
1215
+ return __builtin_ia32_comige((__v4sf)__a, (__v4sf)__b);
1216
+ }
1217
+
1218
+ /// Compares two 32-bit float values in the low-order bits of both
1219
+ /// operands to determine if the first operand is not equal to the second
1220
+ /// operand.
1221
+ ///
1222
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1223
+ /// comparison is NaN, returns 1.
1224
+ ///
1225
+ /// \headerfile <x86intrin.h>
1226
+ ///
1227
+ /// This intrinsic corresponds to the <c> VCOMISS / COMISS </c> instructions.
1228
+ ///
1229
+ /// \param __a
1230
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1231
+ /// used in the comparison.
1232
+ /// \param __b
1233
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1234
+ /// used in the comparison.
1235
+ /// \returns An integer containing the comparison results.
1236
+ static __inline__ int __DEFAULT_FN_ATTRS
1237
+ _mm_comineq_ss(__m128 __a, __m128 __b)
1238
+ {
1239
+ return __builtin_ia32_comineq((__v4sf)__a, (__v4sf)__b);
1240
+ }
1241
+
1242
+ /// Performs an unordered comparison of two 32-bit float values using
1243
+ /// the low-order bits of both operands to determine equality.
1244
+ ///
1245
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1246
+ /// comparison is NaN, returns 0.
1247
+ ///
1248
+ /// \headerfile <x86intrin.h>
1249
+ ///
1250
+ /// This intrinsic corresponds to the <c> VUCOMISS / UCOMISS </c> instructions.
1251
+ ///
1252
+ /// \param __a
1253
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1254
+ /// used in the comparison.
1255
+ /// \param __b
1256
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1257
+ /// used in the comparison.
1258
+ /// \returns An integer containing the comparison results.
1259
+ static __inline__ int __DEFAULT_FN_ATTRS
1260
+ _mm_ucomieq_ss(__m128 __a, __m128 __b)
1261
+ {
1262
+ return __builtin_ia32_ucomieq((__v4sf)__a, (__v4sf)__b);
1263
+ }
1264
+
1265
+ /// Performs an unordered comparison of two 32-bit float values using
1266
+ /// the low-order bits of both operands to determine if the first operand is
1267
+ /// less than the second operand.
1268
+ ///
1269
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1270
+ /// comparison is NaN, returns 0.
1271
+ ///
1272
+ /// \headerfile <x86intrin.h>
1273
+ ///
1274
+ /// This intrinsic corresponds to the <c> VUCOMISS / UCOMISS </c> instructions.
1275
+ ///
1276
+ /// \param __a
1277
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1278
+ /// used in the comparison.
1279
+ /// \param __b
1280
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1281
+ /// used in the comparison.
1282
+ /// \returns An integer containing the comparison results.
1283
+ static __inline__ int __DEFAULT_FN_ATTRS
1284
+ _mm_ucomilt_ss(__m128 __a, __m128 __b)
1285
+ {
1286
+ return __builtin_ia32_ucomilt((__v4sf)__a, (__v4sf)__b);
1287
+ }
1288
+
1289
+ /// Performs an unordered comparison of two 32-bit float values using
1290
+ /// the low-order bits of both operands to determine if the first operand is
1291
+ /// less than or equal to the second operand.
1292
+ ///
1293
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1294
+ /// comparison is NaN, returns 0.
1295
+ ///
1296
+ /// \headerfile <x86intrin.h>
1297
+ ///
1298
+ /// This intrinsic corresponds to the <c> VUCOMISS / UCOMISS </c> instructions.
1299
+ ///
1300
+ /// \param __a
1301
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1302
+ /// used in the comparison.
1303
+ /// \param __b
1304
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1305
+ /// used in the comparison.
1306
+ /// \returns An integer containing the comparison results.
1307
+ static __inline__ int __DEFAULT_FN_ATTRS
1308
+ _mm_ucomile_ss(__m128 __a, __m128 __b)
1309
+ {
1310
+ return __builtin_ia32_ucomile((__v4sf)__a, (__v4sf)__b);
1311
+ }
1312
+
1313
+ /// Performs an unordered comparison of two 32-bit float values using
1314
+ /// the low-order bits of both operands to determine if the first operand is
1315
+ /// greater than the second operand.
1316
+ ///
1317
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1318
+ /// comparison is NaN, returns 0.
1319
+ ///
1320
+ /// \headerfile <x86intrin.h>
1321
+ ///
1322
+ /// This intrinsic corresponds to the <c> VUCOMISS / UCOMISS </c> instructions.
1323
+ ///
1324
+ /// \param __a
1325
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1326
+ /// used in the comparison.
1327
+ /// \param __b
1328
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1329
+ /// used in the comparison.
1330
+ /// \returns An integer containing the comparison results.
1331
+ static __inline__ int __DEFAULT_FN_ATTRS
1332
+ _mm_ucomigt_ss(__m128 __a, __m128 __b)
1333
+ {
1334
+ return __builtin_ia32_ucomigt((__v4sf)__a, (__v4sf)__b);
1335
+ }
1336
+
1337
+ /// Performs an unordered comparison of two 32-bit float values using
1338
+ /// the low-order bits of both operands to determine if the first operand is
1339
+ /// greater than or equal to the second operand.
1340
+ ///
1341
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1342
+ /// comparison is NaN, returns 0.
1343
+ ///
1344
+ /// \headerfile <x86intrin.h>
1345
+ ///
1346
+ /// This intrinsic corresponds to the <c> VUCOMISS / UCOMISS </c> instructions.
1347
+ ///
1348
+ /// \param __a
1349
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1350
+ /// used in the comparison.
1351
+ /// \param __b
1352
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1353
+ /// used in the comparison.
1354
+ /// \returns An integer containing the comparison results.
1355
+ static __inline__ int __DEFAULT_FN_ATTRS
1356
+ _mm_ucomige_ss(__m128 __a, __m128 __b)
1357
+ {
1358
+ return __builtin_ia32_ucomige((__v4sf)__a, (__v4sf)__b);
1359
+ }
1360
+
1361
+ /// Performs an unordered comparison of two 32-bit float values using
1362
+ /// the low-order bits of both operands to determine inequality.
1363
+ ///
1364
+ /// The comparison returns 0 for false, 1 for true. If either value in a
1365
+ /// comparison is NaN, returns 0.
1366
+ ///
1367
+ /// \headerfile <x86intrin.h>
1368
+ ///
1369
+ /// This intrinsic corresponds to the <c> VUCOMISS / UCOMISS </c> instructions.
1370
+ ///
1371
+ /// \param __a
1372
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1373
+ /// used in the comparison.
1374
+ /// \param __b
1375
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1376
+ /// used in the comparison.
1377
+ /// \returns An integer containing the comparison results.
1378
+ static __inline__ int __DEFAULT_FN_ATTRS
1379
+ _mm_ucomineq_ss(__m128 __a, __m128 __b)
1380
+ {
1381
+ return __builtin_ia32_ucomineq((__v4sf)__a, (__v4sf)__b);
1382
+ }
1383
+
1384
+ /// Converts a float value contained in the lower 32 bits of a vector of
1385
+ /// [4 x float] into a 32-bit integer.
1386
+ ///
1387
+ /// If the converted value does not fit in a 32-bit integer, raises a
1388
+ /// floating-point invalid exception. If the exception is masked, returns
1389
+ /// the most negative integer.
1390
+ ///
1391
+ /// \headerfile <x86intrin.h>
1392
+ ///
1393
+ /// This intrinsic corresponds to the <c> VCVTSS2SI / CVTSS2SI </c>
1394
+ /// instructions.
1395
+ ///
1396
+ /// \param __a
1397
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1398
+ /// used in the conversion.
1399
+ /// \returns A 32-bit integer containing the converted value.
1400
+ static __inline__ int __DEFAULT_FN_ATTRS
1401
+ _mm_cvtss_si32(__m128 __a)
1402
+ {
1403
+ return __builtin_ia32_cvtss2si((__v4sf)__a);
1404
+ }
1405
+
1406
+ /// Converts a float value contained in the lower 32 bits of a vector of
1407
+ /// [4 x float] into a 32-bit integer.
1408
+ ///
1409
+ /// If the converted value does not fit in a 32-bit integer, raises a
1410
+ /// floating-point invalid exception. If the exception is masked, returns
1411
+ /// the most negative integer.
1412
+ ///
1413
+ /// \headerfile <x86intrin.h>
1414
+ ///
1415
+ /// This intrinsic corresponds to the <c> VCVTSS2SI / CVTSS2SI </c>
1416
+ /// instructions.
1417
+ ///
1418
+ /// \param __a
1419
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1420
+ /// used in the conversion.
1421
+ /// \returns A 32-bit integer containing the converted value.
1422
+ static __inline__ int __DEFAULT_FN_ATTRS
1423
+ _mm_cvt_ss2si(__m128 __a)
1424
+ {
1425
+ return _mm_cvtss_si32(__a);
1426
+ }
1427
+
1428
+ #ifdef __x86_64__
1429
+
1430
+ /// Converts a float value contained in the lower 32 bits of a vector of
1431
+ /// [4 x float] into a 64-bit integer.
1432
+ ///
1433
+ /// If the converted value does not fit in a 32-bit integer, raises a
1434
+ /// floating-point invalid exception. If the exception is masked, returns
1435
+ /// the most negative integer.
1436
+ ///
1437
+ /// \headerfile <x86intrin.h>
1438
+ ///
1439
+ /// This intrinsic corresponds to the <c> VCVTSS2SI / CVTSS2SI </c>
1440
+ /// instructions.
1441
+ ///
1442
+ /// \param __a
1443
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1444
+ /// used in the conversion.
1445
+ /// \returns A 64-bit integer containing the converted value.
1446
+ static __inline__ long long __DEFAULT_FN_ATTRS
1447
+ _mm_cvtss_si64(__m128 __a)
1448
+ {
1449
+ return __builtin_ia32_cvtss2si64((__v4sf)__a);
1450
+ }
1451
+
1452
+ #endif
1453
+
1454
+ /// Converts two low-order float values in a 128-bit vector of
1455
+ /// [4 x float] into a 64-bit vector of [2 x i32].
1456
+ ///
1457
+ /// If a converted value does not fit in a 32-bit integer, raises a
1458
+ /// floating-point invalid exception. If the exception is masked, returns
1459
+ /// the most negative integer.
1460
+ ///
1461
+ /// \headerfile <x86intrin.h>
1462
+ ///
1463
+ /// This intrinsic corresponds to the <c> CVTPS2PI </c> instruction.
1464
+ ///
1465
+ /// \param __a
1466
+ /// A 128-bit vector of [4 x float].
1467
+ /// \returns A 64-bit integer vector containing the converted values.
1468
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
1469
+ _mm_cvtps_pi32(__m128 __a)
1470
+ {
1471
+ return __trunc64(__builtin_ia32_cvtps2dq((__v4sf)__zeroupper64(__a)));
1472
+ }
1473
+
1474
+ /// Converts two low-order float values in a 128-bit vector of
1475
+ /// [4 x float] into a 64-bit vector of [2 x i32].
1476
+ ///
1477
+ /// If a converted value does not fit in a 32-bit integer, raises a
1478
+ /// floating-point invalid exception. If the exception is masked, returns
1479
+ /// the most negative integer.
1480
+ ///
1481
+ /// \headerfile <x86intrin.h>
1482
+ ///
1483
+ /// This intrinsic corresponds to the <c> CVTPS2PI </c> instruction.
1484
+ ///
1485
+ /// \param __a
1486
+ /// A 128-bit vector of [4 x float].
1487
+ /// \returns A 64-bit integer vector containing the converted values.
1488
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
1489
+ _mm_cvt_ps2pi(__m128 __a)
1490
+ {
1491
+ return _mm_cvtps_pi32(__a);
1492
+ }
1493
+
1494
+ /// Converts the lower (first) element of a vector of [4 x float] into a signed
1495
+ /// truncated (rounded toward zero) 32-bit integer.
1496
+ ///
1497
+ /// If the converted value does not fit in a 32-bit integer, raises a
1498
+ /// floating-point invalid exception. If the exception is masked, returns
1499
+ /// the most negative integer.
1500
+ ///
1501
+ /// \headerfile <x86intrin.h>
1502
+ ///
1503
+ /// This intrinsic corresponds to the <c> VCVTTSS2SI / CVTTSS2SI </c>
1504
+ /// instructions.
1505
+ ///
1506
+ /// \param __a
1507
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1508
+ /// used in the conversion.
1509
+ /// \returns A 32-bit integer containing the converted value.
1510
+ static __inline__ int __DEFAULT_FN_ATTRS
1511
+ _mm_cvttss_si32(__m128 __a)
1512
+ {
1513
+ return __builtin_ia32_cvttss2si((__v4sf)__a);
1514
+ }
1515
+
1516
+ /// Converts the lower (first) element of a vector of [4 x float] into a signed
1517
+ /// truncated (rounded toward zero) 32-bit integer.
1518
+ ///
1519
+ /// If the converted value does not fit in a 32-bit integer, raises a
1520
+ /// floating-point invalid exception. If the exception is masked, returns
1521
+ /// the most negative integer.
1522
+ ///
1523
+ /// \headerfile <x86intrin.h>
1524
+ ///
1525
+ /// This intrinsic corresponds to the <c> VCVTTSS2SI / CVTTSS2SI </c>
1526
+ /// instructions.
1527
+ ///
1528
+ /// \param __a
1529
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1530
+ /// used in the conversion.
1531
+ /// \returns A 32-bit integer containing the converted value.
1532
+ static __inline__ int __DEFAULT_FN_ATTRS
1533
+ _mm_cvtt_ss2si(__m128 __a)
1534
+ {
1535
+ return _mm_cvttss_si32(__a);
1536
+ }
1537
+
1538
+ #ifdef __x86_64__
1539
+ /// Converts the lower (first) element of a vector of [4 x float] into a signed
1540
+ /// truncated (rounded toward zero) 64-bit integer.
1541
+ ///
1542
+ /// If the converted value does not fit in a 64-bit integer, raises a
1543
+ /// floating-point invalid exception. If the exception is masked, returns
1544
+ /// the most negative integer.
1545
+ ///
1546
+ /// \headerfile <x86intrin.h>
1547
+ ///
1548
+ /// This intrinsic corresponds to the <c> VCVTTSS2SI / CVTTSS2SI </c>
1549
+ /// instructions.
1550
+ ///
1551
+ /// \param __a
1552
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1553
+ /// used in the conversion.
1554
+ /// \returns A 64-bit integer containing the converted value.
1555
+ static __inline__ long long __DEFAULT_FN_ATTRS
1556
+ _mm_cvttss_si64(__m128 __a)
1557
+ {
1558
+ return __builtin_ia32_cvttss2si64((__v4sf)__a);
1559
+ }
1560
+ #endif
1561
+
1562
+ /// Converts the lower (first) two elements of a 128-bit vector of [4 x float]
1563
+ /// into two signed truncated (rounded toward zero) 32-bit integers,
1564
+ /// returned in a 64-bit vector of [2 x i32].
1565
+ ///
1566
+ /// If a converted value does not fit in a 32-bit integer, raises a
1567
+ /// floating-point invalid exception. If the exception is masked, returns
1568
+ /// the most negative integer.
1569
+ ///
1570
+ /// \headerfile <x86intrin.h>
1571
+ ///
1572
+ /// This intrinsic corresponds to the <c> CVTTPS2PI / VTTPS2PI </c>
1573
+ /// instructions.
1574
+ ///
1575
+ /// \param __a
1576
+ /// A 128-bit vector of [4 x float].
1577
+ /// \returns A 64-bit integer vector containing the converted values.
1578
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
1579
+ _mm_cvttps_pi32(__m128 __a)
1580
+ {
1581
+ return __trunc64(__builtin_ia32_cvttps2dq((__v4sf)__zeroupper64(__a)));
1582
+ }
1583
+
1584
+ /// Converts the lower (first) two elements of a 128-bit vector of [4 x float]
1585
+ /// into two signed truncated (rounded toward zero) 64-bit integers,
1586
+ /// returned in a 64-bit vector of [2 x i32].
1587
+ ///
1588
+ /// If a converted value does not fit in a 32-bit integer, raises a
1589
+ /// floating-point invalid exception. If the exception is masked, returns
1590
+ /// the most negative integer.
1591
+ ///
1592
+ /// \headerfile <x86intrin.h>
1593
+ ///
1594
+ /// This intrinsic corresponds to the <c> CVTTPS2PI </c> instruction.
1595
+ ///
1596
+ /// \param __a
1597
+ /// A 128-bit vector of [4 x float].
1598
+ /// \returns A 64-bit integer vector containing the converted values.
1599
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
1600
+ _mm_cvtt_ps2pi(__m128 __a)
1601
+ {
1602
+ return _mm_cvttps_pi32(__a);
1603
+ }
1604
+
1605
+ /// Converts a 32-bit signed integer value into a floating point value
1606
+ /// and writes it to the lower 32 bits of the destination. The remaining
1607
+ /// higher order elements of the destination vector are copied from the
1608
+ /// corresponding elements in the first operand.
1609
+ ///
1610
+ /// \headerfile <x86intrin.h>
1611
+ ///
1612
+ /// This intrinsic corresponds to the <c> VCVTSI2SS / CVTSI2SS </c> instruction.
1613
+ ///
1614
+ /// \param __a
1615
+ /// A 128-bit vector of [4 x float].
1616
+ /// \param __b
1617
+ /// A 32-bit signed integer operand containing the value to be converted.
1618
+ /// \returns A 128-bit vector of [4 x float] whose lower 32 bits contain the
1619
+ /// converted value of the second operand. The upper 96 bits are copied from
1620
+ /// the upper 96 bits of the first operand.
1621
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR _mm_cvtsi32_ss(__m128 __a,
1622
+ int __b) {
1623
+ __a[0] = __b;
1624
+ return __a;
1625
+ }
1626
+
1627
+ /// Converts a 32-bit signed integer value into a floating point value
1628
+ /// and writes it to the lower 32 bits of the destination. The remaining
1629
+ /// higher order elements of the destination are copied from the
1630
+ /// corresponding elements in the first operand.
1631
+ ///
1632
+ /// \headerfile <x86intrin.h>
1633
+ ///
1634
+ /// This intrinsic corresponds to the <c> VCVTSI2SS / CVTSI2SS </c> instruction.
1635
+ ///
1636
+ /// \param __a
1637
+ /// A 128-bit vector of [4 x float].
1638
+ /// \param __b
1639
+ /// A 32-bit signed integer operand containing the value to be converted.
1640
+ /// \returns A 128-bit vector of [4 x float] whose lower 32 bits contain the
1641
+ /// converted value of the second operand. The upper 96 bits are copied from
1642
+ /// the upper 96 bits of the first operand.
1643
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR _mm_cvt_si2ss(__m128 __a,
1644
+ int __b) {
1645
+ return _mm_cvtsi32_ss(__a, __b);
1646
+ }
1647
+
1648
+ #ifdef __x86_64__
1649
+
1650
+ /// Converts a 64-bit signed integer value into a floating point value
1651
+ /// and writes it to the lower 32 bits of the destination. The remaining
1652
+ /// higher order elements of the destination are copied from the
1653
+ /// corresponding elements in the first operand.
1654
+ ///
1655
+ /// \headerfile <x86intrin.h>
1656
+ ///
1657
+ /// This intrinsic corresponds to the <c> VCVTSI2SS / CVTSI2SS </c> instruction.
1658
+ ///
1659
+ /// \param __a
1660
+ /// A 128-bit vector of [4 x float].
1661
+ /// \param __b
1662
+ /// A 64-bit signed integer operand containing the value to be converted.
1663
+ /// \returns A 128-bit vector of [4 x float] whose lower 32 bits contain the
1664
+ /// converted value of the second operand. The upper 96 bits are copied from
1665
+ /// the upper 96 bits of the first operand.
1666
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
1667
+ _mm_cvtsi64_ss(__m128 __a, long long __b) {
1668
+ __a[0] = __b;
1669
+ return __a;
1670
+ }
1671
+
1672
+ #endif
1673
+
1674
+ /// Converts two elements of a 64-bit vector of [2 x i32] into two
1675
+ /// floating point values and writes them to the lower 64-bits of the
1676
+ /// destination. The remaining higher order elements of the destination are
1677
+ /// copied from the corresponding elements in the first operand.
1678
+ ///
1679
+ /// \headerfile <x86intrin.h>
1680
+ ///
1681
+ /// This intrinsic corresponds to the <c> CVTPI2PS </c> instruction.
1682
+ ///
1683
+ /// \param __a
1684
+ /// A 128-bit vector of [4 x float].
1685
+ /// \param __b
1686
+ /// A 64-bit vector of [2 x i32]. The elements in this vector are converted
1687
+ /// and written to the corresponding low-order elements in the destination.
1688
+ /// \returns A 128-bit vector of [4 x float] whose lower 64 bits contain the
1689
+ /// converted value of the second operand. The upper 64 bits are copied from
1690
+ /// the upper 64 bits of the first operand.
1691
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_SSE2
1692
+ _mm_cvtpi32_ps(__m128 __a, __m64 __b)
1693
+ {
1694
+ return (__m128)__builtin_shufflevector(
1695
+ (__v4sf)__a,
1696
+ __builtin_convertvector((__v4si)__zext128(__b), __v4sf),
1697
+ 4, 5, 2, 3);
1698
+ }
1699
+
1700
+ /// Converts two elements of a 64-bit vector of [2 x i32] into two
1701
+ /// floating point values and writes them to the lower 64-bits of the
1702
+ /// destination. The remaining higher order elements of the destination are
1703
+ /// copied from the corresponding elements in the first operand.
1704
+ ///
1705
+ /// \headerfile <x86intrin.h>
1706
+ ///
1707
+ /// This intrinsic corresponds to the <c> CVTPI2PS </c> instruction.
1708
+ ///
1709
+ /// \param __a
1710
+ /// A 128-bit vector of [4 x float].
1711
+ /// \param __b
1712
+ /// A 64-bit vector of [2 x i32]. The elements in this vector are converted
1713
+ /// and written to the corresponding low-order elements in the destination.
1714
+ /// \returns A 128-bit vector of [4 x float] whose lower 64 bits contain the
1715
+ /// converted value from the second operand. The upper 64 bits are copied
1716
+ /// from the upper 64 bits of the first operand.
1717
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_SSE2
1718
+ _mm_cvt_pi2ps(__m128 __a, __m64 __b)
1719
+ {
1720
+ return _mm_cvtpi32_ps(__a, __b);
1721
+ }
1722
+
1723
+ /// Extracts a float value contained in the lower 32 bits of a vector of
1724
+ /// [4 x float].
1725
+ ///
1726
+ /// \headerfile <x86intrin.h>
1727
+ ///
1728
+ /// This intrinsic has no corresponding instruction.
1729
+ ///
1730
+ /// \param __a
1731
+ /// A 128-bit vector of [4 x float]. The lower 32 bits of this operand are
1732
+ /// used in the extraction.
1733
+ /// \returns A 32-bit float containing the extracted value.
1734
+ static __inline__ float __DEFAULT_FN_ATTRS_CONSTEXPR
1735
+ _mm_cvtss_f32(__m128 __a) {
1736
+ return __a[0];
1737
+ }
1738
+
1739
+ /// Loads two packed float values from the address \a __p into the
1740
+ /// high-order bits of a 128-bit vector of [4 x float]. The low-order bits
1741
+ /// are copied from the low-order bits of the first operand.
1742
+ ///
1743
+ /// \headerfile <x86intrin.h>
1744
+ ///
1745
+ /// This intrinsic corresponds to the <c> VMOVHPD / MOVHPD </c> instruction.
1746
+ ///
1747
+ /// \param __a
1748
+ /// A 128-bit vector of [4 x float]. Bits [63:0] are written to bits [63:0]
1749
+ /// of the destination.
1750
+ /// \param __p
1751
+ /// A pointer to two packed float values. Bits [63:0] are written to bits
1752
+ /// [127:64] of the destination.
1753
+ /// \returns A 128-bit vector of [4 x float] containing the moved values.
1754
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1755
+ _mm_loadh_pi(__m128 __a, const __m64 *__p)
1756
+ {
1757
+ typedef float __mm_loadh_pi_v2f32 __attribute__((__vector_size__(8)));
1758
+ struct __mm_loadh_pi_struct {
1759
+ __mm_loadh_pi_v2f32 __u;
1760
+ } __attribute__((__packed__, __may_alias__));
1761
+ __mm_loadh_pi_v2f32 __b = ((const struct __mm_loadh_pi_struct*)__p)->__u;
1762
+ __m128 __bb = __builtin_shufflevector(__b, __b, 0, 1, 0, 1);
1763
+ return __builtin_shufflevector(__a, __bb, 0, 1, 4, 5);
1764
+ }
1765
+
1766
+ /// Loads two packed float values from the address \a __p into the
1767
+ /// low-order bits of a 128-bit vector of [4 x float]. The high-order bits
1768
+ /// are copied from the high-order bits of the first operand.
1769
+ ///
1770
+ /// \headerfile <x86intrin.h>
1771
+ ///
1772
+ /// This intrinsic corresponds to the <c> VMOVLPD / MOVLPD </c> instruction.
1773
+ ///
1774
+ /// \param __a
1775
+ /// A 128-bit vector of [4 x float]. Bits [127:64] are written to bits
1776
+ /// [127:64] of the destination.
1777
+ /// \param __p
1778
+ /// A pointer to two packed float values. Bits [63:0] are written to bits
1779
+ /// [63:0] of the destination.
1780
+ /// \returns A 128-bit vector of [4 x float] containing the moved values.
1781
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1782
+ _mm_loadl_pi(__m128 __a, const __m64 *__p)
1783
+ {
1784
+ typedef float __mm_loadl_pi_v2f32 __attribute__((__vector_size__(8)));
1785
+ struct __mm_loadl_pi_struct {
1786
+ __mm_loadl_pi_v2f32 __u;
1787
+ } __attribute__((__packed__, __may_alias__));
1788
+ __mm_loadl_pi_v2f32 __b = ((const struct __mm_loadl_pi_struct*)__p)->__u;
1789
+ __m128 __bb = __builtin_shufflevector(__b, __b, 0, 1, 0, 1);
1790
+ return __builtin_shufflevector(__a, __bb, 4, 5, 2, 3);
1791
+ }
1792
+
1793
+ /// Constructs a 128-bit floating-point vector of [4 x float]. The lower
1794
+ /// 32 bits of the vector are initialized with the single-precision
1795
+ /// floating-point value loaded from a specified memory location. The upper
1796
+ /// 96 bits are set to zero.
1797
+ ///
1798
+ /// \headerfile <x86intrin.h>
1799
+ ///
1800
+ /// This intrinsic corresponds to the <c> VMOVSS / MOVSS </c> instruction.
1801
+ ///
1802
+ /// \param __p
1803
+ /// A pointer to a 32-bit memory location containing a single-precision
1804
+ /// floating-point value.
1805
+ /// \returns An initialized 128-bit floating-point vector of [4 x float]. The
1806
+ /// lower 32 bits contain the value loaded from the memory location. The
1807
+ /// upper 96 bits are set to zero.
1808
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1809
+ _mm_load_ss(const float *__p)
1810
+ {
1811
+ struct __mm_load_ss_struct {
1812
+ float __u;
1813
+ } __attribute__((__packed__, __may_alias__));
1814
+ float __u = ((const struct __mm_load_ss_struct*)__p)->__u;
1815
+ return __extension__ (__m128){ __u, 0, 0, 0 };
1816
+ }
1817
+
1818
+ /// Loads a 32-bit float value and duplicates it to all four vector
1819
+ /// elements of a 128-bit vector of [4 x float].
1820
+ ///
1821
+ /// \headerfile <x86intrin.h>
1822
+ ///
1823
+ /// This intrinsic corresponds to the <c> VBROADCASTSS / MOVSS + shuffling </c>
1824
+ /// instruction.
1825
+ ///
1826
+ /// \param __p
1827
+ /// A pointer to a float value to be loaded and duplicated.
1828
+ /// \returns A 128-bit vector of [4 x float] containing the loaded and
1829
+ /// duplicated values.
1830
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1831
+ _mm_load1_ps(const float *__p)
1832
+ {
1833
+ struct __mm_load1_ps_struct {
1834
+ float __u;
1835
+ } __attribute__((__packed__, __may_alias__));
1836
+ float __u = ((const struct __mm_load1_ps_struct*)__p)->__u;
1837
+ return __extension__ (__m128){ __u, __u, __u, __u };
1838
+ }
1839
+
1840
+ #define _mm_load_ps1(p) _mm_load1_ps(p)
1841
+
1842
+ /// Loads a 128-bit floating-point vector of [4 x float] from an aligned
1843
+ /// memory location.
1844
+ ///
1845
+ /// \headerfile <x86intrin.h>
1846
+ ///
1847
+ /// This intrinsic corresponds to the <c> VMOVAPS / MOVAPS </c> instruction.
1848
+ ///
1849
+ /// \param __p
1850
+ /// A pointer to a 128-bit memory location. The address of the memory
1851
+ /// location has to be 128-bit aligned.
1852
+ /// \returns A 128-bit vector of [4 x float] containing the loaded values.
1853
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1854
+ _mm_load_ps(const float *__p)
1855
+ {
1856
+ return *(const __m128*)__p;
1857
+ }
1858
+
1859
+ /// Loads a 128-bit floating-point vector of [4 x float] from an
1860
+ /// unaligned memory location.
1861
+ ///
1862
+ /// \headerfile <x86intrin.h>
1863
+ ///
1864
+ /// This intrinsic corresponds to the <c> VMOVUPS / MOVUPS </c> instruction.
1865
+ ///
1866
+ /// \param __p
1867
+ /// A pointer to a 128-bit memory location. The address of the memory
1868
+ /// location does not have to be aligned.
1869
+ /// \returns A 128-bit vector of [4 x float] containing the loaded values.
1870
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1871
+ _mm_loadu_ps(const float *__p)
1872
+ {
1873
+ struct __loadu_ps {
1874
+ __m128_u __v;
1875
+ } __attribute__((__packed__, __may_alias__));
1876
+ return ((const struct __loadu_ps*)__p)->__v;
1877
+ }
1878
+
1879
+ /// Loads four packed float values, in reverse order, from an aligned
1880
+ /// memory location to 32-bit elements in a 128-bit vector of [4 x float].
1881
+ ///
1882
+ /// \headerfile <x86intrin.h>
1883
+ ///
1884
+ /// This intrinsic corresponds to the <c> VMOVAPS / MOVAPS + shuffling </c>
1885
+ /// instruction.
1886
+ ///
1887
+ /// \param __p
1888
+ /// A pointer to a 128-bit memory location. The address of the memory
1889
+ /// location has to be 128-bit aligned.
1890
+ /// \returns A 128-bit vector of [4 x float] containing the moved values, loaded
1891
+ /// in reverse order.
1892
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1893
+ _mm_loadr_ps(const float *__p)
1894
+ {
1895
+ __m128 __a = _mm_load_ps(__p);
1896
+ return __builtin_shufflevector((__v4sf)__a, (__v4sf)__a, 3, 2, 1, 0);
1897
+ }
1898
+
1899
+ /// Create a 128-bit vector of [4 x float] with undefined values.
1900
+ ///
1901
+ /// \headerfile <x86intrin.h>
1902
+ ///
1903
+ /// This intrinsic has no corresponding instruction.
1904
+ ///
1905
+ /// \returns A 128-bit vector of [4 x float] containing undefined values.
1906
+ static __inline__ __m128 __DEFAULT_FN_ATTRS
1907
+ _mm_undefined_ps(void)
1908
+ {
1909
+ return (__m128)__builtin_ia32_undef128();
1910
+ }
1911
+
1912
+ /// Constructs a 128-bit floating-point vector of [4 x float]. The lower
1913
+ /// 32 bits of the vector are initialized with the specified single-precision
1914
+ /// floating-point value. The upper 96 bits are set to zero.
1915
+ ///
1916
+ /// \headerfile <x86intrin.h>
1917
+ ///
1918
+ /// This intrinsic corresponds to the <c> VMOVSS / MOVSS </c> instruction.
1919
+ ///
1920
+ /// \param __w
1921
+ /// A single-precision floating-point value used to initialize the lower 32
1922
+ /// bits of the result.
1923
+ /// \returns An initialized 128-bit floating-point vector of [4 x float]. The
1924
+ /// lower 32 bits contain the value provided in the source operand. The
1925
+ /// upper 96 bits are set to zero.
1926
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
1927
+ _mm_set_ss(float __w) {
1928
+ return __extension__ (__m128){ __w, 0.0f, 0.0f, 0.0f };
1929
+ }
1930
+
1931
+ /// Constructs a 128-bit floating-point vector of [4 x float], with each
1932
+ /// of the four single-precision floating-point vector elements set to the
1933
+ /// specified single-precision floating-point value.
1934
+ ///
1935
+ /// \headerfile <x86intrin.h>
1936
+ ///
1937
+ /// This intrinsic corresponds to the <c> VPERMILPS / PERMILPS </c> instruction.
1938
+ ///
1939
+ /// \param __w
1940
+ /// A single-precision floating-point value used to initialize each vector
1941
+ /// element of the result.
1942
+ /// \returns An initialized 128-bit floating-point vector of [4 x float].
1943
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
1944
+ _mm_set1_ps(float __w) {
1945
+ return __extension__ (__m128){ __w, __w, __w, __w };
1946
+ }
1947
+
1948
+ /* Microsoft specific. */
1949
+ /// Constructs a 128-bit floating-point vector of [4 x float], with each
1950
+ /// of the four single-precision floating-point vector elements set to the
1951
+ /// specified single-precision floating-point value.
1952
+ ///
1953
+ /// \headerfile <x86intrin.h>
1954
+ ///
1955
+ /// This intrinsic corresponds to the <c> VPERMILPS / PERMILPS </c> instruction.
1956
+ ///
1957
+ /// \param __w
1958
+ /// A single-precision floating-point value used to initialize each vector
1959
+ /// element of the result.
1960
+ /// \returns An initialized 128-bit floating-point vector of [4 x float].
1961
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
1962
+ _mm_set_ps1(float __w) {
1963
+ return _mm_set1_ps(__w);
1964
+ }
1965
+
1966
+ /// Constructs a 128-bit floating-point vector of [4 x float]
1967
+ /// initialized with the specified single-precision floating-point values.
1968
+ ///
1969
+ /// \headerfile <x86intrin.h>
1970
+ ///
1971
+ /// This intrinsic is a utility function and does not correspond to a specific
1972
+ /// instruction.
1973
+ ///
1974
+ /// \param __z
1975
+ /// A single-precision floating-point value used to initialize bits [127:96]
1976
+ /// of the result.
1977
+ /// \param __y
1978
+ /// A single-precision floating-point value used to initialize bits [95:64]
1979
+ /// of the result.
1980
+ /// \param __x
1981
+ /// A single-precision floating-point value used to initialize bits [63:32]
1982
+ /// of the result.
1983
+ /// \param __w
1984
+ /// A single-precision floating-point value used to initialize bits [31:0]
1985
+ /// of the result.
1986
+ /// \returns An initialized 128-bit floating-point vector of [4 x float].
1987
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
1988
+ _mm_set_ps(float __z, float __y, float __x, float __w) {
1989
+ return __extension__ (__m128){ __w, __x, __y, __z };
1990
+ }
1991
+
1992
+ /// Constructs a 128-bit floating-point vector of [4 x float],
1993
+ /// initialized in reverse order with the specified 32-bit single-precision
1994
+ /// float-point values.
1995
+ ///
1996
+ /// \headerfile <x86intrin.h>
1997
+ ///
1998
+ /// This intrinsic is a utility function and does not correspond to a specific
1999
+ /// instruction.
2000
+ ///
2001
+ /// \param __z
2002
+ /// A single-precision floating-point value used to initialize bits [31:0]
2003
+ /// of the result.
2004
+ /// \param __y
2005
+ /// A single-precision floating-point value used to initialize bits [63:32]
2006
+ /// of the result.
2007
+ /// \param __x
2008
+ /// A single-precision floating-point value used to initialize bits [95:64]
2009
+ /// of the result.
2010
+ /// \param __w
2011
+ /// A single-precision floating-point value used to initialize bits [127:96]
2012
+ /// of the result.
2013
+ /// \returns An initialized 128-bit floating-point vector of [4 x float].
2014
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
2015
+ _mm_setr_ps(float __z, float __y, float __x, float __w) {
2016
+ return __extension__ (__m128){ __z, __y, __x, __w };
2017
+ }
2018
+
2019
+ /// Constructs a 128-bit floating-point vector of [4 x float] initialized
2020
+ /// to zero.
2021
+ ///
2022
+ /// \headerfile <x86intrin.h>
2023
+ ///
2024
+ /// This intrinsic corresponds to the <c> VXORPS / XORPS </c> instruction.
2025
+ ///
2026
+ /// \returns An initialized 128-bit floating-point vector of [4 x float] with
2027
+ /// all elements set to zero.
2028
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
2029
+ _mm_setzero_ps(void) {
2030
+ return __extension__ (__m128){ 0.0f, 0.0f, 0.0f, 0.0f };
2031
+ }
2032
+
2033
+ /// Stores the upper 64 bits of a 128-bit vector of [4 x float] to a
2034
+ /// memory location.
2035
+ ///
2036
+ /// \headerfile <x86intrin.h>
2037
+ ///
2038
+ /// This intrinsic corresponds to the <c> VPEXTRQ / PEXTRQ </c> instruction.
2039
+ ///
2040
+ /// \param __p
2041
+ /// A pointer to a 64-bit memory location.
2042
+ /// \param __a
2043
+ /// A 128-bit vector of [4 x float] containing the values to be stored.
2044
+ static __inline__ void __DEFAULT_FN_ATTRS
2045
+ _mm_storeh_pi(__m64 *__p, __m128 __a)
2046
+ {
2047
+ typedef float __mm_storeh_pi_v2f32 __attribute__((__vector_size__(8)));
2048
+ struct __mm_storeh_pi_struct {
2049
+ __mm_storeh_pi_v2f32 __u;
2050
+ } __attribute__((__packed__, __may_alias__));
2051
+ ((struct __mm_storeh_pi_struct*)__p)->__u = __builtin_shufflevector(__a, __a, 2, 3);
2052
+ }
2053
+
2054
+ /// Stores the lower 64 bits of a 128-bit vector of [4 x float] to a
2055
+ /// memory location.
2056
+ ///
2057
+ /// \headerfile <x86intrin.h>
2058
+ ///
2059
+ /// This intrinsic corresponds to the <c> VMOVLPS / MOVLPS </c> instruction.
2060
+ ///
2061
+ /// \param __p
2062
+ /// A pointer to a memory location that will receive the float values.
2063
+ /// \param __a
2064
+ /// A 128-bit vector of [4 x float] containing the values to be stored.
2065
+ static __inline__ void __DEFAULT_FN_ATTRS
2066
+ _mm_storel_pi(__m64 *__p, __m128 __a)
2067
+ {
2068
+ typedef float __mm_storeh_pi_v2f32 __attribute__((__vector_size__(8)));
2069
+ struct __mm_storeh_pi_struct {
2070
+ __mm_storeh_pi_v2f32 __u;
2071
+ } __attribute__((__packed__, __may_alias__));
2072
+ ((struct __mm_storeh_pi_struct*)__p)->__u = __builtin_shufflevector(__a, __a, 0, 1);
2073
+ }
2074
+
2075
+ /// Stores the lower 32 bits of a 128-bit vector of [4 x float] to a
2076
+ /// memory location.
2077
+ ///
2078
+ /// \headerfile <x86intrin.h>
2079
+ ///
2080
+ /// This intrinsic corresponds to the <c> VMOVSS / MOVSS </c> instruction.
2081
+ ///
2082
+ /// \param __p
2083
+ /// A pointer to a 32-bit memory location.
2084
+ /// \param __a
2085
+ /// A 128-bit vector of [4 x float] containing the value to be stored.
2086
+ static __inline__ void __DEFAULT_FN_ATTRS
2087
+ _mm_store_ss(float *__p, __m128 __a)
2088
+ {
2089
+ struct __mm_store_ss_struct {
2090
+ float __u;
2091
+ } __attribute__((__packed__, __may_alias__));
2092
+ ((struct __mm_store_ss_struct*)__p)->__u = __a[0];
2093
+ }
2094
+
2095
+ /// Stores a 128-bit vector of [4 x float] to an unaligned memory
2096
+ /// location.
2097
+ ///
2098
+ /// \headerfile <x86intrin.h>
2099
+ ///
2100
+ /// This intrinsic corresponds to the <c> VMOVUPS / MOVUPS </c> instruction.
2101
+ ///
2102
+ /// \param __p
2103
+ /// A pointer to a 128-bit memory location. The address of the memory
2104
+ /// location does not have to be aligned.
2105
+ /// \param __a
2106
+ /// A 128-bit vector of [4 x float] containing the values to be stored.
2107
+ static __inline__ void __DEFAULT_FN_ATTRS
2108
+ _mm_storeu_ps(float *__p, __m128 __a)
2109
+ {
2110
+ struct __storeu_ps {
2111
+ __m128_u __v;
2112
+ } __attribute__((__packed__, __may_alias__));
2113
+ ((struct __storeu_ps*)__p)->__v = __a;
2114
+ }
2115
+
2116
+ /// Stores a 128-bit vector of [4 x float] into an aligned memory
2117
+ /// location.
2118
+ ///
2119
+ /// \headerfile <x86intrin.h>
2120
+ ///
2121
+ /// This intrinsic corresponds to the <c> VMOVAPS / MOVAPS </c> instruction.
2122
+ ///
2123
+ /// \param __p
2124
+ /// A pointer to a 128-bit memory location. The address of the memory
2125
+ /// location has to be 16-byte aligned.
2126
+ /// \param __a
2127
+ /// A 128-bit vector of [4 x float] containing the values to be stored.
2128
+ static __inline__ void __DEFAULT_FN_ATTRS
2129
+ _mm_store_ps(float *__p, __m128 __a)
2130
+ {
2131
+ *(__m128*)__p = __a;
2132
+ }
2133
+
2134
+ /// Stores the lower 32 bits of a 128-bit vector of [4 x float] into
2135
+ /// four contiguous elements in an aligned memory location.
2136
+ ///
2137
+ /// \headerfile <x86intrin.h>
2138
+ ///
2139
+ /// This intrinsic corresponds to <c> VMOVAPS / MOVAPS + shuffling </c>
2140
+ /// instruction.
2141
+ ///
2142
+ /// \param __p
2143
+ /// A pointer to a 128-bit memory location.
2144
+ /// \param __a
2145
+ /// A 128-bit vector of [4 x float] whose lower 32 bits are stored to each
2146
+ /// of the four contiguous elements pointed by \a __p.
2147
+ static __inline__ void __DEFAULT_FN_ATTRS
2148
+ _mm_store1_ps(float *__p, __m128 __a)
2149
+ {
2150
+ __a = __builtin_shufflevector((__v4sf)__a, (__v4sf)__a, 0, 0, 0, 0);
2151
+ _mm_store_ps(__p, __a);
2152
+ }
2153
+
2154
+ /// Stores the lower 32 bits of a 128-bit vector of [4 x float] into
2155
+ /// four contiguous elements in an aligned memory location.
2156
+ ///
2157
+ /// \headerfile <x86intrin.h>
2158
+ ///
2159
+ /// This intrinsic corresponds to <c> VMOVAPS / MOVAPS + shuffling </c>
2160
+ /// instruction.
2161
+ ///
2162
+ /// \param __p
2163
+ /// A pointer to a 128-bit memory location.
2164
+ /// \param __a
2165
+ /// A 128-bit vector of [4 x float] whose lower 32 bits are stored to each
2166
+ /// of the four contiguous elements pointed by \a __p.
2167
+ static __inline__ void __DEFAULT_FN_ATTRS
2168
+ _mm_store_ps1(float *__p, __m128 __a)
2169
+ {
2170
+ _mm_store1_ps(__p, __a);
2171
+ }
2172
+
2173
+ /// Stores float values from a 128-bit vector of [4 x float] to an
2174
+ /// aligned memory location in reverse order.
2175
+ ///
2176
+ /// \headerfile <x86intrin.h>
2177
+ ///
2178
+ /// This intrinsic corresponds to the <c> VMOVAPS / MOVAPS + shuffling </c>
2179
+ /// instruction.
2180
+ ///
2181
+ /// \param __p
2182
+ /// A pointer to a 128-bit memory location. The address of the memory
2183
+ /// location has to be 128-bit aligned.
2184
+ /// \param __a
2185
+ /// A 128-bit vector of [4 x float] containing the values to be stored.
2186
+ static __inline__ void __DEFAULT_FN_ATTRS
2187
+ _mm_storer_ps(float *__p, __m128 __a)
2188
+ {
2189
+ __a = __builtin_shufflevector((__v4sf)__a, (__v4sf)__a, 3, 2, 1, 0);
2190
+ _mm_store_ps(__p, __a);
2191
+ }
2192
+
2193
+ #define _MM_HINT_ET0 7
2194
+ #define _MM_HINT_ET1 6
2195
+ #define _MM_HINT_T0 3
2196
+ #define _MM_HINT_T1 2
2197
+ #define _MM_HINT_T2 1
2198
+ #define _MM_HINT_NTA 0
2199
+
2200
+ #ifndef _MSC_VER
2201
+ // If _MSC_VER is defined, we use the builtin variant of _mm_prefetch.
2202
+ // Otherwise, we provide this macro, which includes a cast, allowing the user
2203
+ // to pass a pointer of any time. The _mm_prefetch accepts char to match MSVC.
2204
+
2205
+ /// Loads one cache line of data from the specified address to a location
2206
+ /// closer to the processor.
2207
+ ///
2208
+ /// \headerfile <x86intrin.h>
2209
+ ///
2210
+ /// \code
2211
+ /// void _mm_prefetch(const void *a, const int sel);
2212
+ /// \endcode
2213
+ ///
2214
+ /// This intrinsic corresponds to the <c> PREFETCHNTA </c> instruction.
2215
+ ///
2216
+ /// \param a
2217
+ /// A pointer to a memory location containing a cache line of data.
2218
+ /// \param sel
2219
+ /// A predefined integer constant specifying the type of prefetch
2220
+ /// operation: \n
2221
+ /// _MM_HINT_NTA: Move data using the non-temporal access (NTA) hint. The
2222
+ /// PREFETCHNTA instruction will be generated. \n
2223
+ /// _MM_HINT_T0: Move data using the T0 hint. The PREFETCHT0 instruction will
2224
+ /// be generated. \n
2225
+ /// _MM_HINT_T1: Move data using the T1 hint. The PREFETCHT1 instruction will
2226
+ /// be generated. \n
2227
+ /// _MM_HINT_T2: Move data using the T2 hint. The PREFETCHT2 instruction will
2228
+ /// be generated.
2229
+ #define _mm_prefetch(a, sel) (__builtin_prefetch((const void *)(a), \
2230
+ ((sel) >> 2) & 1, (sel) & 0x3))
2231
+ #endif
2232
+
2233
+ /// Stores a 64-bit integer in the specified aligned memory location. To
2234
+ /// minimize caching, the data is flagged as non-temporal (unlikely to be
2235
+ /// used again soon).
2236
+ ///
2237
+ /// \headerfile <x86intrin.h>
2238
+ ///
2239
+ /// This intrinsic corresponds to the <c> MOVNTQ </c> instruction.
2240
+ ///
2241
+ /// \param __p
2242
+ /// A pointer to an aligned memory location used to store the register value.
2243
+ /// \param __a
2244
+ /// A 64-bit integer containing the value to be stored.
2245
+ static __inline__ void __DEFAULT_FN_ATTRS
2246
+ _mm_stream_pi(void *__p, __m64 __a)
2247
+ {
2248
+ __builtin_nontemporal_store(__a, (__m64 *)__p);
2249
+ }
2250
+
2251
+ /// Moves packed float values from a 128-bit vector of [4 x float] to a
2252
+ /// 128-bit aligned memory location. To minimize caching, the data is flagged
2253
+ /// as non-temporal (unlikely to be used again soon).
2254
+ ///
2255
+ /// \headerfile <x86intrin.h>
2256
+ ///
2257
+ /// This intrinsic corresponds to the <c> VMOVNTPS / MOVNTPS </c> instruction.
2258
+ ///
2259
+ /// \param __p
2260
+ /// A pointer to a 128-bit aligned memory location that will receive the
2261
+ /// single-precision floating-point values.
2262
+ /// \param __a
2263
+ /// A 128-bit vector of [4 x float] containing the values to be moved.
2264
+ static __inline__ void __DEFAULT_FN_ATTRS
2265
+ _mm_stream_ps(void *__p, __m128 __a)
2266
+ {
2267
+ __builtin_nontemporal_store((__v4sf)__a, (__v4sf*)__p);
2268
+ }
2269
+
2270
+ #if defined(__cplusplus)
2271
+ extern "C" {
2272
+ #endif
2273
+
2274
+ /// Forces strong memory ordering (serialization) between store
2275
+ /// instructions preceding this instruction and store instructions following
2276
+ /// this instruction, ensuring the system completes all previous stores
2277
+ /// before executing subsequent stores.
2278
+ ///
2279
+ /// \headerfile <x86intrin.h>
2280
+ ///
2281
+ /// This intrinsic corresponds to the <c> SFENCE </c> instruction.
2282
+ ///
2283
+ void _mm_sfence(void);
2284
+
2285
+ #if defined(__cplusplus)
2286
+ } // extern "C"
2287
+ #endif
2288
+
2289
+ /// Extracts 16-bit element from a 64-bit vector of [4 x i16] and
2290
+ /// returns it, as specified by the immediate integer operand.
2291
+ ///
2292
+ /// \headerfile <x86intrin.h>
2293
+ ///
2294
+ /// \code
2295
+ /// int _mm_extract_pi16(__m64 a, int n);
2296
+ /// \endcode
2297
+ ///
2298
+ /// This intrinsic corresponds to the <c> VPEXTRW / PEXTRW </c> instruction.
2299
+ ///
2300
+ /// \param a
2301
+ /// A 64-bit vector of [4 x i16].
2302
+ /// \param n
2303
+ /// An immediate integer operand that determines which bits are extracted: \n
2304
+ /// 0: Bits [15:0] are copied to the destination. \n
2305
+ /// 1: Bits [31:16] are copied to the destination. \n
2306
+ /// 2: Bits [47:32] are copied to the destination. \n
2307
+ /// 3: Bits [63:48] are copied to the destination.
2308
+ /// \returns A 16-bit integer containing the extracted 16 bits of packed data.
2309
+ #define _mm_extract_pi16(a, n) \
2310
+ ((int)(unsigned short)__builtin_ia32_vec_ext_v4hi((__v4hi)a, (int)n))
2311
+
2312
+ /// Copies data from the 64-bit vector of [4 x i16] to the destination,
2313
+ /// and inserts the lower 16-bits of an integer operand at the 16-bit offset
2314
+ /// specified by the immediate operand \a n.
2315
+ ///
2316
+ /// \headerfile <x86intrin.h>
2317
+ ///
2318
+ /// \code
2319
+ /// __m64 _mm_insert_pi16(__m64 a, int d, int n);
2320
+ /// \endcode
2321
+ ///
2322
+ /// This intrinsic corresponds to the <c> PINSRW </c> instruction.
2323
+ ///
2324
+ /// \param a
2325
+ /// A 64-bit vector of [4 x i16].
2326
+ /// \param d
2327
+ /// An integer. The lower 16-bit value from this operand is written to the
2328
+ /// destination at the offset specified by operand \a n.
2329
+ /// \param n
2330
+ /// An immediate integer operant that determines which the bits to be used
2331
+ /// in the destination. \n
2332
+ /// 0: Bits [15:0] are copied to the destination. \n
2333
+ /// 1: Bits [31:16] are copied to the destination. \n
2334
+ /// 2: Bits [47:32] are copied to the destination. \n
2335
+ /// 3: Bits [63:48] are copied to the destination. \n
2336
+ /// The remaining bits in the destination are copied from the corresponding
2337
+ /// bits in operand \a a.
2338
+ /// \returns A 64-bit integer vector containing the copied packed data from the
2339
+ /// operands.
2340
+ #define _mm_insert_pi16(a, d, n) \
2341
+ ((__m64)__builtin_ia32_vec_set_v4hi((__v4hi)a, (int)d, (int)n))
2342
+
2343
+ /// Compares each of the corresponding packed 16-bit integer values of
2344
+ /// the 64-bit integer vectors, and writes the greater value to the
2345
+ /// corresponding bits in the destination.
2346
+ ///
2347
+ /// \headerfile <x86intrin.h>
2348
+ ///
2349
+ /// This intrinsic corresponds to the <c> PMAXSW </c> instruction.
2350
+ ///
2351
+ /// \param __a
2352
+ /// A 64-bit integer vector containing one of the source operands.
2353
+ /// \param __b
2354
+ /// A 64-bit integer vector containing one of the source operands.
2355
+ /// \returns A 64-bit integer vector containing the comparison results.
2356
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
2357
+ _mm_max_pi16(__m64 __a, __m64 __b)
2358
+ {
2359
+ return (__m64)__builtin_elementwise_max((__v4hi)__a, (__v4hi)__b);
2360
+ }
2361
+
2362
+ /// Compares each of the corresponding packed 8-bit unsigned integer
2363
+ /// values of the 64-bit integer vectors, and writes the greater value to the
2364
+ /// corresponding bits in the destination.
2365
+ ///
2366
+ /// \headerfile <x86intrin.h>
2367
+ ///
2368
+ /// This intrinsic corresponds to the <c> PMAXUB </c> instruction.
2369
+ ///
2370
+ /// \param __a
2371
+ /// A 64-bit integer vector containing one of the source operands.
2372
+ /// \param __b
2373
+ /// A 64-bit integer vector containing one of the source operands.
2374
+ /// \returns A 64-bit integer vector containing the comparison results.
2375
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
2376
+ _mm_max_pu8(__m64 __a, __m64 __b)
2377
+ {
2378
+ return (__m64)__builtin_elementwise_max((__v8qu)__a, (__v8qu)__b);
2379
+ }
2380
+
2381
+ /// Compares each of the corresponding packed 16-bit integer values of
2382
+ /// the 64-bit integer vectors, and writes the lesser value to the
2383
+ /// corresponding bits in the destination.
2384
+ ///
2385
+ /// \headerfile <x86intrin.h>
2386
+ ///
2387
+ /// This intrinsic corresponds to the <c> PMINSW </c> instruction.
2388
+ ///
2389
+ /// \param __a
2390
+ /// A 64-bit integer vector containing one of the source operands.
2391
+ /// \param __b
2392
+ /// A 64-bit integer vector containing one of the source operands.
2393
+ /// \returns A 64-bit integer vector containing the comparison results.
2394
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
2395
+ _mm_min_pi16(__m64 __a, __m64 __b)
2396
+ {
2397
+ return (__m64)__builtin_elementwise_min((__v4hi)__a, (__v4hi)__b);
2398
+ }
2399
+
2400
+ /// Compares each of the corresponding packed 8-bit unsigned integer
2401
+ /// values of the 64-bit integer vectors, and writes the lesser value to the
2402
+ /// corresponding bits in the destination.
2403
+ ///
2404
+ /// \headerfile <x86intrin.h>
2405
+ ///
2406
+ /// This intrinsic corresponds to the <c> PMINUB </c> instruction.
2407
+ ///
2408
+ /// \param __a
2409
+ /// A 64-bit integer vector containing one of the source operands.
2410
+ /// \param __b
2411
+ /// A 64-bit integer vector containing one of the source operands.
2412
+ /// \returns A 64-bit integer vector containing the comparison results.
2413
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
2414
+ _mm_min_pu8(__m64 __a, __m64 __b)
2415
+ {
2416
+ return (__m64)__builtin_elementwise_min((__v8qu)__a, (__v8qu)__b);
2417
+ }
2418
+
2419
+ /// Takes the most significant bit from each 8-bit element in a 64-bit
2420
+ /// integer vector to create an 8-bit mask value. Zero-extends the value to
2421
+ /// 32-bit integer and writes it to the destination.
2422
+ ///
2423
+ /// \headerfile <x86intrin.h>
2424
+ ///
2425
+ /// This intrinsic corresponds to the <c> PMOVMSKB </c> instruction.
2426
+ ///
2427
+ /// \param __a
2428
+ /// A 64-bit integer vector containing the values with bits to be extracted.
2429
+ /// \returns The most significant bit from each 8-bit element in \a __a,
2430
+ /// written to bits [7:0].
2431
+ static __inline__ int __DEFAULT_FN_ATTRS_SSE2
2432
+ _mm_movemask_pi8(__m64 __a)
2433
+ {
2434
+ return __builtin_ia32_pmovmskb128((__v16qi)__zext128(__a));
2435
+ }
2436
+
2437
+ /// Multiplies packed 16-bit unsigned integer values and writes the
2438
+ /// high-order 16 bits of each 32-bit product to the corresponding bits in
2439
+ /// the destination.
2440
+ ///
2441
+ /// \headerfile <x86intrin.h>
2442
+ ///
2443
+ /// This intrinsic corresponds to the <c> PMULHUW </c> instruction.
2444
+ ///
2445
+ /// \param __a
2446
+ /// A 64-bit integer vector containing one of the source operands.
2447
+ /// \param __b
2448
+ /// A 64-bit integer vector containing one of the source operands.
2449
+ /// \returns A 64-bit integer vector containing the products of both operands.
2450
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
2451
+ _mm_mulhi_pu16(__m64 __a, __m64 __b)
2452
+ {
2453
+ return __trunc64(__builtin_ia32_pmulhuw128((__v8hi)__anyext128(__a),
2454
+ (__v8hi)__anyext128(__b)));
2455
+ }
2456
+
2457
+ /// Shuffles the 4 16-bit integers from a 64-bit integer vector to the
2458
+ /// destination, as specified by the immediate value operand.
2459
+ ///
2460
+ /// \headerfile <x86intrin.h>
2461
+ ///
2462
+ /// \code
2463
+ /// __m64 _mm_shuffle_pi16(__m64 a, const int n);
2464
+ /// \endcode
2465
+ ///
2466
+ /// This intrinsic corresponds to the <c> PSHUFW </c> instruction.
2467
+ ///
2468
+ /// \param a
2469
+ /// A 64-bit integer vector containing the values to be shuffled.
2470
+ /// \param n
2471
+ /// An immediate value containing an 8-bit value specifying which elements to
2472
+ /// copy from \a a. The destinations within the 64-bit destination are
2473
+ /// assigned values as follows: \n
2474
+ /// Bits [1:0] are used to assign values to bits [15:0] in the
2475
+ /// destination. \n
2476
+ /// Bits [3:2] are used to assign values to bits [31:16] in the
2477
+ /// destination. \n
2478
+ /// Bits [5:4] are used to assign values to bits [47:32] in the
2479
+ /// destination. \n
2480
+ /// Bits [7:6] are used to assign values to bits [63:48] in the
2481
+ /// destination. \n
2482
+ /// Bit value assignments: \n
2483
+ /// 00: assigned from bits [15:0] of \a a. \n
2484
+ /// 01: assigned from bits [31:16] of \a a. \n
2485
+ /// 10: assigned from bits [47:32] of \a a. \n
2486
+ /// 11: assigned from bits [63:48] of \a a. \n
2487
+ /// Note: To generate a mask, you can use the \c _MM_SHUFFLE macro.
2488
+ /// <c>_MM_SHUFFLE(b6, b4, b2, b0)</c> can create an 8-bit mask of the form
2489
+ /// <c>[b6, b4, b2, b0]</c>.
2490
+ /// \returns A 64-bit integer vector containing the shuffled values.
2491
+ #define _mm_shuffle_pi16(a, n) \
2492
+ ((__m64)__builtin_shufflevector((__v4hi)(__m64)(a), __extension__(__v4hi){}, \
2493
+ (n) & 0x3, ((n) >> 2) & 0x3, \
2494
+ ((n) >> 4) & 0x3, ((n) >> 6) & 0x3))
2495
+
2496
+ /// Conditionally copies the values from each 8-bit element in the first
2497
+ /// 64-bit integer vector operand to the specified memory location, as
2498
+ /// specified by the most significant bit in the corresponding element in the
2499
+ /// second 64-bit integer vector operand.
2500
+ ///
2501
+ /// To minimize caching, the data is flagged as non-temporal
2502
+ /// (unlikely to be used again soon).
2503
+ ///
2504
+ /// \headerfile <x86intrin.h>
2505
+ ///
2506
+ /// This intrinsic corresponds to the <c> MASKMOVQ </c> instruction.
2507
+ ///
2508
+ /// \param __d
2509
+ /// A 64-bit integer vector containing the values with elements to be copied.
2510
+ /// \param __n
2511
+ /// A 64-bit integer vector operand. The most significant bit from each 8-bit
2512
+ /// element determines whether the corresponding element in operand \a __d
2513
+ /// is copied. If the most significant bit of a given element is 1, the
2514
+ /// corresponding element in operand \a __d is copied.
2515
+ /// \param __p
2516
+ /// A pointer to a 64-bit memory location that will receive the conditionally
2517
+ /// copied integer values. The address of the memory location does not have
2518
+ /// to be aligned.
2519
+ static __inline__ void __DEFAULT_FN_ATTRS_SSE2
2520
+ _mm_maskmove_si64(__m64 __d, __m64 __n, char *__p)
2521
+ {
2522
+ // This is complex, because we need to support the case where __p is pointing
2523
+ // within the last 15 to 8 bytes of a page. In that case, using a 128-bit
2524
+ // write might cause a trap where a 64-bit maskmovq would not. (Memory
2525
+ // locations not selected by the mask bits might still cause traps.)
2526
+ __m128i __d128 = __anyext128(__d);
2527
+ __m128i __n128 = __zext128(__n);
2528
+ if (((__SIZE_TYPE__)__p & 0xfff) >= 4096-15 &&
2529
+ ((__SIZE_TYPE__)__p & 0xfff) <= 4096-8) {
2530
+ // If there's a risk of spurious trap due to a 128-bit write, back up the
2531
+ // pointer by 8 bytes and shift values in registers to match.
2532
+ __p -= 8;
2533
+ __d128 = __builtin_ia32_pslldqi128_byteshift((__v2di)__d128, 8);
2534
+ __n128 = __builtin_ia32_pslldqi128_byteshift((__v2di)__n128, 8);
2535
+ }
2536
+
2537
+ __builtin_ia32_maskmovdqu((__v16qi)__d128, (__v16qi)__n128, __p);
2538
+ }
2539
+
2540
+ /// Computes the rounded averages of the packed unsigned 8-bit integer
2541
+ /// values and writes the averages to the corresponding bits in the
2542
+ /// destination.
2543
+ ///
2544
+ /// \headerfile <x86intrin.h>
2545
+ ///
2546
+ /// This intrinsic corresponds to the <c> PAVGB </c> instruction.
2547
+ ///
2548
+ /// \param __a
2549
+ /// A 64-bit integer vector containing one of the source operands.
2550
+ /// \param __b
2551
+ /// A 64-bit integer vector containing one of the source operands.
2552
+ /// \returns A 64-bit integer vector containing the averages of both operands.
2553
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
2554
+ _mm_avg_pu8(__m64 __a, __m64 __b)
2555
+ {
2556
+ return __trunc64(__builtin_ia32_pavgb128((__v16qi)__anyext128(__a),
2557
+ (__v16qi)__anyext128(__b)));
2558
+ }
2559
+
2560
+ /// Computes the rounded averages of the packed unsigned 16-bit integer
2561
+ /// values and writes the averages to the corresponding bits in the
2562
+ /// destination.
2563
+ ///
2564
+ /// \headerfile <x86intrin.h>
2565
+ ///
2566
+ /// This intrinsic corresponds to the <c> PAVGW </c> instruction.
2567
+ ///
2568
+ /// \param __a
2569
+ /// A 64-bit integer vector containing one of the source operands.
2570
+ /// \param __b
2571
+ /// A 64-bit integer vector containing one of the source operands.
2572
+ /// \returns A 64-bit integer vector containing the averages of both operands.
2573
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
2574
+ _mm_avg_pu16(__m64 __a, __m64 __b)
2575
+ {
2576
+ return __trunc64(__builtin_ia32_pavgw128((__v8hi)__anyext128(__a),
2577
+ (__v8hi)__anyext128(__b)));
2578
+ }
2579
+
2580
+ /// Subtracts the corresponding 8-bit unsigned integer values of the two
2581
+ /// 64-bit vector operands and computes the absolute value for each of the
2582
+ /// difference. Then sum of the 8 absolute differences is written to the
2583
+ /// bits [15:0] of the destination; the remaining bits [63:16] are cleared.
2584
+ ///
2585
+ /// \headerfile <x86intrin.h>
2586
+ ///
2587
+ /// This intrinsic corresponds to the <c> PSADBW </c> instruction.
2588
+ ///
2589
+ /// \param __a
2590
+ /// A 64-bit integer vector containing one of the source operands.
2591
+ /// \param __b
2592
+ /// A 64-bit integer vector containing one of the source operands.
2593
+ /// \returns A 64-bit integer vector whose lower 16 bits contain the sums of the
2594
+ /// sets of absolute differences between both operands. The upper bits are
2595
+ /// cleared.
2596
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
2597
+ _mm_sad_pu8(__m64 __a, __m64 __b)
2598
+ {
2599
+ return __trunc64(__builtin_ia32_psadbw128((__v16qi)__zext128(__a),
2600
+ (__v16qi)__zext128(__b)));
2601
+ }
2602
+
2603
+ #if defined(__cplusplus)
2604
+ extern "C" {
2605
+ #endif
2606
+
2607
+ /// Returns the contents of the MXCSR register as a 32-bit unsigned
2608
+ /// integer value.
2609
+ ///
2610
+ /// There are several groups of macros associated with this
2611
+ /// intrinsic, including:
2612
+ /// <ul>
2613
+ /// <li>
2614
+ /// For checking exception states: _MM_EXCEPT_INVALID, _MM_EXCEPT_DIV_ZERO,
2615
+ /// _MM_EXCEPT_DENORM, _MM_EXCEPT_OVERFLOW, _MM_EXCEPT_UNDERFLOW,
2616
+ /// _MM_EXCEPT_INEXACT. There is a convenience wrapper
2617
+ /// _MM_GET_EXCEPTION_STATE().
2618
+ /// </li>
2619
+ /// <li>
2620
+ /// For checking exception masks: _MM_MASK_UNDERFLOW, _MM_MASK_OVERFLOW,
2621
+ /// _MM_MASK_INVALID, _MM_MASK_DENORM, _MM_MASK_DIV_ZERO, _MM_MASK_INEXACT.
2622
+ /// There is a convenience wrapper _MM_GET_EXCEPTION_MASK().
2623
+ /// </li>
2624
+ /// <li>
2625
+ /// For checking rounding modes: _MM_ROUND_NEAREST, _MM_ROUND_DOWN,
2626
+ /// _MM_ROUND_UP, _MM_ROUND_TOWARD_ZERO. There is a convenience wrapper
2627
+ /// _MM_GET_ROUNDING_MODE().
2628
+ /// </li>
2629
+ /// <li>
2630
+ /// For checking flush-to-zero mode: _MM_FLUSH_ZERO_ON, _MM_FLUSH_ZERO_OFF.
2631
+ /// There is a convenience wrapper _MM_GET_FLUSH_ZERO_MODE().
2632
+ /// </li>
2633
+ /// <li>
2634
+ /// For checking denormals-are-zero mode: _MM_DENORMALS_ZERO_ON,
2635
+ /// _MM_DENORMALS_ZERO_OFF. There is a convenience wrapper
2636
+ /// _MM_GET_DENORMALS_ZERO_MODE().
2637
+ /// </li>
2638
+ /// </ul>
2639
+ ///
2640
+ /// For example, the following expression checks if an overflow exception has
2641
+ /// occurred:
2642
+ /// \code
2643
+ /// ( _mm_getcsr() & _MM_EXCEPT_OVERFLOW )
2644
+ /// \endcode
2645
+ ///
2646
+ /// The following expression gets the current rounding mode:
2647
+ /// \code
2648
+ /// _MM_GET_ROUNDING_MODE()
2649
+ /// \endcode
2650
+ ///
2651
+ /// \headerfile <x86intrin.h>
2652
+ ///
2653
+ /// This intrinsic corresponds to the <c> VSTMXCSR / STMXCSR </c> instruction.
2654
+ ///
2655
+ /// \returns A 32-bit unsigned integer containing the contents of the MXCSR
2656
+ /// register.
2657
+ unsigned int _mm_getcsr(void);
2658
+
2659
+ /// Sets the MXCSR register with the 32-bit unsigned integer value.
2660
+ ///
2661
+ /// There are several groups of macros associated with this intrinsic,
2662
+ /// including:
2663
+ /// <ul>
2664
+ /// <li>
2665
+ /// For setting exception states: _MM_EXCEPT_INVALID, _MM_EXCEPT_DIV_ZERO,
2666
+ /// _MM_EXCEPT_DENORM, _MM_EXCEPT_OVERFLOW, _MM_EXCEPT_UNDERFLOW,
2667
+ /// _MM_EXCEPT_INEXACT. There is a convenience wrapper
2668
+ /// _MM_SET_EXCEPTION_STATE(x) where x is one of these macros.
2669
+ /// </li>
2670
+ /// <li>
2671
+ /// For setting exception masks: _MM_MASK_UNDERFLOW, _MM_MASK_OVERFLOW,
2672
+ /// _MM_MASK_INVALID, _MM_MASK_DENORM, _MM_MASK_DIV_ZERO, _MM_MASK_INEXACT.
2673
+ /// There is a convenience wrapper _MM_SET_EXCEPTION_MASK(x) where x is one
2674
+ /// of these macros.
2675
+ /// </li>
2676
+ /// <li>
2677
+ /// For setting rounding modes: _MM_ROUND_NEAREST, _MM_ROUND_DOWN,
2678
+ /// _MM_ROUND_UP, _MM_ROUND_TOWARD_ZERO. There is a convenience wrapper
2679
+ /// _MM_SET_ROUNDING_MODE(x) where x is one of these macros.
2680
+ /// </li>
2681
+ /// <li>
2682
+ /// For setting flush-to-zero mode: _MM_FLUSH_ZERO_ON, _MM_FLUSH_ZERO_OFF.
2683
+ /// There is a convenience wrapper _MM_SET_FLUSH_ZERO_MODE(x) where x is
2684
+ /// one of these macros.
2685
+ /// </li>
2686
+ /// <li>
2687
+ /// For setting denormals-are-zero mode: _MM_DENORMALS_ZERO_ON,
2688
+ /// _MM_DENORMALS_ZERO_OFF. There is a convenience wrapper
2689
+ /// _MM_SET_DENORMALS_ZERO_MODE(x) where x is one of these macros.
2690
+ /// </li>
2691
+ /// </ul>
2692
+ ///
2693
+ /// For example, the following expression causes subsequent floating-point
2694
+ /// operations to round up:
2695
+ /// _mm_setcsr(_mm_getcsr() | _MM_ROUND_UP)
2696
+ ///
2697
+ /// The following example sets the DAZ and FTZ flags:
2698
+ /// \code
2699
+ /// void setFlags() {
2700
+ /// _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
2701
+ /// _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
2702
+ /// }
2703
+ /// \endcode
2704
+ ///
2705
+ /// \headerfile <x86intrin.h>
2706
+ ///
2707
+ /// This intrinsic corresponds to the <c> VLDMXCSR / LDMXCSR </c> instruction.
2708
+ ///
2709
+ /// \param __i
2710
+ /// A 32-bit unsigned integer value to be written to the MXCSR register.
2711
+ void _mm_setcsr(unsigned int __i);
2712
+
2713
+ #if defined(__cplusplus)
2714
+ } // extern "C"
2715
+ #endif
2716
+
2717
+ /// Selects 4 float values from the 128-bit operands of [4 x float], as
2718
+ /// specified by the immediate value operand.
2719
+ ///
2720
+ /// \headerfile <x86intrin.h>
2721
+ ///
2722
+ /// \code
2723
+ /// __m128 _mm_shuffle_ps(__m128 a, __m128 b, const int mask);
2724
+ /// \endcode
2725
+ ///
2726
+ /// This intrinsic corresponds to the <c> VSHUFPS / SHUFPS </c> instruction.
2727
+ ///
2728
+ /// \param a
2729
+ /// A 128-bit vector of [4 x float].
2730
+ /// \param b
2731
+ /// A 128-bit vector of [4 x float].
2732
+ /// \param mask
2733
+ /// An immediate value containing an 8-bit value specifying which elements to
2734
+ /// copy from \a a and \a b. \n
2735
+ /// Bits [3:0] specify the values copied from operand \a a. \n
2736
+ /// Bits [7:4] specify the values copied from operand \a b. \n
2737
+ /// The destinations within the 128-bit destination are assigned values as
2738
+ /// follows: \n
2739
+ /// Bits [1:0] are used to assign values to bits [31:0] in the
2740
+ /// destination. \n
2741
+ /// Bits [3:2] are used to assign values to bits [63:32] in the
2742
+ /// destination. \n
2743
+ /// Bits [5:4] are used to assign values to bits [95:64] in the
2744
+ /// destination. \n
2745
+ /// Bits [7:6] are used to assign values to bits [127:96] in the
2746
+ /// destination. \n
2747
+ /// Bit value assignments: \n
2748
+ /// 00: Bits [31:0] copied from the specified operand. \n
2749
+ /// 01: Bits [63:32] copied from the specified operand. \n
2750
+ /// 10: Bits [95:64] copied from the specified operand. \n
2751
+ /// 11: Bits [127:96] copied from the specified operand. \n
2752
+ /// Note: To generate a mask, you can use the \c _MM_SHUFFLE macro.
2753
+ /// <c>_MM_SHUFFLE(b6, b4, b2, b0)</c> can create an 8-bit mask of the form
2754
+ /// <c>[b6, b4, b2, b0]</c>.
2755
+ /// \returns A 128-bit vector of [4 x float] containing the shuffled values.
2756
+ #define _mm_shuffle_ps(a, b, mask) \
2757
+ ((__m128)__builtin_ia32_shufps((__v4sf)(__m128)(a), (__v4sf)(__m128)(b), \
2758
+ (int)(mask)))
2759
+
2760
+ /// Unpacks the high-order (index 2,3) values from two 128-bit vectors of
2761
+ /// [4 x float] and interleaves them into a 128-bit vector of [4 x float].
2762
+ ///
2763
+ /// \headerfile <x86intrin.h>
2764
+ ///
2765
+ /// This intrinsic corresponds to the <c> VUNPCKHPS / UNPCKHPS </c> instruction.
2766
+ ///
2767
+ /// \param __a
2768
+ /// A 128-bit vector of [4 x float]. \n
2769
+ /// Bits [95:64] are written to bits [31:0] of the destination. \n
2770
+ /// Bits [127:96] are written to bits [95:64] of the destination.
2771
+ /// \param __b
2772
+ /// A 128-bit vector of [4 x float].
2773
+ /// Bits [95:64] are written to bits [63:32] of the destination. \n
2774
+ /// Bits [127:96] are written to bits [127:96] of the destination.
2775
+ /// \returns A 128-bit vector of [4 x float] containing the interleaved values.
2776
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
2777
+ _mm_unpackhi_ps(__m128 __a, __m128 __b) {
2778
+ return __builtin_shufflevector((__v4sf)__a, (__v4sf)__b, 2, 6, 3, 7);
2779
+ }
2780
+
2781
+ /// Unpacks the low-order (index 0,1) values from two 128-bit vectors of
2782
+ /// [4 x float] and interleaves them into a 128-bit vector of [4 x float].
2783
+ ///
2784
+ /// \headerfile <x86intrin.h>
2785
+ ///
2786
+ /// This intrinsic corresponds to the <c> VUNPCKLPS / UNPCKLPS </c> instruction.
2787
+ ///
2788
+ /// \param __a
2789
+ /// A 128-bit vector of [4 x float]. \n
2790
+ /// Bits [31:0] are written to bits [31:0] of the destination. \n
2791
+ /// Bits [63:32] are written to bits [95:64] of the destination.
2792
+ /// \param __b
2793
+ /// A 128-bit vector of [4 x float]. \n
2794
+ /// Bits [31:0] are written to bits [63:32] of the destination. \n
2795
+ /// Bits [63:32] are written to bits [127:96] of the destination.
2796
+ /// \returns A 128-bit vector of [4 x float] containing the interleaved values.
2797
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
2798
+ _mm_unpacklo_ps(__m128 __a, __m128 __b) {
2799
+ return __builtin_shufflevector((__v4sf)__a, (__v4sf)__b, 0, 4, 1, 5);
2800
+ }
2801
+
2802
+ /// Constructs a 128-bit floating-point vector of [4 x float]. The lower
2803
+ /// 32 bits are set to the lower 32 bits of the second parameter. The upper
2804
+ /// 96 bits are set to the upper 96 bits of the first parameter.
2805
+ ///
2806
+ /// \headerfile <x86intrin.h>
2807
+ ///
2808
+ /// This intrinsic corresponds to the <c> VBLENDPS / BLENDPS / MOVSS </c>
2809
+ /// instruction.
2810
+ ///
2811
+ /// \param __a
2812
+ /// A 128-bit floating-point vector of [4 x float]. The upper 96 bits are
2813
+ /// written to the upper 96 bits of the result.
2814
+ /// \param __b
2815
+ /// A 128-bit floating-point vector of [4 x float]. The lower 32 bits are
2816
+ /// written to the lower 32 bits of the result.
2817
+ /// \returns A 128-bit floating-point vector of [4 x float].
2818
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
2819
+ _mm_move_ss(__m128 __a, __m128 __b) {
2820
+ __a[0] = __b[0];
2821
+ return __a;
2822
+ }
2823
+
2824
+ /// Constructs a 128-bit floating-point vector of [4 x float]. The lower
2825
+ /// 64 bits are set to the upper 64 bits of the second parameter. The upper
2826
+ /// 64 bits are set to the upper 64 bits of the first parameter.
2827
+ ///
2828
+ /// \headerfile <x86intrin.h>
2829
+ ///
2830
+ /// This intrinsic corresponds to the <c> VUNPCKHPD / UNPCKHPD </c> instruction.
2831
+ ///
2832
+ /// \param __a
2833
+ /// A 128-bit floating-point vector of [4 x float]. The upper 64 bits are
2834
+ /// written to the upper 64 bits of the result.
2835
+ /// \param __b
2836
+ /// A 128-bit floating-point vector of [4 x float]. The upper 64 bits are
2837
+ /// written to the lower 64 bits of the result.
2838
+ /// \returns A 128-bit floating-point vector of [4 x float].
2839
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
2840
+ _mm_movehl_ps(__m128 __a, __m128 __b) {
2841
+ return __builtin_shufflevector((__v4sf)__a, (__v4sf)__b, 6, 7, 2, 3);
2842
+ }
2843
+
2844
+ /// Constructs a 128-bit floating-point vector of [4 x float]. The lower
2845
+ /// 64 bits are set to the lower 64 bits of the first parameter. The upper
2846
+ /// 64 bits are set to the lower 64 bits of the second parameter.
2847
+ ///
2848
+ /// \headerfile <x86intrin.h>
2849
+ ///
2850
+ /// This intrinsic corresponds to the <c> VUNPCKLPD / UNPCKLPD </c> instruction.
2851
+ ///
2852
+ /// \param __a
2853
+ /// A 128-bit floating-point vector of [4 x float]. The lower 64 bits are
2854
+ /// written to the lower 64 bits of the result.
2855
+ /// \param __b
2856
+ /// A 128-bit floating-point vector of [4 x float]. The lower 64 bits are
2857
+ /// written to the upper 64 bits of the result.
2858
+ /// \returns A 128-bit floating-point vector of [4 x float].
2859
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_CONSTEXPR
2860
+ _mm_movelh_ps(__m128 __a, __m128 __b) {
2861
+ return __builtin_shufflevector((__v4sf)__a, (__v4sf)__b, 0, 1, 4, 5);
2862
+ }
2863
+
2864
+ /// Converts a 64-bit vector of [4 x i16] into a 128-bit vector of [4 x
2865
+ /// float].
2866
+ ///
2867
+ /// \headerfile <x86intrin.h>
2868
+ ///
2869
+ /// This intrinsic corresponds to the <c> CVTPI2PS + COMPOSITE </c> instruction.
2870
+ ///
2871
+ /// \param __a
2872
+ /// A 64-bit vector of [4 x i16]. The elements of the destination are copied
2873
+ /// from the corresponding elements in this operand.
2874
+ /// \returns A 128-bit vector of [4 x float] containing the copied and converted
2875
+ /// values from the operand.
2876
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_SSE2
2877
+ _mm_cvtpi16_ps(__m64 __a)
2878
+ {
2879
+ return __builtin_convertvector((__v4hi)__a, __v4sf);
2880
+ }
2881
+
2882
+ /// Converts a 64-bit vector of 16-bit unsigned integer values into a
2883
+ /// 128-bit vector of [4 x float].
2884
+ ///
2885
+ /// \headerfile <x86intrin.h>
2886
+ ///
2887
+ /// This intrinsic corresponds to the <c> CVTPI2PS + COMPOSITE </c> instruction.
2888
+ ///
2889
+ /// \param __a
2890
+ /// A 64-bit vector of 16-bit unsigned integer values. The elements of the
2891
+ /// destination are copied from the corresponding elements in this operand.
2892
+ /// \returns A 128-bit vector of [4 x float] containing the copied and converted
2893
+ /// values from the operand.
2894
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_SSE2
2895
+ _mm_cvtpu16_ps(__m64 __a)
2896
+ {
2897
+ return __builtin_convertvector((__v4hu)__a, __v4sf);
2898
+ }
2899
+
2900
+ /// Converts the lower four 8-bit values from a 64-bit vector of [8 x i8]
2901
+ /// into a 128-bit vector of [4 x float].
2902
+ ///
2903
+ /// \headerfile <x86intrin.h>
2904
+ ///
2905
+ /// This intrinsic corresponds to the <c> CVTPI2PS + COMPOSITE </c> instruction.
2906
+ ///
2907
+ /// \param __a
2908
+ /// A 64-bit vector of [8 x i8]. The elements of the destination are copied
2909
+ /// from the corresponding lower 4 elements in this operand.
2910
+ /// \returns A 128-bit vector of [4 x float] containing the copied and converted
2911
+ /// values from the operand.
2912
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_SSE2
2913
+ _mm_cvtpi8_ps(__m64 __a)
2914
+ {
2915
+ return __builtin_convertvector(
2916
+ __builtin_shufflevector((__v8qs)__a, __extension__ (__v8qs){},
2917
+ 0, 1, 2, 3), __v4sf);
2918
+ }
2919
+
2920
+ /// Converts the lower four unsigned 8-bit integer values from a 64-bit
2921
+ /// vector of [8 x u8] into a 128-bit vector of [4 x float].
2922
+ ///
2923
+ /// \headerfile <x86intrin.h>
2924
+ ///
2925
+ /// This intrinsic corresponds to the <c> CVTPI2PS + COMPOSITE </c> instruction.
2926
+ ///
2927
+ /// \param __a
2928
+ /// A 64-bit vector of unsigned 8-bit integer values. The elements of the
2929
+ /// destination are copied from the corresponding lower 4 elements in this
2930
+ /// operand.
2931
+ /// \returns A 128-bit vector of [4 x float] containing the copied and converted
2932
+ /// values from the source operand.
2933
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_SSE2
2934
+ _mm_cvtpu8_ps(__m64 __a)
2935
+ {
2936
+ return __builtin_convertvector(
2937
+ __builtin_shufflevector((__v8qu)__a, __extension__ (__v8qu){},
2938
+ 0, 1, 2, 3), __v4sf);
2939
+ }
2940
+
2941
+ /// Converts the two 32-bit signed integer values from each 64-bit vector
2942
+ /// operand of [2 x i32] into a 128-bit vector of [4 x float].
2943
+ ///
2944
+ /// \headerfile <x86intrin.h>
2945
+ ///
2946
+ /// This intrinsic corresponds to the <c> CVTPI2PS + COMPOSITE </c> instruction.
2947
+ ///
2948
+ /// \param __a
2949
+ /// A 64-bit vector of [2 x i32]. The lower elements of the destination are
2950
+ /// copied from the elements in this operand.
2951
+ /// \param __b
2952
+ /// A 64-bit vector of [2 x i32]. The upper elements of the destination are
2953
+ /// copied from the elements in this operand.
2954
+ /// \returns A 128-bit vector of [4 x float] whose lower 64 bits contain the
2955
+ /// copied and converted values from the first operand. The upper 64 bits
2956
+ /// contain the copied and converted values from the second operand.
2957
+ static __inline__ __m128 __DEFAULT_FN_ATTRS_SSE2
2958
+ _mm_cvtpi32x2_ps(__m64 __a, __m64 __b)
2959
+ {
2960
+ return __builtin_convertvector(
2961
+ __builtin_shufflevector((__v2si)__a, (__v2si)__b,
2962
+ 0, 1, 2, 3), __v4sf);
2963
+ }
2964
+
2965
+ /// Converts each single-precision floating-point element of a 128-bit
2966
+ /// floating-point vector of [4 x float] into a 16-bit signed integer, and
2967
+ /// packs the results into a 64-bit integer vector of [4 x i16].
2968
+ ///
2969
+ /// If the floating-point element is NaN or infinity, or if the
2970
+ /// floating-point element is greater than 0x7FFFFFFF or less than -0x8000,
2971
+ /// it is converted to 0x8000. Otherwise if the floating-point element is
2972
+ /// greater than 0x7FFF, it is converted to 0x7FFF.
2973
+ ///
2974
+ /// \headerfile <x86intrin.h>
2975
+ ///
2976
+ /// This intrinsic corresponds to the <c> CVTPS2PI + COMPOSITE </c> instruction.
2977
+ ///
2978
+ /// \param __a
2979
+ /// A 128-bit floating-point vector of [4 x float].
2980
+ /// \returns A 64-bit integer vector of [4 x i16] containing the converted
2981
+ /// values.
2982
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
2983
+ _mm_cvtps_pi16(__m128 __a)
2984
+ {
2985
+ return __trunc64(__builtin_ia32_packssdw128(
2986
+ (__v4si)__builtin_ia32_cvtps2dq((__v4sf)__a), (__v4si)_mm_setzero_ps()));
2987
+ }
2988
+
2989
+ /// Converts each single-precision floating-point element of a 128-bit
2990
+ /// floating-point vector of [4 x float] into an 8-bit signed integer, and
2991
+ /// packs the results into the lower 32 bits of a 64-bit integer vector of
2992
+ /// [8 x i8]. The upper 32 bits of the vector are set to 0.
2993
+ ///
2994
+ /// If the floating-point element is NaN or infinity, or if the
2995
+ /// floating-point element is greater than 0x7FFFFFFF or less than -0x80, it
2996
+ /// is converted to 0x80. Otherwise if the floating-point element is greater
2997
+ /// than 0x7F, it is converted to 0x7F.
2998
+ ///
2999
+ /// \headerfile <x86intrin.h>
3000
+ ///
3001
+ /// This intrinsic corresponds to the <c> CVTPS2PI + COMPOSITE </c> instruction.
3002
+ ///
3003
+ /// \param __a
3004
+ /// 128-bit floating-point vector of [4 x float].
3005
+ /// \returns A 64-bit integer vector of [8 x i8]. The lower 32 bits contain the
3006
+ /// converted values and the uppper 32 bits are set to zero.
3007
+ static __inline__ __m64 __DEFAULT_FN_ATTRS_SSE2
3008
+ _mm_cvtps_pi8(__m128 __a)
3009
+ {
3010
+ __m64 __b, __c;
3011
+
3012
+ __b = _mm_cvtps_pi16(__a);
3013
+ __c = _mm_setzero_si64();
3014
+
3015
+ return _mm_packs_pi16(__b, __c);
3016
+ }
3017
+
3018
+ /// Extracts the sign bits from each single-precision floating-point
3019
+ /// element of a 128-bit floating-point vector of [4 x float] and returns the
3020
+ /// sign bits in bits [0:3] of the result. Bits [31:4] of the result are set
3021
+ /// to zero.
3022
+ ///
3023
+ /// \headerfile <x86intrin.h>
3024
+ ///
3025
+ /// This intrinsic corresponds to the <c> VMOVMSKPS / MOVMSKPS </c> instruction.
3026
+ ///
3027
+ /// \param __a
3028
+ /// A 128-bit floating-point vector of [4 x float].
3029
+ /// \returns A 32-bit integer value. Bits [3:0] contain the sign bits from each
3030
+ /// single-precision floating-point element of the parameter. Bits [31:4] are
3031
+ /// set to zero.
3032
+ static __inline__ int __DEFAULT_FN_ATTRS
3033
+ _mm_movemask_ps(__m128 __a)
3034
+ {
3035
+ return __builtin_ia32_movmskps((__v4sf)__a);
3036
+ }
3037
+
3038
+ /* Compare */
3039
+ #define _CMP_EQ_OQ 0x00 /* Equal (ordered, non-signaling) */
3040
+ #define _CMP_LT_OS 0x01 /* Less-than (ordered, signaling) */
3041
+ #define _CMP_LE_OS 0x02 /* Less-than-or-equal (ordered, signaling) */
3042
+ #define _CMP_UNORD_Q 0x03 /* Unordered (non-signaling) */
3043
+ #define _CMP_NEQ_UQ 0x04 /* Not-equal (unordered, non-signaling) */
3044
+ #define _CMP_NLT_US 0x05 /* Not-less-than (unordered, signaling) */
3045
+ #define _CMP_NLE_US 0x06 /* Not-less-than-or-equal (unordered, signaling) */
3046
+ #define _CMP_ORD_Q 0x07 /* Ordered (non-signaling) */
3047
+
3048
+ /// Compares each of the corresponding values of two 128-bit vectors of
3049
+ /// [4 x float], using the operation specified by the immediate integer
3050
+ /// operand.
3051
+ ///
3052
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true.
3053
+ /// If either value in a comparison is NaN, comparisons that are ordered
3054
+ /// return false, and comparisons that are unordered return true.
3055
+ ///
3056
+ /// \headerfile <x86intrin.h>
3057
+ ///
3058
+ /// \code
3059
+ /// __m128 _mm_cmp_ps(__m128 a, __m128 b, const int c);
3060
+ /// \endcode
3061
+ ///
3062
+ /// This intrinsic corresponds to the <c> (V)CMPPS </c> instruction.
3063
+ ///
3064
+ /// \param a
3065
+ /// A 128-bit vector of [4 x float].
3066
+ /// \param b
3067
+ /// A 128-bit vector of [4 x float].
3068
+ /// \param c
3069
+ /// An immediate integer operand, with bits [4:0] specifying which comparison
3070
+ /// operation to use: \n
3071
+ /// 0x00: Equal (ordered, non-signaling) \n
3072
+ /// 0x01: Less-than (ordered, signaling) \n
3073
+ /// 0x02: Less-than-or-equal (ordered, signaling) \n
3074
+ /// 0x03: Unordered (non-signaling) \n
3075
+ /// 0x04: Not-equal (unordered, non-signaling) \n
3076
+ /// 0x05: Not-less-than (unordered, signaling) \n
3077
+ /// 0x06: Not-less-than-or-equal (unordered, signaling) \n
3078
+ /// 0x07: Ordered (non-signaling) \n
3079
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
3080
+ #define _mm_cmp_ps(a, b, c) \
3081
+ ((__m128)__builtin_ia32_cmpps((__v4sf)(__m128)(a), (__v4sf)(__m128)(b), (c)))
3082
+
3083
+ /// Compares each of the corresponding scalar values of two 128-bit
3084
+ /// vectors of [4 x float], using the operation specified by the immediate
3085
+ /// integer operand.
3086
+ ///
3087
+ /// Each comparison returns 0x0 for false, 0xFFFFFFFF for true.
3088
+ /// If either value in a comparison is NaN, comparisons that are ordered
3089
+ /// return false, and comparisons that are unordered return true.
3090
+ ///
3091
+ /// \headerfile <x86intrin.h>
3092
+ ///
3093
+ /// \code
3094
+ /// __m128 _mm_cmp_ss(__m128 a, __m128 b, const int c);
3095
+ /// \endcode
3096
+ ///
3097
+ /// This intrinsic corresponds to the <c> (V)CMPSS </c> instruction.
3098
+ ///
3099
+ /// \param a
3100
+ /// A 128-bit vector of [4 x float].
3101
+ /// \param b
3102
+ /// A 128-bit vector of [4 x float].
3103
+ /// \param c
3104
+ /// An immediate integer operand, with bits [4:0] specifying which comparison
3105
+ /// operation to use: \n
3106
+ /// 0x00: Equal (ordered, non-signaling) \n
3107
+ /// 0x01: Less-than (ordered, signaling) \n
3108
+ /// 0x02: Less-than-or-equal (ordered, signaling) \n
3109
+ /// 0x03: Unordered (non-signaling) \n
3110
+ /// 0x04: Not-equal (unordered, non-signaling) \n
3111
+ /// 0x05: Not-less-than (unordered, signaling) \n
3112
+ /// 0x06: Not-less-than-or-equal (unordered, signaling) \n
3113
+ /// 0x07: Ordered (non-signaling) \n
3114
+ /// \returns A 128-bit vector of [4 x float] containing the comparison results.
3115
+ #define _mm_cmp_ss(a, b, c) \
3116
+ ((__m128)__builtin_ia32_cmpss((__v4sf)(__m128)(a), (__v4sf)(__m128)(b), (c)))
3117
+
3118
+ #define _MM_ALIGN16 __attribute__((aligned(16)))
3119
+
3120
+ #define _MM_SHUFFLE(z, y, x, w) (((z) << 6) | ((y) << 4) | ((x) << 2) | (w))
3121
+
3122
+ #define _MM_EXCEPT_INVALID (0x0001U)
3123
+ #define _MM_EXCEPT_DENORM (0x0002U)
3124
+ #define _MM_EXCEPT_DIV_ZERO (0x0004U)
3125
+ #define _MM_EXCEPT_OVERFLOW (0x0008U)
3126
+ #define _MM_EXCEPT_UNDERFLOW (0x0010U)
3127
+ #define _MM_EXCEPT_INEXACT (0x0020U)
3128
+ #define _MM_EXCEPT_MASK (0x003fU)
3129
+
3130
+ #define _MM_MASK_INVALID (0x0080U)
3131
+ #define _MM_MASK_DENORM (0x0100U)
3132
+ #define _MM_MASK_DIV_ZERO (0x0200U)
3133
+ #define _MM_MASK_OVERFLOW (0x0400U)
3134
+ #define _MM_MASK_UNDERFLOW (0x0800U)
3135
+ #define _MM_MASK_INEXACT (0x1000U)
3136
+ #define _MM_MASK_MASK (0x1f80U)
3137
+
3138
+ #define _MM_ROUND_NEAREST (0x0000U)
3139
+ #define _MM_ROUND_DOWN (0x2000U)
3140
+ #define _MM_ROUND_UP (0x4000U)
3141
+ #define _MM_ROUND_TOWARD_ZERO (0x6000U)
3142
+ #define _MM_ROUND_MASK (0x6000U)
3143
+
3144
+ #define _MM_FLUSH_ZERO_MASK (0x8000U)
3145
+ #define _MM_FLUSH_ZERO_ON (0x8000U)
3146
+ #define _MM_FLUSH_ZERO_OFF (0x0000U)
3147
+
3148
+ #define _MM_GET_EXCEPTION_MASK() (_mm_getcsr() & _MM_MASK_MASK)
3149
+ #define _MM_GET_EXCEPTION_STATE() (_mm_getcsr() & _MM_EXCEPT_MASK)
3150
+ #define _MM_GET_FLUSH_ZERO_MODE() (_mm_getcsr() & _MM_FLUSH_ZERO_MASK)
3151
+ #define _MM_GET_ROUNDING_MODE() (_mm_getcsr() & _MM_ROUND_MASK)
3152
+
3153
+ #define _MM_SET_EXCEPTION_MASK(x) (_mm_setcsr((_mm_getcsr() & ~_MM_MASK_MASK) | (x)))
3154
+ #define _MM_SET_EXCEPTION_STATE(x) (_mm_setcsr((_mm_getcsr() & ~_MM_EXCEPT_MASK) | (x)))
3155
+ #define _MM_SET_FLUSH_ZERO_MODE(x) (_mm_setcsr((_mm_getcsr() & ~_MM_FLUSH_ZERO_MASK) | (x)))
3156
+ #define _MM_SET_ROUNDING_MODE(x) (_mm_setcsr((_mm_getcsr() & ~_MM_ROUND_MASK) | (x)))
3157
+
3158
+ #define _MM_TRANSPOSE4_PS(row0, row1, row2, row3) \
3159
+ do { \
3160
+ __m128 tmp3, tmp2, tmp1, tmp0; \
3161
+ tmp0 = _mm_unpacklo_ps((row0), (row1)); \
3162
+ tmp2 = _mm_unpacklo_ps((row2), (row3)); \
3163
+ tmp1 = _mm_unpackhi_ps((row0), (row1)); \
3164
+ tmp3 = _mm_unpackhi_ps((row2), (row3)); \
3165
+ (row0) = _mm_movelh_ps(tmp0, tmp2); \
3166
+ (row1) = _mm_movehl_ps(tmp2, tmp0); \
3167
+ (row2) = _mm_movelh_ps(tmp1, tmp3); \
3168
+ (row3) = _mm_movehl_ps(tmp3, tmp1); \
3169
+ } while (0)
3170
+
3171
+ /* Aliases for compatibility. */
3172
+ #define _m_pextrw _mm_extract_pi16
3173
+ #define _m_pinsrw _mm_insert_pi16
3174
+ #define _m_pmaxsw _mm_max_pi16
3175
+ #define _m_pmaxub _mm_max_pu8
3176
+ #define _m_pminsw _mm_min_pi16
3177
+ #define _m_pminub _mm_min_pu8
3178
+ #define _m_pmovmskb _mm_movemask_pi8
3179
+ #define _m_pmulhuw _mm_mulhi_pu16
3180
+ #define _m_pshufw _mm_shuffle_pi16
3181
+ #define _m_maskmovq _mm_maskmove_si64
3182
+ #define _m_pavgb _mm_avg_pu8
3183
+ #define _m_pavgw _mm_avg_pu16
3184
+ #define _m_psadbw _mm_sad_pu8
3185
+ #define _m_ _mm_
3186
+
3187
+ #undef __trunc64
3188
+ #undef __zext128
3189
+ #undef __anyext128
3190
+ #undef __zeroupper64
3191
+ #undef __DEFAULT_FN_ATTRS
3192
+ #undef __DEFAULT_FN_ATTRS_CONSTEXPR
3193
+ #undef __DEFAULT_FN_ATTRS_SSE2
3194
+ #undef __DEFAULT_FN_ATTRS_SSE2_CONSTEXPR
3195
+
3196
+ /* Ugly hack for backwards-compatibility (compatible with gcc) */
3197
+ #if defined(__SSE2__) && !__building_module(_Builtin_intrinsics)
3198
+ #include <emmintrin.h>
3199
+ #endif
3200
+
3201
+ #endif /* __XMMINTRIN_H */