From 8e3d889b5f8c2dc660eb79d01d8097f400f0371b Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Thu, 19 Aug 2021 19:35:06 -0400 Subject: [PATCH] Add deprecation warnings for old Augmented names in release/1.0 --- Sources/RealModule/AugmentedArithmetic.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/RealModule/AugmentedArithmetic.swift b/Sources/RealModule/AugmentedArithmetic.swift index 88627af..1e67b78 100644 --- a/Sources/RealModule/AugmentedArithmetic.swift +++ b/Sources/RealModule/AugmentedArithmetic.swift @@ -93,4 +93,14 @@ extension Augmented { let tail = a - head + b return (head, tail) } + + @available(*, deprecated, renamed: "product") + public static func twoProdFMA(_ a: T, _ b: T) -> (head: T, tail: T) { + product(a, b) + } + + @available(*, deprecated, renamed: "sum(large:small:)") + public static func fastTwoSum(_ a: T, _ b: T) -> (head: T, tail: T) { + sum(large: a, small: b) + } }