peachsim 0.1.1692 → 0.1.1700

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 (245) hide show
  1. package/cli/bridge-flow-runner.ts +61 -39
  2. package/cli/commands/agent-wrapper.ts +21 -10
  3. package/cli/commands/control.ts +27 -7
  4. package/cli/commands/coverage.ts +1 -1
  5. package/cli/commands/detect.ts +17 -4
  6. package/cli/commands/maestro-compare.ts +25 -99
  7. package/cli/help-core.ts +3 -4
  8. package/cli/maestro-compare.ts +172 -4
  9. package/cli/outbound-endpoints.ts +2 -10
  10. package/detox/index.ts +15 -0
  11. package/detox/launch-permissions.ts +169 -0
  12. package/dist-lib/agent-daemon-client.cjs +2 -2
  13. package/dist-lib/agent-events.cjs +2 -2
  14. package/dist-lib/attached-projects.cjs +2 -2
  15. package/dist-lib/auth/shared-session.cjs +2 -2
  16. package/dist-lib/backend-origin.cjs +2 -2
  17. package/dist-lib/beta.cjs +2 -2
  18. package/dist-lib/beta.mjs +1 -1
  19. package/dist-lib/bridge-constants.cjs +2 -2
  20. package/dist-lib/bridge-contract-input.cjs +2 -2
  21. package/dist-lib/bridge-contract-input.mjs +1 -1
  22. package/dist-lib/bridge-contract.cjs +2 -2
  23. package/dist-lib/bridge-contract.mjs +1 -1
  24. package/dist-lib/bundle-channel.cjs +18273 -15925
  25. package/dist-lib/capture-contract.cjs +2 -2
  26. package/dist-lib/capture-contract.mjs +1 -1
  27. package/dist-lib/cloud-contract.cjs +2 -2
  28. package/dist-lib/cloud-contract.mjs +1 -1
  29. package/dist-lib/cloud-test-args.cjs +2 -2
  30. package/dist-lib/cloud-test-args.mjs +1 -1
  31. package/dist-lib/cloud.cjs +2 -2
  32. package/dist-lib/cloud.mjs +1 -1
  33. package/dist-lib/config.cjs +2 -2
  34. package/dist-lib/config.mjs +1 -1
  35. package/dist-lib/detox/index.cjs +104 -3
  36. package/dist-lib/dev-bundle-resolution.cjs +208 -44
  37. package/dist-lib/expo-swift-bundle.cjs +2349 -1778
  38. package/dist-lib/expo-swift-metadata.cjs +2 -2
  39. package/dist-lib/expo-swift-metadata.mjs +1 -1
  40. package/dist-lib/home-paths.cjs +2 -2
  41. package/dist-lib/host/bridge-host.cjs +7885 -3334
  42. package/dist-lib/host/fetch-proxy-handler.cjs +331 -39
  43. package/dist-lib/host/fetch-proxy-overrides.cjs +2 -2
  44. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  45. package/dist-lib/host/replacement-module-handler.cjs +2 -2
  46. package/dist-lib/host/websocket-proxy.cjs +2 -2
  47. package/dist-lib/index.cjs +297 -77
  48. package/dist-lib/jump-to-source-babel.cjs +2 -2
  49. package/dist-lib/jump-to-source-native.cjs +2 -2
  50. package/dist-lib/kotlin-host.cjs +2 -2
  51. package/dist-lib/menu.cjs +2 -2
  52. package/dist-lib/menu.mjs +1 -1
  53. package/dist-lib/metro-fingerprint-registry.cjs +2 -2
  54. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  55. package/dist-lib/metro-production-bundle.cjs +2 -2
  56. package/dist-lib/metro-production-bundle.mjs +1 -1
  57. package/dist-lib/metro.cjs +294 -74
  58. package/dist-lib/native-app-identity-project.cjs +48 -37
  59. package/dist-lib/native-app-identity-project.mjs +47 -36
  60. package/dist-lib/native-app-identity.cjs +2 -2
  61. package/dist-lib/native-app-identity.mjs +1 -1
  62. package/dist-lib/native-firebase-metadata.cjs +2 -2
  63. package/dist-lib/native-firebase-metadata.mjs +1 -1
  64. package/dist-lib/plist.cjs +2 -2
  65. package/dist-lib/plist.mjs +1 -1
  66. package/dist-lib/profiles.cjs +2 -2
  67. package/dist-lib/public-brand.cjs +2 -2
  68. package/dist-lib/public-origins-lib-esm.json +24 -23
  69. package/dist-lib/public-origins-lib.json +199 -79
  70. package/dist-lib/react-native-host-modules.cjs +2 -2
  71. package/dist-lib/react-native-host-modules.mjs +1 -1
  72. package/dist-lib/reap-browser.cjs +2 -2
  73. package/dist-lib/scripts/dev-server-scanner.cjs +206 -31
  74. package/dist-lib/sdk.cjs +2 -2
  75. package/dist-lib/sdk.mjs +1 -1
  76. package/dist-lib/skills.cjs +19600 -15992
  77. package/dist-lib/swift-compile.cjs +640 -402
  78. package/dist-lib/swift-compile.mjs +595 -357
  79. package/dist-lib/swift-package.cjs +24 -20
  80. package/dist-lib/swift-package.mjs +23 -19
  81. package/dist-lib/swift-submit.cjs +2 -2
  82. package/dist-lib/swift-submit.mjs +1 -1
  83. package/dist-lib/swift-toolchain.cjs +31 -4
  84. package/dist-lib/swift.cjs +2 -2
  85. package/dist-lib/vite-swift.cjs +1559 -1208
  86. package/dist-lib/vite.cjs +251 -42
  87. package/dist-lib/worklet-executable.cjs +2 -2
  88. package/dist-lib/worklet-executable.mjs +1 -1
  89. package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
  90. package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
  91. package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +3 -1
  92. package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +7 -0
  93. package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -1
  94. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
  95. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
  96. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -0
  97. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +17 -0
  98. package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -1
  99. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
  100. package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +1 -0
  101. package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +1 -0
  102. package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +3 -0
  103. package/dist-types/packages/peach-kit/src/materials/types.d.ts +1 -0
  104. package/package.json +1 -1
  105. package/runtime-companion.json +1 -1
  106. package/scripts/dev-server-scanner.ts +4 -0
  107. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Alpha.h +2282 -0
  108. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/BasicImageTypes.h +55 -0
  109. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +10551 -6
  110. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +4236 -3
  111. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +827 -8
  112. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Histogram.h +1369 -0
  113. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Morphology.h +1243 -0
  114. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Transform.h +1747 -0
  115. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +291 -2
  116. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h +1283 -0
  117. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +811 -91
  118. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +1342 -25
  119. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns.h +2738 -0
  120. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_constants.h +1685 -0
  121. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_graph.h +913 -0
  122. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_structures.h +1917 -0
  123. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h +23 -0
  124. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/arithmetic.h +209 -0
  125. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/base.h +104 -0
  126. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/linear_systems.h +77 -0
  127. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/matrix.h +554 -0
  128. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/norms.h +58 -0
  129. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/object.h +186 -0
  130. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/splat.h +86 -0
  131. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/vector.h +364 -0
  132. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Integration.h +195 -0
  133. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h +44 -0
  134. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/BLAS.h +2330 -0
  135. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/Types.h +123 -0
  136. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Solve.h +8339 -0
  137. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementation.h +520 -0
  138. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementationTyped.h +1893 -0
  139. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Sparse.h +10 -0
  140. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/blas_new.h +1098 -0
  141. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas.h +859 -0
  142. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas_new.h +1134 -0
  143. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/clapack.h +10555 -0
  144. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/fortran_blas.h +695 -0
  145. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack.h +38526 -0
  146. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_types.h +60 -0
  147. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_version.h +20 -0
  148. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/thread_api.h +50 -0
  149. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h +1218 -0
  150. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBigNum.h +1458 -0
  151. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP.h +10377 -0
  152. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP_translate.h +167 -0
  153. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vForce.h +1243 -0
  154. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLib.h +114 -0
  155. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLibTypes.h +146 -0
  156. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vectorOps.h +1106 -0
  157. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vfp.h +294 -0
  158. package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +25 -1
  159. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h +673 -0
  160. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h +232 -0
  161. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h +827 -0
  162. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h +121 -0
  163. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h +387 -0
  164. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h +79 -0
  165. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h +122 -0
  166. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h +674 -0
  167. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h +182 -0
  168. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h +213 -0
  169. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h +82 -0
  170. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h +129 -0
  171. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h +491 -0
  172. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +883 -2
  173. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h +98 -0
  174. package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +11 -229
  175. package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -6
  176. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +2 -1
  177. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +1 -0
  178. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +906 -3
  179. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h +613 -0
  180. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +1284 -29
  181. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h +441 -0
  182. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecTrust.h +845 -0
  183. package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +4 -0
  184. package/sdk/ios/usr/include/AvailabilityMacros.h +3985 -0
  185. package/sdk/ios/usr/include/copyfile.h +143 -0
  186. package/sdk/ios/usr/include/malloc/_malloc.h +143 -0
  187. package/sdk/ios/usr/include/malloc/_malloc_type.h +153 -0
  188. package/sdk/ios/usr/include/malloc/_platform.h +80 -0
  189. package/sdk/ios/usr/include/malloc/_ptrcheck.h +43 -0
  190. package/sdk/ios/usr/include/malloc/malloc.h +768 -0
  191. package/sdk/ios/usr/include/os/availability.h +168 -6
  192. package/sdk/ios/usr/include/os/base.h +351 -0
  193. package/sdk/ios/usr/include/os/clock.h +18 -0
  194. package/sdk/ios/usr/include/os/lock.h +232 -10
  195. package/sdk/ios/usr/include/os/log.h +521 -38
  196. package/sdk/ios/usr/include/os/object.h +320 -3
  197. package/sdk/ios/usr/include/os/trace.h +492 -0
  198. package/sdk/ios/usr/include/os/trace_base.h +167 -0
  199. package/sdk/ios/usr/include/os/workgroup.h +37 -0
  200. package/sdk/ios/usr/include/os/workgroup_base.h +91 -0
  201. package/sdk/ios/usr/include/os/workgroup_interval.h +156 -0
  202. package/sdk/ios/usr/include/os/workgroup_object.h +359 -0
  203. package/sdk/ios/usr/include/os/workgroup_parallel.h +76 -0
  204. package/sdk/ios/usr/include/sys/cdefs.h +38 -0
  205. package/sdk/ios/wasm/include/unistd.h +3 -0
  206. package/skills/contrast/SKILL.md +3 -0
  207. package/src/codex-client.ts +11 -6
  208. package/src/dev-bundle-resolution.ts +124 -48
  209. package/src/expo-native-workspace.ts +176 -0
  210. package/src/expo-swift-host.ts +161 -26
  211. package/src/expo-swift-ready.ts +14 -28
  212. package/src/expoSwiftContract.ts +4 -1
  213. package/src/generated/swift-c-predefines.json +68 -12
  214. package/src/host/bridge-host.ts +5 -0
  215. package/src/installed-package-versions.ts +14 -1
  216. package/src/metro-project-root.ts +44 -33
  217. package/src/native-app-identity-project.ts +1 -0
  218. package/src/nitro-adapter.lock.json +916 -10
  219. package/src/nitro-adapter.ts +33 -24
  220. package/src/nitro-bundle.ts +108 -22
  221. package/src/nitro-compile.ts +32 -5
  222. package/src/nitro-source.ts +13 -3
  223. package/src/nitroAdapterContract.ts +100 -20
  224. package/src/node-http-fetch.ts +116 -0
  225. package/src/packageVersionsContract.ts +46 -0
  226. package/src/serverDiscoveryContract.ts +1 -0
  227. package/src/settingsContract.ts +0 -30
  228. package/src/swift-binary-modules.ts +20 -5
  229. package/src/swift-compile.ts +168 -48
  230. package/src/swift-coverage/xcode-assets.ts +4 -3
  231. package/src/swift-host.ts +14 -3
  232. package/src/swift-objc-compile.ts +32 -5
  233. package/src/swift-objc-metadata.ts +2 -2
  234. package/src/swift-objc-platform.ts +2 -2
  235. package/src/swift-objc-standin.ts +43 -13
  236. package/src/swift-package.ts +33 -26
  237. package/src/swift-source-pods.ts +126 -41
  238. package/src/swift-standin-digest.ts +77 -0
  239. package/src/swift-standin-emit.ts +40 -4
  240. package/src/swift-standins.ts +68 -19
  241. package/src/swift-toolchain.ts +38 -0
  242. package/src/swiftContract.ts +8 -0
  243. package/src/vite-plugin.ts +0 -10
  244. package/src/xcode-project.ts +62 -42
  245. package/src/settings-flags.ts +0 -107
