Skip to content

Commit 3d7462a

Browse files
Merge pull request #148 from stephentyrone/remove-f16-muladd
Remove muladdf16 for now.
2 parents 3811e3b + 0f8ef26 commit 3d7462a

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

Sources/RealModule/Float16+Real.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,5 @@ extension Float16: Real {
172172
Float16(.logGamma(Float(x)))
173173
}
174174
#endif
175-
176-
@_transparent
177-
public static func _mulAdd(_ a: Float16, _ b: Float16, _ c: Float16) -> Float16 {
178-
_numerics_muladdf16(a, b, c)
179-
}
180175
}
181176
#endif

Sources/_NumericsShims/include/_NumericsShims.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,6 @@ HEADER_SHIM long double libm_lgammal(long double x, int *signp) {
383383
#endif
384384

385385
// MARK: - fast mul-add inlines
386-
/// a*b + c evaluated _either_ as two operations or fma, whichever is faster.
387-
HEADER_SHIM _Float16 _numerics_muladdf16(_Float16 a, _Float16 b, _Float16 c) {
388-
#pragma STDC FP_CONTRACT ON
389-
return a*b + c;
390-
}
391-
392386
/// a*b + c evaluated _either_ as two operations or fma, whichever is faster.
393387
HEADER_SHIM float _numerics_muladdf(float a, float b, float c) {
394388
#pragma STDC FP_CONTRACT ON

0 commit comments

Comments
 (0)