From 1b6cca78ca1a0963c0b81e34e9517f966c7e9d7a Mon Sep 17 00:00:00 2001 From: Xiaodi Wu <13952+xwu@users.noreply.github.com> Date: Mon, 8 Jun 2020 20:14:17 -0400 Subject: [PATCH] [BigIntModule] Add copyright headers and update an outdated comment. --- Package.swift | 2 +- Sources/BigIntModule/BigInt.Words.swift | 11 +++++++++++ Sources/BigIntModule/BigInt._Significand.swift | 13 ++++++++++++- Sources/BigIntModule/BigInt.swift | 11 +++++++++++ Sources/BigIntModule/BinaryInteger.swift | 11 +++++++++++ Sources/BigIntModule/RandomNumberGenerator.swift | 11 +++++++++++ Sources/Numerics/Numerics.swift | 2 +- Tests/BigIntTests/AttaswiftBigInt.swift | 11 +++++++++++ Tests/BigIntTests/BigIntTests.swift | 11 +++++++++++ 9 files changed, 80 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 097693a0..d4650a26 100644 --- a/Package.swift +++ b/Package.swift @@ -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 diff --git a/Sources/BigIntModule/BigInt.Words.swift b/Sources/BigIntModule/BigInt.Words.swift index 267342bf..155a9642 100644 --- a/Sources/BigIntModule/BigInt.Words.swift +++ b/Sources/BigIntModule/BigInt.Words.swift @@ -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. /// diff --git a/Sources/BigIntModule/BigInt._Significand.swift b/Sources/BigIntModule/BigInt._Significand.swift index 3859b3ce..0a0b7a49 100644 --- a/Sources/BigIntModule/BigInt._Significand.swift +++ b/Sources/BigIntModule/BigInt._Significand.swift @@ -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 @@ -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. /// diff --git a/Sources/BigIntModule/BigInt.swift b/Sources/BigIntModule/BigInt.swift index 148d17a5..af3b9c00 100644 --- a/Sources/BigIntModule/BigInt.swift +++ b/Sources/BigIntModule/BigInt.swift @@ -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 diff --git a/Sources/BigIntModule/BinaryInteger.swift b/Sources/BigIntModule/BinaryInteger.swift index f9ed147d..7db16ff2 100644 --- a/Sources/BigIntModule/BinaryInteger.swift +++ b/Sources/BigIntModule/BinaryInteger.swift @@ -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() { diff --git a/Sources/BigIntModule/RandomNumberGenerator.swift b/Sources/BigIntModule/RandomNumberGenerator.swift index 95df0bc5..d5b8a44b 100644 --- a/Sources/BigIntModule/RandomNumberGenerator.swift +++ b/Sources/BigIntModule/RandomNumberGenerator.swift @@ -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 { diff --git a/Sources/Numerics/Numerics.swift b/Sources/Numerics/Numerics.swift index de0f1a50..2e14e5c8 100644 --- a/Sources/Numerics/Numerics.swift +++ b/Sources/Numerics/Numerics.swift @@ -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 diff --git a/Tests/BigIntTests/AttaswiftBigInt.swift b/Tests/BigIntTests/AttaswiftBigInt.swift index ebbaefde..f68d4d83 100644 --- a/Tests/BigIntTests/AttaswiftBigInt.swift +++ b/Tests/BigIntTests/AttaswiftBigInt.swift @@ -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 diff --git a/Tests/BigIntTests/BigIntTests.swift b/Tests/BigIntTests/BigIntTests.swift index ee9cb625..82c394d6 100644 --- a/Tests/BigIntTests/BigIntTests.swift +++ b/Tests/BigIntTests/BigIntTests.swift @@ -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