@@ -0,0 +1,294 @@
1
+ /* vfp.h (from vecLib-1155.0)
2
+ * Copyright (c) 1999-2026 by Apple Inc. All rights reserved.
3
+ *
4
+ * Overview:
5
+ * vfp.h provides math library operations for SIMD vectors. These functions
6
+ * are intended for use as replacements for calls to the system math library
7
+ * in hand-vectorized code.
8
+ *
9
+ * If you are not writing vector code, but are looking for high-performance
10
+ * math library operations, consult vForce.h instead, which provides math
11
+ * library operations on arrays of floating-point data.
12
+ *
13
+ * Compatibility:
14
+ * These routines operate on SIMD vectors, and are compatible with the types
15
+ * declared in the headers for both SSE (Intel) and NEON (ARM) intrinsics.
16
+ *
17
+ * Bugs:
18
+ * For bug reports or feature requests use
19
+ * http://developer.apple.com/bugreporter/
20
+ */
21
+
22
+ #ifndef __VFP__
23
+ #define __VFP__
24
+
25
+ #include "vecLibTypes.h"
26
+ #include <stdint.h>
27
+
28
+ #include <TargetConditionals.h>
29
+
30
+ #if __has_include(<os/availability.h>)
31
+ # include <os/availability.h>
32
+ #else // __has_include(<os/availability.h>)
33
+ #if !defined API_AVAILABLE
34
+ #define API_AVAILABLE(...)
35
+ #endif
36
+
37
+ #if !defined API_UNAVAILABLE
38
+ #define API_UNAVAILABLE(...)
39
+ #endif
40
+
41
+ #if !defined API_DEPRECATED_WITH_REPLACEMENT
42
+ #define API_DEPRECATED_WITH_REPLACEMENT(...)
43
+ #endif
44
+ #endif // __has_include(<os/availability.h>)
45
+
46
+
47
+ #ifdef __cplusplus
48
+ extern "C" {
49
+ #endif
50
+
51
+ /* Rounding Functions
52
+ *
53
+ * Each lane of the result vector contains the value in the corresponding
54
+ * lane of the input vector rounded to an integral value in the specified
55
+ * direction:
56
+ *
57
+ * Function Rounding Direction
58
+ * -------- ------------------------
59
+ * vceilf toward +infinity
60
+ * vfloorf toward -infinity
61
+ * vtruncf toward zero
62
+ * vnintf to nearest, ties to even
63
+ *
64
+ * When SSE4.1 code generation is enabled on Intel architectures, single-
65
+ * instruction implementations of these operations are inlined instead of
66
+ * making an external function call. */
67
+
68
+ #if defined __SSE4_1__ && !defined __clang_tapi__
69
+ #include <immintrin.h>
70
+ #define __VFP_INLINE_ATTR__ __attribute__((__always_inline__, __nodebug__))
71
+ static __inline__ vFloat __VFP_INLINE_ATTR__ vceilf(vFloat __vfp_a) { return _mm_ceil_ps(__vfp_a); }
72
+ static __inline__ vFloat __VFP_INLINE_ATTR__ vfloorf(vFloat __vfp_a) { return _mm_floor_ps(__vfp_a); }
73
+ static __inline__ vFloat __VFP_INLINE_ATTR__ vtruncf(vFloat __vfp_a) { return _mm_round_ps(__vfp_a, _MM_FROUND_TRUNC); }
74
+ static __inline__ vFloat __VFP_INLINE_ATTR__ vnintf(vFloat __vfp_a) { return _mm_round_ps(__vfp_a, _MM_FROUND_NINT); }
75
+ #else
76
+ extern vFloat vceilf(vFloat) API_AVAILABLE(macos(10.5), ios(6.0));
77
+ extern vFloat vfloorf(vFloat) API_AVAILABLE(macos(10.5), ios(6.0));
78
+ extern vFloat vtruncf(vFloat) API_AVAILABLE(macos(10.9), ios(6.0));
79
+ extern vFloat vnintf(vFloat) API_AVAILABLE(macos(10.5), ios(6.0));
80
+
81
+ #if !0 && !0
82
+ /* The legacy name vintf is not available on iOS, and is deprecated on macOS. Use vtruncf instead. */
83
+ extern vFloat vintf(vFloat) API_DEPRECATED_WITH_REPLACEMENT("vtruncf", macos(10.5, 10.14)) API_UNAVAILABLE(ios, tvos, watchos);
84
+ #endif
85
+ #endif
86
+
87
+
88
+ #if !defined __has_feature
89
+ #define __has_feature(f) 0
90
+ #endif
91
+ #if __has_feature(assume_nonnull)
92
+ _Pragma("clang assume_nonnull begin")
93
+ #else
94
+ #define __nullable
95
+ #define __nonnull
96
+ #endif
97
+
98
+
99
+ /* Exponential and Logarithmic Functions
100
+ *
101
+ * Each lane of the result contains the result of the specified operation
102
+ * applied to the corresponding lane of the input vector:
103
+ *
104
+ * Function Lanewise Operation
105
+ * -------- ----------------------------
106
+ * vexpf base-e exponential function.
107
+ * vexp2f base-two exponential function.
108
+ * vexpm1f e**x - 1, computed in such a way as to be more
109
+ * accurate than calling vexpf and then subtracting 1
110
+ * when the argument is close to zero.
111
+ * vlogf natural logarithm.
112
+ * vlog2f base-two logarithm.
113
+ * vlog10f base-ten logarithm.
114
+ * vlog1pf natural logarithm of (1+x), computed in such a way as
115
+ * to be more accurate than adding 1 and calling vlogf
116
+ * when the argument is close to zero. */
117
+
118
+ extern vFloat vexpf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
119
+ extern vFloat vexp2f(vFloat) API_AVAILABLE(macos(10.9), ios(6.0));
120
+ extern vFloat vexpm1f(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
121
+ extern vFloat vlogf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
122
+ extern vFloat vlog2f(vFloat) API_AVAILABLE(macos(10.9), ios(6.0));
123
+ extern vFloat vlog10f(vFloat) API_AVAILABLE(macos(10.5), ios(6.0));
124
+ extern vFloat vlog1pf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
125
+
126
+ /* Scaling Functions
127
+ *
128
+ * These functions can be used to efficiently rescale floating-point
129
+ * computations when necessary:
130
+ *
131
+ * Function Lanewise Operation
132
+ * -------- ----------------------------
133
+ * vlogbf extracts the exponent of its argument as a signed
134
+ * integral value. Subnormal arguments are treated as
135
+ * though they were first normalized. Thus:
136
+ * 1 <= x * 2**(-logbf(x)) < 2
137
+ * vscalbf efficiently computes x * 2**n, where x is the first
138
+ * argument and n is the second. */
139
+
140
+ extern vFloat vlogbf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
141
+ extern vFloat vscalbf(vFloat, vSInt32) API_AVAILABLE(macos(10.0), ios(6.0));
142
+
143
+ /* Power Functions
144
+ *
145
+ * vpowf raises the first argument to the power specified by the second
146
+ * argument, and returns the result. Edge cases are as specified for the
147
+ * pow( ) function in the math library. vipowf also raises the first
148
+ * argument to the power specified by the second argument, but the second
149
+ * argument to vipowf is an integer, not a floating-point number. */
150
+
151
+ extern vFloat vpowf(vFloat, vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
152
+ extern vFloat vipowf(vFloat, vSInt32) API_AVAILABLE(macos(10.0), ios(6.0));
153
+
154
+ /* Trigonometric and Hyperbolic Functions
155
+ *
156
+ * These functions compute lanewise trigonometric and hyperbolic functions
157
+ * and their inverses. All inputs to the trigonometric functions, and
158
+ * results from their inverses, are interpreted as angles measured in radians.
159
+ *
160
+ * Function Result
161
+ * -------- ----------------------------
162
+ * vsinf sine of the argument.
163
+ * vcosf cosine of the argument.
164
+ * vsincosf returns the cosine of the first argument, and stores
165
+ * the sine of the first argument to the destination
166
+ * specified by the second argument. This address must
167
+ * be a valid pointer and must be 16-byte aligned.
168
+ * vtanf tangent of the argument.
169
+ *
170
+ * vsinpif sine of the argument multiplied by pi.
171
+ * vcospif cosine of the argument multiplied by pi.
172
+ * vtanpif tangent of the argument multiplied by pi.
173
+ *
174
+ * vasinf arcsine of the argument, in the range [-pi/2, pi/2].
175
+ * vacosf arccosine of the argument, in the range [0, pi].
176
+ * vatanf arctangent of the argument, in the range [-pi/2, pi/2].
177
+ * vatan2f arctangent of the first argument divided by the
178
+ * second argument, using the sign of both arguments to
179
+ * determine in which quadrant the result lies. The
180
+ * result is in the range [-pi, pi], and is the signed
181
+ * angle from the positive x axis to the point
182
+ * (second argument, first argument).
183
+ *
184
+ * vsinhf hyperbolic sine of the argument.
185
+ * vcoshf hyperbolic cosine of the argument.
186
+ * vtanhf hyperbolic tangent of the argument.
187
+ *
188
+ * vasinhf inverse hyperbolic sine of the argument.
189
+ * vacoshf inverse hyperbolic cosine of the argument.
190
+ * vatanhf inverse hyperbolic tangent of the argument. */
191
+
192
+ extern vFloat vsinf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
193
+ extern vFloat vcosf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
194
+ extern vFloat vsincosf(vFloat, vFloat *) API_AVAILABLE(macos(10.5), ios(6.0));
195
+ extern vFloat vtanf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
196
+ extern vFloat vsinpif(vFloat) API_AVAILABLE(macos(10.9), ios(6.0));
197
+ extern vFloat vcospif(vFloat) API_AVAILABLE(macos(10.9), ios(6.0));
198
+ extern vFloat vtanpif(vFloat) API_AVAILABLE(macos(10.9), ios(6.0));
199
+ extern vFloat vasinf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
200
+ extern vFloat vacosf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
201
+ extern vFloat vatanf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
202
+ extern vFloat vatan2f(vFloat, vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
203
+ extern vFloat vsinhf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
204
+ extern vFloat vcoshf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
205
+ extern vFloat vtanhf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
206
+ extern vFloat vasinhf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
207
+ extern vFloat vacoshf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
208
+ extern vFloat vatanhf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
209
+
210
+ /* Arithmetic Functions
211
+ *
212
+ * vrecf, vsqrtf, and vrsqrtf provide lane-wise reciprocal, square-root, and
213
+ * reciprocal square-root operations, respectively. Each lane in the result
214
+ * of vdivf contains the corresponding lane of the first argument divided by
215
+ * the corresponding lane of the second argument. */
216
+
217
+ extern vFloat vrecf(vFloat) API_AVAILABLE(macos(10.5), ios(6.0));
218
+ extern vFloat vsqrtf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
219
+ extern vFloat vrsqrtf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
220
+ extern vFloat vdivf(vFloat, vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
221
+
222
+ /* Remainder Functions
223
+ *
224
+ * These functions compute various forms of the remainder from division of the
225
+ * first argument by the second argument. If we call the first argument x and
226
+ * the second argument y, then the behavior of these functions is as follows:
227
+ *
228
+ * vfmodf returns the value r = x - qy, where q is an integer such that r has
229
+ * the same sign as x and satisfies |r| < |y|, if y is not zero.
230
+ *
231
+ * vremainderf performs the remainder operation defined in the IEEE-754
232
+ * standard. It returns the value r = x - qy, where q is the integer value
233
+ * closest to the exact value of x/y. If there are two integers closest to
234
+ * x/y, then the one which is even is used. Thus, |r| <= |y|/2.
235
+ *
236
+ * vremquof returns the same remainder as vremainderf, and also stores the
237
+ * 7 low-order bits of q to the address pointed to by the third argument.
238
+ * This must be a valid pointer, and must have 16-byte alignment. */
239
+
240
+ extern vFloat vfmodf(vFloat, vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
241
+ extern vFloat vremainderf(vFloat, vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
242
+ extern vFloat vremquof(vFloat, vFloat, vUInt32 *) API_AVAILABLE(macos(10.0), ios(6.0));
243
+
244
+ /* Floating-point Utility Functions
245
+ *
246
+ * These functions provide vector versions of common utility operations
247
+ * for working with floating-point data:
248
+ *
249
+ * Function Lanewise Operation
250
+ * -------- ----------------------------
251
+ * vfabsf absolute value
252
+ * vcopysignf returns a floating-point value with the magnitude of
253
+ * the first operand and the sign of the second operand.
254
+ * vsignbitf non-zero if and only if the signbit of the argument is
255
+ * set. (Note that this applies to NaNs, zeros, and
256
+ * infinities as well, and so is not the same as x < 0.)
257
+ * vnextafterf returns the floating-point value adjacent to the
258
+ * first operand in the direction of the second operand.
259
+ * vclassifyf returns the value of the FP_xxxx macro (defined in
260
+ * <math.h>) corresponding to the "class" of the argument.
261
+ * e.g. if the argument is infinity, the result is
262
+ * FP_INFINITE; if the argument is zero, the result is
263
+ * FP_ZERO. Consult <math.h> for further details. */
264
+
265
+ extern vFloat vfabsf(vFloat) API_AVAILABLE(macos(10.9), ios(6.0));
266
+ extern vFloat vcopysignf(vFloat, vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
267
+ extern vUInt32 vsignbitf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
268
+ extern vFloat vnextafterf(vFloat, vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
269
+ extern vUInt32 vclassifyf(vFloat) API_AVAILABLE(macos(10.0), ios(6.0));
270
+
271
+ #if !0 && !0
272
+ /* The legacy name vfabf is not available on iOS. Use vfabsf instead. */
273
+ extern vFloat vfabf(vFloat) API_DEPRECATED_WITH_REPLACEMENT("vfabsf", macos(10.0, 12.0)) API_UNAVAILABLE(ios, watchos, tvos);
274
+ #endif
275
+
276
+ /* Generalized Table Lookup
277
+ *
278
+ * This function provides a gather operation (table lookup). Each lane of the
279
+ * result vector contains the value found in a table at index specified by
280
+ * the corresponding lane of the first argument. The table base address is
281
+ * specified by the second argument. Note please that the indices are
282
+ * *signed* 32-bit integers. */
283
+
284
+ extern vUInt32 vtablelookup(vSInt32, uint32_t *) API_AVAILABLE(macos(10.0), ios(6.0));
285
+
286
+ #if __has_feature(assume_nonnull)
287
+ _Pragma("clang assume_nonnull end")
288
+ #endif
289
+
290
+ #ifdef __cplusplus
291
+ }
292
+ #endif
293
+
294
+ #endif /* __VFP__ */
@@ -1,7 +1,31 @@
1
+ /*
2
+ File: Accelerate/Accelerate.h
3
+
4
+ Contains: Master include for all of Accelerate
5
+
6
+ Version: Accelerate-1
7
+
8
+ Copyright: Copyright (c) 2000-2026 by Apple Inc. All rights reserved.
9
+
10
+ Bugs: For bug reports, consult the following page on
11
+ the World Wide Web:
12
+
13
+ http://developer.apple.com/bugreporter/
14
+
15
+ */
1
16
  #ifndef __ACCELERATE__
2
17
  #define __ACCELERATE__
18
+
19
+ #ifndef __VECLIB__
20
+ #include "../Frameworks/vecLib.framework/Headers/vecLib.h"
21
+ #endif
22
+
3
23
  #include <TargetConditionals.h>
24
+
25
+
26
+
4
27
  #ifndef VIMAGE_H
5
28
  #include <vImage/vImage.h>
6
29
  #endif
7
- #endif
30
+
31
+ #endif /* __ACCELERATE__ */