Implementation of Int128 and UInt128 for Swift.
Requires Swift 5.1, all platforms supported.
Current version 0.0.2
To use the Integer128
library in a SwiftPM project,
add the following line to the dependencies in your Package.swift
file:
.package(url: "https://github.com/spevans/swift-integer128", .branch("main")),
Then include "Integer128"
as a dependency for your executable target:
.product(name: "Integer128", package: "swift-integer128")
let package = Package(
name: "int128test",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(name: "Int128Lib", targets: ["Int128Lib"]),
.executable(
name: "int128test",
targets: ["int128test"]),
],
dependencies: [
.package(url: "https://github.com/spevans/swift-integer128", .branch("main")),
],
targets: [
.target(
name: "int128test",
dependencies: [ "Int128Lib"]),
.target(
name: "Int128Lib",
dependencies: [.product(name: "Integer128", package: "swift-integer128")]),
]
)
Copyright (c) 2019 - 2020 Simon Evans.