Skip to content

Commit

Permalink
[BigIntModule] Add copyright headers and update an outdated comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
xwu committed Jun 9, 2020
1 parent d91a39c commit 1b6cca7
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2019 Apple Inc. and the Swift Numerics project authors
// Copyright (c) 2019-2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
Expand Down
11 changes: 11 additions & 0 deletions Sources/BigIntModule/BigInt.Words.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//===--- BigInt.Words.swift -----------------------------------*- swift -*-===//
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//

extension BigInt {
/// The words of an arbitrarily large signed integer.
///
Expand Down
13 changes: 12 additions & 1 deletion Sources/BigIntModule/BigInt._Significand.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//===--- BigInt._Significand.swift ----------------------------*- swift -*-===//
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//

extension BigInt {
/// The significand of a `BigInt` value, a nonempty collection of the
/// significant digits of that value's magnitude stored in words of type
Expand Down Expand Up @@ -67,7 +78,7 @@ extension BigInt._Significand: RandomAccessCollection, MutableCollection {
}
}

/// `BigInt._Coefficient` can never be empty, so it cannot conform to
/// `BigInt._Significand` can never be empty, so it cannot conform to
/// `RangeReplaceableCollection`; however, we will implement some of its
/// requirements here.
///
Expand Down
11 changes: 11 additions & 0 deletions Sources/BigIntModule/BigInt.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//===--- BigInt.swift -----------------------------------------*- swift -*-===//
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//

/// An arbitrarily large signed integer.
///
/// Because there is no logical minimum or maximum value representable as a
Expand Down
11 changes: 11 additions & 0 deletions Sources/BigIntModule/BinaryInteger.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//===--- BinaryInteger.swift ----------------------------------*- swift -*-===//
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//

extension BinaryInteger {
@inlinable
internal mutating func _invert() {
Expand Down
11 changes: 11 additions & 0 deletions Sources/BigIntModule/RandomNumberGenerator.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//===--- RandomNumberGenerator.swift --------------------------*- swift -*-===//
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//

extension RandomNumberGenerator {
@usableFromInline // @inlinable
internal mutating func _next(upperBound: BigInt) -> BigInt {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Numerics/Numerics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2019 Apple Inc. and the Swift Numerics project authors
// Copyright (c) 2019-2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
Expand Down
11 changes: 11 additions & 0 deletions Tests/BigIntTests/AttaswiftBigInt.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//===--- AttaswiftBigInt.swift --------------------------------*- swift -*-===//
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//

import BigInt
typealias AttaswiftBigInt = BigInt
typealias AttaswiftBigUInt = BigUInt
11 changes: 11 additions & 0 deletions Tests/BigIntTests/BigIntTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
//===--- BigIntTests.swift ------------------------------------*- swift -*-===//
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//

import XCTest
@testable import BigIntModule

Expand Down

0 comments on commit 1b6cca7

Please sign in to comment.