Skip to content

Commit 4498b28

Browse files
committed
Fix importer support for Float80 - add missing #if block
1 parent 9bda1e5 commit 4498b28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

stdlib/public/Platform/tgmath.swift.gyb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,16 @@ public func ${ufunc}(_ x: ${T}) -> ${T} {
203203
// UnaryFunctions, we define overlays only for OverlayFloatTypes.
204204
% for ufunc in UnaryIntrinsicFunctions:
205205
% for T, CT, f in OverlayFloatTypes():
206+
% if T == 'Float80':
207+
#if arch(i386) || arch(x86_64)
208+
% end
206209
@_transparent
207210
public func ${ufunc}(_ x: ${T}) -> ${T} {
208211
return ${T}(${ufunc}${f}(${CT}(x)))
209212
}
210-
213+
% if T == 'Float80':
214+
#endif
215+
% end
211216
% end
212217
% end
213218
#endif

0 commit comments

Comments
 (0)