Skip to content

Commit d71dd8c

Browse files
committed
Back out concrete SIMD operators for floating-point arithmetic.
+,-,*,/ in particular are problematic because the differentiation module wants to make the differentiable, but @_aEIC functions cannot be differentiable. So we'll simply back them out for now.
1 parent 81e8e0c commit d71dd8c

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

stdlib/public/core/SIMDConcreteOperations.swift.gyb

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -211,30 +211,6 @@ extension SIMD${n} where Scalar == ${Scalar} {
211211
Builtin.fcmp_oge_${Builtin}(a._storage._value, b._storage._value)
212212
)
213213
}
214-
215-
/// The sum of two vectors.
216-
@_alwaysEmitIntoClient
217-
public static func +(a: Self, b: Self) -> Self{
218-
Self(Builtin.fadd_${Builtin}(a._storage._value, b._storage._value))
219-
}
220-
221-
/// The difference of two vectors.
222-
@_alwaysEmitIntoClient
223-
public static func -(a: Self, b: Self) -> Self{
224-
Self(Builtin.fsub_${Builtin}(a._storage._value, b._storage._value))
225-
}
226-
227-
/// The pointwise product of two vectors.
228-
@_alwaysEmitIntoClient
229-
public static func *(a: Self, b: Self) -> Self{
230-
Self(Builtin.fmul_${Builtin}(a._storage._value, b._storage._value))
231-
}
232-
233-
/// The pointwise quotient of two vectors.
234-
@_alwaysEmitIntoClient
235-
public static func /(a: Self, b: Self) -> Self{
236-
Self(Builtin.fdiv_${Builtin}(a._storage._value, b._storage._value))
237-
}
238214
}
239215
% if bits == 16:
240216
#endif

0 commit comments

Comments
 (0)