{"id":16688109,"url":"https://github.com/skywinder/tinybigintswift","last_synced_at":"2025-10-20T02:55:03.670Z","repository":{"id":70009252,"uuid":"146219156","full_name":"skywinder/TinyBigIntSwift","owner":"skywinder","description":"Big Int types in pure Swift","archived":false,"fork":false,"pushed_at":"2018-10-05T15:55:29.000Z","size":123,"stargazers_count":0,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-13T17:27:34.920Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skywinder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-26T21:53:38.000Z","updated_at":"2021-02-10T13:28:36.000Z","dependencies_parsed_at":"2023-02-22T19:00:37.007Z","dependency_job_id":null,"html_url":"https://github.com/skywinder/TinyBigIntSwift","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/skywinder/TinyBigIntSwift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywinder%2FTinyBigIntSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywinder%2FTinyBigIntSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywinder%2FTinyBigIntSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywinder%2FTinyBigIntSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skywinder","download_url":"https://codeload.github.com/skywinder/TinyBigIntSwift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywinder%2FTinyBigIntSwift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267278631,"owners_count":24063252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T15:26:53.687Z","updated_at":"2025-10-20T02:54:58.616Z","avatar_url":"https://github.com/skywinder.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TinyBigInt\n\n[![Language](https://img.shields.io/badge/swift-4-orange.svg)](https://swift.org)\n[![License](https://img.shields.io/badge/licence-MIT-orange.svg)](http://cocoapods.org/pods/TinyBigInt)\n[![Platform](https://img.shields.io/cocoapods/p/TinyBigInt.svg)](http://cocoapods.org/pods/TinyBigInt)\n\n[![Build Status](https://travis-ci.org/matterinc/TinyBigInt.svg?branch=master)](https://travis-ci.org/matterinc/TinyBigInt)\n[![Code Coverage](https://codecov.io/github/matterinc/TinyBigInt/coverage.svg?branch=master)](https://codecov.io/github/matterinc/TinyBigInt?branch=master)\n[![Version](https://img.shields.io/cocoapods/v/TinyBigInt.svg)](http://cocoapods.org/pods/TinyBigInt)\n\n## \u003ca name=\"overview\"\u003eOverview\u003c/a\u003e\nA Big Ints library written in pure Swift 4.\n\nThis project provides [integer types of arbitrary width][wiki] implemented in 100% pure Swift.\n\n[wiki]: https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic\n\nNow only one integer type is included - [`BigUInt`][BigUInt]. It is the Swift struct with copy-on-write value semantics, and it can be used much like any other integer type.\n\nThe library provides implementations for the most useful functions on big integers, including:\n\n- All functionality of [`Comparable`][comparison] and [`Hashable`][hashing]\n\n- [ALL arithmetic operators][addition]: `+`, `-`, `*`, `/`, `%`, `+=`, `-=`, `*=`, `/=`, `%=`\n\n- [Bitwise operators][bitwise]: `~`, `|`, `\u0026`, `^`, `|=`, `\u0026=`, `^=`, plus the following read-only properties:\n- [`width`][width]: the minimum number of bits required to store the integer,\n- [`trailingZeroBitCount`][trailingZeroBitCount]: the number of trailing zero bits in the binary representation,\n- [`leadingZeroBitCount`][leadingZeroBitCount]: the number of leading zero bits (when the last digit isn't full),\n\n- [Shift operators][shift]: `\u003e\u003e`, `\u003c\u003c`, `\u003e\u003e=`, `\u003c\u003c=`\n\n- Radix conversion to/from [`String`s][radix1] and [big integers][radix2].\n\nThe library needs to be 100% unit test coveraged.\n\n## \u003ca name=\"license\"\u003eLicense\u003c/a\u003e\n\nTinyBigInt can be used, distributed and modified under [the MIT license][license].\n\n## \u003ca name=\"integration\"\u003eRequirements and Integration\u003c/a\u003e\n\nTinyBigInt 1.0.0 requires Swift 4.\n\nBigInt deploys to macOS 10.10, iOS 9, watchOS 2 and tvOS 9.\n\nSetup instructions:\n\n- **Swift Package Manager:**\n  Although the Package Manager is still in its infancy, BigInt provides experimental support for it.\n  Add this to the dependency section of your `Package.swift` manifest:\n\n    ```Swift\n    .Package(url: \"https://github.com/matterinc/TinyBigInt.git\", from: \"1.0.0\")\n    ```\n\n- **CocoaPods:** Put this in your `Podfile`:\n\n    ```Ruby\n    pod 'TinyBigInt', '~\u003e 1.0'\n    ```\n\n[license]: https://github.com/matterinc/TinyBigInt/blob/master/LICENSE.md\n[BigUInt]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html\n[BigInt]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigInt.html\n[comparison]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/Comparison\n[hashing]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/Hashing\n[addition]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/Addition\n[subtraction]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/Subtraction\n[mul]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/s:ZFV6BigInt7BigUIntoi1mFTS0_S0__S0_\n[multiplication]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/Multiplication\n[division]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/Division\n[divide]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/s:FV6BigInt7BigUInt7dividedFT2byS0__T8quotientS0_9remainderS0__\n[bitwise]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/Bitwise%20Operations\n[width]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/s:vV6BigInt7BigUInt5widthSi\n[leadingZeroBitCount]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/s:vV6BigInt7BigUInt13leadingZeroBitCountSi\n[trailingZeroBitCount]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/s:vV6BigInt7BigUInt14trailingZeroBitCountSi\n[shift]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/Shift%20Operators\n[radix1]: http://matterinc.github.io/TinyBigInt/Extensions/String.html#/s:FE6BigIntSScFTVS_7BigUInt5radixSi9uppercaseSb_SS\n[radix2]: http://matterinc.github.io/TinyBigInt/Structs/TinyBigUInt.html#/s:FV6BigInt7BigUIntcFTSS5radixSi_GSqS0__\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskywinder%2Ftinybigintswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskywinder%2Ftinybigintswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskywinder%2Ftinybigintswift/lists"}