Skip to content

Commit b35fd64

Browse files
committed
Might not need @inline(__always)
1 parent df0798e commit b35fd64

File tree

5 files changed

+0
-36
lines changed

5 files changed

+0
-36
lines changed

Sources/AccelerateLinux/MatrixOps/MatrixBasicOps.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import CBLAS
1313
/// - __N: The number of columns in the output matrix and the number of rows in the input matrix.
1414
/// - Warning: This function doesn’t support in-place operation.
1515
@inlinable
16-
@inline(__always)
1716
public func vDSP_mtransD(
1817
_ __A: UnsafePointer<Double>,
1918
_ __IA: vDSP_Stride,
@@ -45,7 +44,6 @@ public func vDSP_mtransD(
4544
/// - __N: The number of columns in matrices B and C.
4645
/// - __P: The number of columns in matrix A and the number of rows in matrix B.
4746
@inlinable
48-
@inline(__always)
4947
public func vDSP_mmulD(
5048
_ __A: UnsafePointer<Double>,
5149
_ __IA: vDSP_Stride,

Sources/AccelerateLinux/VectorOps/VectorBasicOps.swift

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Glibc
1111
/// - __C: The maximum value.
1212
/// - __N: The number of elements in the vector.
1313
@inlinable
14-
@inline(__always)
1514
public func vDSP_maxvD(
1615
_ __A: UnsafePointer<Double>,
1716
_ __I: vDSP_Stride,
@@ -34,7 +33,6 @@ public func vDSP_maxvD(
3433
/// - __C: The minimum value.
3534
/// - __N: The number of elements in the vector.
3635
@inlinable
37-
@inline(__always)
3836
public func vDSP_minvD(
3937
_ __A: UnsafePointer<Double>,
4038
_ __I: vDSP_Stride,
@@ -60,7 +58,6 @@ public func vDSP_minvD(
6058
/// - __IC: The distance between the elements in the output vector.
6159
/// - __N: The number of elements that the function processes.
6260
@inlinable
63-
@inline(__always)
6461
public func vDSP_vaddD(
6562
_ __A: UnsafePointer<Double>,
6663
_ __IA: vDSP_Stride,
@@ -87,7 +84,6 @@ public func vDSP_vaddD(
8784
/// - __IC: The distance between the elements in the output vector.
8885
/// - __N: The number of elements that the function processes.
8986
@inlinable
90-
@inline(__always)
9187
public func vDSP_vsubD(
9288
_ __B: UnsafePointer<Double>,
9389
_ __IB: vDSP_Stride,
@@ -114,7 +110,6 @@ public func vDSP_vsubD(
114110
/// - __IC: The distance between the elements in the output vector.
115111
/// - __N: The number of elements that the function processes.
116112
@inlinable
117-
@inline(__always)
118113
public func vDSP_vmulD(
119114
_ __A: UnsafePointer<Double>,
120115
_ __IA: vDSP_Stride,
@@ -138,7 +133,6 @@ public func vDSP_vmulD(
138133
/// - _: The base input array, x.
139134
/// - _: The number of elements in the arrays.
140135
@inlinable
141-
@inline(__always)
142136
public func vvpow(
143137
_ z: UnsafeMutablePointer<Double>,
144138
_ y: UnsafePointer<Double>,
@@ -171,7 +165,6 @@ public func vvpow(
171165
/// - __IC: Address stride for C.
172166
/// - __N: The number of elements to process.
173167
@inlinable
174-
@inline(__always)
175168
public func vDSP_vclrD(
176169
_ __C: UnsafeMutablePointer<Double>,
177170
_ __IC: vDSP_Stride,
@@ -203,7 +196,6 @@ public func vDSP_vfillD(
203196
/// - __IC: The distance between the elements in the output vector C.
204197
/// - __N: The number of elements that the function processes.
205198
@inlinable
206-
@inline(__always)
207199
public func vDSP_vabsD(
208200
_ __A: UnsafePointer<Double>,
209201
_ __IA: vDSP_Stride,
@@ -226,7 +218,6 @@ public func vDSP_vabsD(
226218
/// - __IC: The distance between the elements in the output vector C.
227219
/// - __N: The number of elements that the function processes.
228220
@inlinable
229-
@inline(__always)
230221
public func vDSP_vnegD(
231222
_ __A: UnsafePointer<Double>,
232223
_ __IA: vDSP_Stride,
@@ -243,7 +234,6 @@ public func vDSP_vnegD(
243234

244235
/// Computes the squared value of each element in the supplied double-precision vector.
245236
@inlinable
246-
@inline(__always)
247237
public func vDSP_vsqD(
248238
_ __A: UnsafePointer<Double>,
249239
_ __IA: vDSP_Stride,
@@ -267,7 +257,6 @@ public func vDSP_vsqD(
267257
/// - __C: On output, the dot product of the two vectors.
268258
/// - __N: The number of elements to process.
269259
@inlinable
270-
@inline(__always)
271260
public func vDSP_dotprD(
272261
_ __A: UnsafePointer<Double>,
273262
_ __IA: vDSP_Stride,
@@ -286,7 +275,6 @@ public func vDSP_dotprD(
286275

287276
/// Calculates the double-precision vector test limit using the specified stride.
288277
@inlinable
289-
@inline(__always)
290278
public func vDSP_vlimD(
291279
_ __A: UnsafePointer<Double>,
292280
_ __IA: vDSP_Stride,
@@ -315,7 +303,6 @@ public func vDSP_vlimD(
315303
/// - __NLow: On output, the number of elements clipped to the low-clipping threshold.
316304
/// - __NHigh: On output, the number of elements clipped to the high-clipping threshold.
317305
@inlinable
318-
@inline(__always)
319306
public func vDSP_vclipcD(
320307
_ __A: UnsafePointer<Double>,
321308
_ __IA: vDSP_Stride,
@@ -354,7 +341,6 @@ public func vDSP_vclipcD(
354341
/// Vector A is weighted by scalar *S and added to the previous output point.
355342
/// The first element from vector A is not used in the sum.
356343
@inlinable
357-
@inline(__always)
358344
public func vDSP_vrsumD(
359345
_ __A: UnsafePointer<Double>,
360346
_ __IA: vDSP_Stride,
@@ -385,7 +371,6 @@ public func vDSP_vrsumD(
385371
/// - __Order: A value that specifies the sort order. Pass 1 to specify ascending order, or -1 for descending order.
386372
#warning("If the array is bigger than Int.max, vDSP_vsortD will do nothing. Find a solution")
387373
@inlinable
388-
@inline(__always)
389374
public func vDSP_vsortD(
390375
_ __C: UnsafeMutablePointer<Double>,
391376
_ __N: vDSP_Length,
@@ -419,7 +404,6 @@ public func vDSP_vsortD(
419404
/// - __IC: The distance between the elements in the output vector.
420405
/// - __N: The number of elements that the function processes.
421406
@inlinable
422-
@inline(__always)
423407
public func vDSP_vrampD(
424408
_ __A: UnsafePointer<Double>,
425409
_ __B: UnsafePointer<Double>,
@@ -449,7 +433,6 @@ public func vDSP_vrampD(
449433
/// C[n] = A[n] <= B[n] ? A[n] : B[n];
450434
/// ```
451435
@inlinable
452-
@inline(__always)
453436
public func vDSP_vminD(
454437
_ __A: UnsafePointer<Double>,
455438
_ __IA: vDSP_Stride,
@@ -476,7 +459,6 @@ public func vDSP_vminD(
476459
/// - __IC: Stride for C.
477460
/// - __N: The number of elements to process.
478461
@inlinable
479-
@inline(__always)
480462
public func vDSP_vmaxD(
481463
_ __A: UnsafePointer<Double>,
482464
_ __IA: vDSP_Stride,
@@ -503,7 +485,6 @@ public func vDSP_vmaxD(
503485
/// - __IC: The distance between the elements in the output vector.
504486
/// - __N: The number of elements that the function processes.
505487
@inlinable
506-
@inline(__always)
507488
public func vDSP_vdivD(
508489
_ __B: UnsafePointer<Double>,
509490
_ __IB: vDSP_Stride,
@@ -529,7 +510,6 @@ public func vDSP_vdivD(
529510
/// - __IC: The distance between the elements in the output vector.
530511
/// - __N: The number of elements that the function processes.
531512
@inlinable
532-
@inline(__always)
533513
public func vDSP_vsdivD(
534514
_ __A: UnsafePointer<Double>,
535515
_ __IA: vDSP_Stride,
@@ -554,7 +534,6 @@ public func vDSP_vsdivD(
554534
/// If x is +/-0, the result preserves the signed zero.
555535
/// If x is +/-inf, the result is NaN.
556536
@inlinable
557-
@inline(__always)
558537
public func vvsin(
559538
_ y: UnsafeMutablePointer<Double>,
560539
_ x: UnsafePointer<Double>,
@@ -573,7 +552,6 @@ public func vvsin(
573552
/// - x: The input array, x.
574553
/// - n: The number of elements in the arrays.
575554
@inlinable
576-
@inline(__always)
577555
public func vvsqrt(
578556
_ y: UnsafeMutablePointer<Double>,
579557
_ x: UnsafePointer<Double>,
@@ -592,7 +570,6 @@ public func vvsqrt(
592570
/// - x: The input array, x.
593571
/// - n: The number of elements in the arrays.
594572
@inlinable
595-
@inline(__always)
596573
public func vvexp(
597574
_ y: UnsafeMutablePointer<Double>,
598575
_ x: UnsafePointer<Double>,
@@ -611,7 +588,6 @@ public func vvexp(
611588
/// - x: The input array, x.
612589
/// - n: The number of elements in the arrays.
613590
@inlinable
614-
@inline(__always)
615591
public func vvlog(
616592
_ y: UnsafeMutablePointer<Double>,
617593
_ x: UnsafePointer<Double>,

Sources/AccelerateLinux/VectorOps/VectorTransformOps.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
/// - __IC: The distance between the elements in the output vector.
1111
/// - __N: The number of elements that the function processes.
1212
@inlinable
13-
@inline(__always)
1413
public func vDSP_vdpsp(
1514
_ __A: UnsafePointer<Double>,
1615
_ __IA: vDSP_Stride,
@@ -33,7 +32,6 @@ public func vDSP_vdpsp(
3332
/// - __IC: The distance between the elements in the output vector.
3433
/// - __N: The number of elements that the function processes.
3534
@inlinable
36-
@inline(__always)
3735
public func vDSP_vspdp(
3836
_ __A: UnsafePointer<Float>,
3937
_ __IA: vDSP_Stride,

Sources/AccelerateLinux/VectorOps/vDSP+StatisticalOps.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ extension vDSP {
66
/// Returns the mean value of a double-precision vector.
77
/// - Parameter vector: The source vector.
88
@inlinable
9-
@inline(__always)
109
public static func mean<U>(_ vector: U) -> Double where U: AccelerateBuffer, U.Element == Double {
1110
sum(vector) / Double(vector.count)
1211
}

Sources/AccelerateLinux/VectorOps/vDSP.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public enum vDSP {
99
/// - vector: The input vector, A.
1010
/// - Returns: The output vector, C.
1111
@inlinable
12-
@inline(__always)
1312
public static func add<U>(
1413
_ scalar: Double,
1514
_ vector: U
@@ -32,7 +31,6 @@ public enum vDSP {
3231
/// - vectorB: The second input vector, B.
3332
/// - Returns: The output vector, C.
3433
@inlinable
35-
@inline(__always)
3634
public static func add<T, U>(
3735
_ vectorA: T,
3836
_ vectorB: U
@@ -55,7 +53,6 @@ public enum vDSP {
5553
/// Returns the double-precision vector sum.
5654
/// - Parameter vector: The vector to sum.
5755
@inlinable
58-
@inline(__always)
5956
public static func sum<U>(_ vector: U) -> Double where U: AccelerateBuffer, U.Element == Double {
6057
if vector.count == 0 { return 0.0 }
6158

@@ -111,7 +108,6 @@ public enum vDSP {
111108
/// - vectorB: The second input vector, B.
112109
/// - Returns: The output vector, C.
113110
@inlinable
114-
@inline(__always)
115111
public static func subtract<T, U>(
116112
_ vectorA: U,
117113
_ vectorB: T
@@ -136,7 +132,6 @@ public enum vDSP {
136132
/// - vectorB: The second input vector, B.
137133
/// - Returns: The output vector, C.
138134
@inlinable
139-
@inline(__always)
140135
public static func multiply<T, U>(
141136
_ vectorA: T,
142137
_ vectorB: U
@@ -161,7 +156,6 @@ public enum vDSP {
161156
/// - vectorB: The second input vector, B.
162157
/// - Returns: The output vector, C.
163158
@inlinable
164-
@inline(__always)
165159
public static func multiply<T, U>(
166160
_ vectorA: T,
167161
_ vectorB: U
@@ -186,7 +180,6 @@ public enum vDSP {
186180
/// - vector: The input vector, A.
187181
/// - Returns: The output vector, C.
188182
@inlinable
189-
@inline(__always)
190183
public static func multiply<U>(
191184
_ scalar: Double,
192185
_ vector: U

0 commit comments

Comments
 (0)