Skip to content

Commit

Permalink
Update to add leif-ibsen fixes from latest 1.21.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriebling committed Nov 16, 2024
1 parent afb70a0 commit f4c0c41
Show file tree
Hide file tree
Showing 849 changed files with 1,314 additions and 710 deletions.
24 changes: 24 additions & 0 deletions .swiftpm/BigInt.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"configurations" : [
{
"id" : "C8047937-EC00-46BD-B937-0B8D53CF0767",
"name" : "Test Scheme Action",
"options" : {

}
}
],
"defaultOptions" : {

},
"testTargets" : [
{
"target" : {
"containerPath" : "container:",
"identifier" : "BigIntTests",
"name" : "BigIntTests"
}
}
],
"version" : 1
}
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/BigInt.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1610"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
buildArchitectures = "Automatic">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BigInt"
BuildableName = "BigInt"
BlueprintName = "BigInt"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:.swiftpm/BigInt.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BigIntTests"
BuildableName = "BigIntTests"
BlueprintName = "BigIntTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BigInt"
BuildableName = "BigInt"
BlueprintName = "BigInt"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>BigInt.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>BigInt</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>BigIntTests</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
2 changes: 1 addition & 1 deletion BigInt.doccarchive/data/documentation/bigint.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion BigInt.doccarchive/data/documentation/bigint/aboutcrt.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"identifier":{"url":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutCRT","interfaceLanguage":"swift"},"sections":[],"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"modules":[{"name":"BigInt"}],"role":"article","roleHeading":"Article","title":"About CRT"},"seeAlsoSections":[{"anchor":"Articles","title":"Articles","identifiers":["doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBInt","doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBFraction","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Performance","doc:\/\/bigint.BigInt\/documentation\/BigInt\/References","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Algorithms"],"generated":true}],"primaryContentSections":[{"kind":"content","content":[{"anchor":"Overview","type":"heading","level":2,"text":"Overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Create a "},{"type":"reference","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/CRT","isActive":true},{"type":"text","text":" instance from a given set of moduli which fullfill the following conditions:"}]},{"items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"at least two moduli"}]}]},{"content":[{"inlineContent":[{"text":"all moduli are positive","type":"text"}],"type":"paragraph"}]},{"content":[{"type":"paragraph","inlineContent":[{"text":"the moduli are pairwise coprime","type":"text"}]}]}],"type":"unorderedList"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Then use the "},{"type":"codeVoice","code":"compute"},{"text":" method to compute the CRT value for a given set of residues.","type":"text"}]},{"type":"paragraph","inlineContent":[{"text":"The same CRT instance can be used for different inputs, as long as the moduli are the same.","type":"text"}]},{"anchor":"Example","level":3,"type":"heading","text":"Example"},{"syntax":"swift","type":"codeListing","code":["let moduli = [3, 5, 7]","let crt = CRT(moduli)!","","let residues = [2, 2, 6]","print(\"CRT value:\", crt.compute(residues))"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"giving:"}]},{"code":["CRT value: 62"],"syntax":"swift","type":"codeListing"}]}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/bigint\/aboutcrt"]}],"abstract":[{"type":"text","text":"Chinese Remainder Theorem"}],"hierarchy":{"paths":[["doc:\/\/bigint.BigInt\/documentation\/BigInt"]]},"kind":"article","references":{"doc://bigint.BigInt/documentation/BigInt/Algorithms":{"identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Algorithms","role":"article","kind":"article","abstract":[{"text":"Some of the algorithms used in BigInt are described below","type":"text"}],"title":"Algorithms","url":"\/documentation\/bigint\/algorithms","type":"topic"},"doc://bigint.BigInt/documentation/BigInt/References":{"type":"topic","title":"References","url":"\/documentation\/bigint\/references","role":"article","abstract":[{"text":"Algorithms from the following books and papers have been used in the implementation","type":"text"}],"identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/References","kind":"article"},"doc://bigint.BigInt/documentation/BigInt/CRT":{"title":"CRT","url":"\/documentation\/bigint\/crt","type":"topic","kind":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"CRT"}],"identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/CRT","navigatorTitle":[{"text":"CRT","kind":"identifier"}],"abstract":[{"type":"text","text":"The CRT structure"}],"role":"symbol"},"doc://bigint.BigInt/documentation/BigInt/AboutBInt":{"type":"topic","url":"\/documentation\/bigint\/aboutbint","title":"About BInt","role":"article","abstract":[{"text":"Signed integers of unbounded size","type":"text"}],"kind":"article","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBInt"},"doc://bigint.BigInt/documentation/BigInt":{"identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt","url":"\/documentation\/bigint","kind":"symbol","title":"BigInt","abstract":[{"type":"text","text":"Signed integers and fractions of unbounded size"}],"role":"collection","type":"topic"},"doc://bigint.BigInt/documentation/BigInt/Performance":{"type":"topic","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Performance","kind":"article","abstract":[{"text":"Execution times for certain BigInt operations","type":"text"}],"title":"Performance","url":"\/documentation\/bigint\/performance","role":"article"},"doc://bigint.BigInt/documentation/BigInt/AboutBFraction":{"identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBFraction","abstract":[{"text":"Signed fractions with numerator and denominator of unbounded size","type":"text"}],"url":"\/documentation\/bigint\/aboutbfraction","type":"topic","role":"article","title":"About BFraction","kind":"article"}}}
{"sections":[],"hierarchy":{"paths":[["doc:\/\/bigint.BigInt\/documentation\/BigInt"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/bigint\/aboutcrt"]}],"seeAlsoSections":[{"anchor":"Articles","title":"Articles","generated":true,"identifiers":["doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBInt","doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBFraction","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Performance","doc:\/\/bigint.BigInt\/documentation\/BigInt\/References","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Algorithms","doc:\/\/bigint.BigInt\/documentation\/BigInt\/Protocols"]}],"identifier":{"url":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutCRT","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"modules":[{"name":"BigInt"}],"title":"About CRT","role":"article","roleHeading":"Article"},"kind":"article","abstract":[{"type":"text","text":"Chinese Remainder Theorem"}],"primaryContentSections":[{"kind":"content","content":[{"type":"heading","level":2,"anchor":"Overview","text":"Overview"},{"inlineContent":[{"type":"text","text":"Create a "},{"isActive":true,"type":"reference","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/CRT"},{"type":"text","text":" instance from a given set of moduli which fullfill the following conditions:"}],"type":"paragraph"},{"type":"unorderedList","items":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"at least two moduli"}]}]},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"all moduli are positive"}]}]},{"content":[{"inlineContent":[{"text":"the moduli are pairwise coprime","type":"text"}],"type":"paragraph"}]}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"Then use the "},{"code":"compute","type":"codeVoice"},{"text":" method to compute the CRT value for a given set of residues.","type":"text"}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"The same CRT instance can be used for different inputs, as long as the moduli are the same."}]},{"level":3,"type":"heading","anchor":"Example","text":"Example"},{"code":["let moduli = [3, 5, 7]","let crt = CRT(moduli)!","","let residues = [2, 2, 6]","print(\"CRT value:\", crt.compute(residues))"],"syntax":"swift","type":"codeListing"},{"type":"paragraph","inlineContent":[{"text":"giving:","type":"text"}]},{"syntax":"swift","code":["CRT value: 62"],"type":"codeListing"}]}],"references":{"doc://bigint.BigInt/documentation/BigInt/Protocols":{"kind":"article","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Protocols","title":"Protocols and Additions","type":"topic","abstract":[{"type":"text","text":"BigInt supports the standard integer data type’s SignedInteger, BinaryInteger, Codable, and Numeric protocols."}],"url":"\/documentation\/bigint\/protocols","role":"article"},"doc://bigint.BigInt/documentation/BigInt/CRT":{"kind":"symbol","role":"symbol","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/CRT","type":"topic","url":"\/documentation\/bigint\/crt","abstract":[{"type":"text","text":"The CRT structure"}],"title":"CRT","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"CRT"}],"navigatorTitle":[{"text":"CRT","kind":"identifier"}]},"doc://bigint.BigInt/documentation/BigInt/AboutBFraction":{"identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBFraction","abstract":[{"type":"text","text":"Signed fractions with numerator and denominator of unbounded size"}],"kind":"article","title":"About BFraction","type":"topic","url":"\/documentation\/bigint\/aboutbfraction","role":"article"},"doc://bigint.BigInt/documentation/BigInt/References":{"kind":"article","abstract":[{"type":"text","text":"Algorithms from the following books and papers have been used in the implementation"}],"role":"article","url":"\/documentation\/bigint\/references","type":"topic","title":"References","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/References"},"doc://bigint.BigInt/documentation/BigInt/AboutBInt":{"kind":"article","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/AboutBInt","title":"About BInt","type":"topic","abstract":[{"type":"text","text":"Signed integers of unbounded size"}],"url":"\/documentation\/bigint\/aboutbint","role":"article"},"doc://bigint.BigInt/documentation/BigInt":{"title":"BigInt","type":"topic","url":"\/documentation\/bigint","role":"collection","kind":"symbol","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt","abstract":[{"type":"text","text":"Signed integers and fractions of unbounded size"}]},"doc://bigint.BigInt/documentation/BigInt/Algorithms":{"kind":"article","abstract":[{"type":"text","text":"Some of the algorithms used in BigInt are described below"}],"role":"article","url":"\/documentation\/bigint\/algorithms","type":"topic","title":"Algorithms","identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Algorithms"},"doc://bigint.BigInt/documentation/BigInt/Performance":{"identifier":"doc:\/\/bigint.BigInt\/documentation\/BigInt\/Performance","kind":"article","title":"Performance","role":"article","type":"topic","url":"\/documentation\/bigint\/performance","abstract":[{"type":"text","text":"Execution times for certain BigInt operations"}]}}}
Loading

0 comments on commit f4c0c41

Please sign in to comment.