We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46619b4 commit 5bfe9e1Copy full SHA for 5bfe9e1
Sources/RealModule/Float16+Real.swift
@@ -173,6 +173,10 @@ extension Float16: Real {
173
}
174
#endif
175
176
+ #if !arch(wasm32)
177
+ // WASM doesn't have _Float16 on the C side, so we can't define the C hooks
178
+ // that these use. TODO: implement these as Swift builtins instead.
179
+
180
@_transparent
181
public static func _relaxedAdd(_ a: Float16, _ b: Float16) -> Float16 {
182
_numerics_relaxed_addf16(a, b)
@@ -182,6 +186,7 @@ extension Float16: Real {
186
public static func _relaxedMul(_ a: Float16, _ b: Float16) -> Float16 {
183
187
_numerics_relaxed_mulf16(a, b)
184
188
189
+ #endif
185
190
191
192
0 commit comments