mirror of
https://github.com/apple/swift-numerics
synced 2026-11-27 05:04:26 +00:00
Merge pull request #148 from stephentyrone/remove-f16-muladd
Remove muladdf16 for now.
This commit is contained in:
2 files changed
-11
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user