Merge pull request #148 from stephentyrone/remove-f16-muladd

Remove muladdf16 for now.
This commit is contained in:
Stephen Canon authored and GitHub committed 2020-08-24 20:32:59 -04:00
commit f764cdff4f
2 files changed
-11

No files matched your search

-5
View File
@@ -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
@@ -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