From 0f8ef268d01fe0e77dcb8da46a5aa64590aa9abf Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Mon, 24 Aug 2020 20:31:40 -0400 Subject: [PATCH] Remove muladdf16 for now. --- Sources/RealModule/Float16+Real.swift | 5 ----- Sources/_NumericsShims/include/_NumericsShims.h | 6 ------ 2 files changed, 11 deletions(-) diff --git a/Sources/RealModule/Float16+Real.swift b/Sources/RealModule/Float16+Real.swift index a83b1a54..00f2a909 100644 --- a/Sources/RealModule/Float16+Real.swift +++ b/Sources/RealModule/Float16+Real.swift @@ -172,10 +172,5 @@ extension Float16: Real { Float16(.logGamma(Float(x))) } #endif - - @_transparent - public static func _mulAdd(_ a: Float16, _ b: Float16, _ c: Float16) -> Float16 { - _numerics_muladdf16(a, b, c) - } } #endif diff --git a/Sources/_NumericsShims/include/_NumericsShims.h b/Sources/_NumericsShims/include/_NumericsShims.h index 68567ed8..91b2358c 100644 --- a/Sources/_NumericsShims/include/_NumericsShims.h +++ b/Sources/_NumericsShims/include/_NumericsShims.h @@ -383,12 +383,6 @@ HEADER_SHIM long double libm_lgammal(long double x, int *signp) { #endif // MARK: - fast mul-add inlines -/// a*b + c evaluated _either_ as two operations or fma, whichever is faster. -HEADER_SHIM _Float16 _numerics_muladdf16(_Float16 a, _Float16 b, _Float16 c) { -#pragma STDC FP_CONTRACT ON - return a*b + c; -} - /// a*b + c evaluated _either_ as two operations or fma, whichever is faster. HEADER_SHIM float _numerics_muladdf(float a, float b, float c) { #pragma STDC FP_CONTRACT ON