mirror of
https://github.com/apple/swift-numerics
synced 2026-11-22 04:30:45 +00:00
Enable and include Builtin module to pickup fadd/fmul_relaxed.
This commit is contained in:
1 parent
20fe3d7d8e
commit
673c0f6c3d
5 files changed
+7
No files matched your search
@@ -47,6 +47,9 @@ let package = Package(
|
||||
name: "RealModule",
|
||||
dependencies: ["_NumericsShims"],
|
||||
exclude: excludedFilenames,
|
||||
swiftSettings: [
|
||||
.enableExperimentalFeature("BuiltinModule")
|
||||
],
|
||||
linkerSettings: [
|
||||
.linkedLibrary("m", .when(platforms: [.linux, .android]))
|
||||
]
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import _NumericsShims
|
||||
import Builtin
|
||||
|
||||
extension Double: Real {
|
||||
@_transparent
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import _NumericsShims
|
||||
import Builtin
|
||||
|
||||
extension Float: Real {
|
||||
@_transparent
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import _NumericsShims
|
||||
import Builtin
|
||||
|
||||
// Float16 is only available on macOS when targeting arm64.
|
||||
#if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64))
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import _NumericsShims
|
||||
import Builtin
|
||||
|
||||
// Restrict extension to platforms for which Float80 exists.
|
||||
#if (arch(i386) || arch(x86_64)) && !os(Windows) && !os(Android)
|
||||
|
||||
Reference in new issue
Block a user