Commit Graph

13 Commits

Author SHA1 Message Date
Karoy Lorentey
2cc38fcace [Accelerate] Remove redundant @available attributes
Declarations lexically nested in a context with an @available declaration inherit the same.
2019-06-25 20:06:58 -07:00
Karoy Lorentey
992bed48e4 [Accelerate] Replace 9999 availability with actual OS versions 2019-06-25 20:03:28 -07:00
Karoy Lorentey
2fd8f54724 [Accelerate] vImage, vDSP, vForce: Describe availability 2019-06-25 19:59:27 -07:00
Stephen Canon
e6406d878d Drop @inline(__always) from Accelerate overlay; it doesn't do what you want. (#24641)
@inline(__always) does not imply inlinable, which means that it effectively does nothing in the context of the Accelerate overlay. I have replaced all of these with @inlinable where that can be done as a one-line change. Functions that switch over open enums and more complex API (DCT, DFT, FFT) will require more sophisticated corrections, which we can undertake in later commits. For now, they have been rolled back to simply being normal public API.
2019-05-09 17:10:34 -04:00
Steve (Numerics) Canon
91bc3595b3 Add missing availability information to enums defined in the vDSP overlay. 2019-04-23 20:23:05 -04:00
Stephen Canon
c90299da15 Fix a case where vDSP is missing a cast (#24197)
* Add missing cast to new vDSP_FIR overlay.

* Use macOS instead of OSX in availability annotations.

* Reorder Accelerate/CMakeLists.txt alphabetically.
2019-04-21 17:30:14 -04:00
Simon Gladman
3c813faa01 Composite Branch of vDSP Swift Overlay Work
Contains the following:

	[Accelerate] [vDSP] Swift Overlays to Sliding Window Summation Operations
	[Accelerate] [vDSP] Swift Overlays to Linear Interpolation Operations
	[Accelerate] [vDSP] Swift Overlays to Complex Vector Operations
	[Accelerate] [vDSP] Swift overlays to 1D and 2D convolution operations.
	[Accelerate] [vDSP] Swift overlays to dot product and distance functions.
	[Accelerate] [vDSP] Swift overlays to `vDSP_desamp` and `vDSP_deq22`.
	[Accelerate] [vDSP] Vector Reduction Functions
	[Accelerate] [vDSP] Elementwise Vector-Vector and Vector-Scalar Arithmetic
	[Accelerate] [vDSP] Miscellaneous Conversion Functions
	[Accelerate] [vDSP] Polynomial Evaluation Functions
	[Accelerate] [vDSP] Clipping, Limit, and Threshold Functions
	[Accelerate] [vDSP] Fill, Clear, and Generation Functions
	[Accelerate] [vDSP] Integration Functions
	[Accelerate] [vDSP] Vector Type Conversion Functions
	[Accelerate] [vDSP] Swift overlays to Vector-Vector Extrema and Single-Vector Operations
2019-04-20 10:59:03 +01:00
Simon Gladman
364a143b5e As per code review, rename convert(_:to:) to convertElements(of:to:). Also, remove unnecessary import. 2019-04-18 10:22:50 +01:00
simon gladman
4721423535 Added floatToDouble and doubleToFloat 2019-04-03 13:49:58 +01:00
simon gladman
a0f504b821 Add conversion operations that return the result. 2019-04-03 11:37:33 +01:00
Simon Gladman
d840cd9a21 Code Review Fixes
* Correct copyright year from 2017 to 2019
* `towardsZero` -> `towardZero`
* `towardsNearestInteger` -> `towardNearestInteger`
2019-03-09 15:26:59 +00:00
simon gladman
e9e9b4eac7 Fix availability check in tests. 2019-03-08 17:39:11 +00:00
simon gladman
df1d85f6df [Accelerate] [vDSP] Large Vector Type Conversion Operations
This PR contains a suite of overlays to the vDSP conversion functions.
2019-03-07 13:53:14 +00:00