Large number arithmetic in Swift.
Swift | iOS | iPadOS | Mac Catalyst | macOS | tvOS | watchOS |
---|---|---|---|---|---|---|
5.7 | 13.0 | 13.0 | 13.0 | 10.15 | 13.0 | 6.0 |
ANKFullWidth (Sources, Tests, Benchmarks)
A composable, large, fixed-width, two's complement, binary integer.
🧩 | Composable |
💕 | Two's Complement |
🏰 | Fixed Width Integer |
🚀 | Fast Digit Arithmetic |
typealias Int256 = ANKFullWidth< Int128, UInt128>
typealias UInt256 = ANKFullWidth<UInt128, UInt128>
ANKSigned (Sources, Tests, Benchmarks)
A decorative, width agnostic, sign-and-magnitude, numeric integer.
🎀 | Decorative |
🪐 | Sign & Magnitude |
💯 | Numeric |
🚀 | Fast Digit Arithmetic |