Skip to content

Commit

Permalink
Merge pull request #148 from stephentyrone/remove-f16-muladd
Browse files Browse the repository at this point in the history
Remove muladdf16 for now.
  • Loading branch information
stephentyrone authored Aug 25, 2020
2 parents 3811e3b + 0f8ef26 commit 3d7462a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions Sources/RealModule/Float16+Real.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 0 additions & 6 deletions Sources/_NumericsShims/include/_NumericsShims.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d7462a

Please sign in to comment.