Skip to content

Commit 313ab72

Browse files
committed
No longer need pre-5.4 clang workaround.
1 parent 30c01a9 commit 313ab72

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Sources/_NumericsShims/include/_NumericsShims.h

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

385385
// MARK: - math inlines with relaxed semantics to support optimization.
386-
#if __swift__ >= 50400
387386
#define CLANG_RELAX_FP _Pragma("clang fp reassociate(on) contract(fast)")
388-
#else
389-
// reassociate(on) isn't supported by the clang in pre-swift-5.4 toolchains.
390-
#define CLANG_RELAX_FP _Pragma("clang fp contract(fast)")
391-
#endif
392387

393388
#if !(__i386__ || __x86_64__)
394389
/// a*b + c evaluated _either_ as two operations or fma, whichever is faster.

0 commit comments

Comments
 (0)