mirror of
https://github.com/apple/swift-numerics
synced 2026-11-27 05:04:26 +00:00
Remove _mulAdd in favor of Relaxed.multiplyAdd.
This commit is contained in:
1 parent
313ab7266a
commit
f6b0aeb607
7 files changed
+5
-43
No files matched your search
@@ -124,12 +124,12 @@ extension Complex: AlgebraicField {
|
||||
return nil
|
||||
}
|
||||
|
||||
@inlinable
|
||||
@_transparent
|
||||
public static func _relaxedAdd(_ a: Self, _ b: Self) -> Self {
|
||||
Complex(Relaxed.sum(a.x, b.x), Relaxed.sum(a.y, b.y))
|
||||
}
|
||||
|
||||
@inlinable
|
||||
@_transparent
|
||||
public static func _relaxedMul(_ a: Self, _ b: Self) -> Self {
|
||||
Complex(
|
||||
Relaxed.sum(Relaxed.product(a.x, b.x), -Relaxed.product(a.y, b.y)),
|
||||
|
||||
Reference in new issue
Block a user