Skip to content

Commit

Permalink
delete internal keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
tayloraswift committed Jun 3, 2024
1 parent 44ebe38 commit 01d4e1d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions Sources/MD5/MD5.Block.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extension MD5
public
var words:Words

@inlinable internal
@inlinable
init(words:Words = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
{
self.words = words
Expand All @@ -24,7 +24,7 @@ extension MD5
}
extension MD5.Block
{
@inlinable internal
@inlinable
subscript(word:Int) -> UInt32
{
get
Expand All @@ -45,7 +45,7 @@ extension MD5.Block
}
extension MD5.Block
{
@inlinable internal static
@inlinable static
func copy(from bytes:some Collection<UInt8>) -> Self
{
withUnsafeTemporaryAllocation(
Expand All @@ -62,7 +62,7 @@ extension MD5.Block
return block
}
}
@inlinable internal static
@inlinable static
func copy(last bytes:some Collection<UInt8>, length:Int) -> (Self, Self?)
{
// Zero-initialize
Expand Down
14 changes: 7 additions & 7 deletions Sources/MD5/MD5.Words.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extension MD5
public
var d:UInt32

@inlinable internal
@inlinable
init(
a:UInt32 = 0x6745_2301,
b:UInt32 = 0xefcd_ab89,
Expand All @@ -28,7 +28,7 @@ extension MD5
}
extension MD5.Words
{
@inlinable internal
@inlinable
init(littleEndian storage:MD5.Storage)
{
self.init(
Expand All @@ -38,7 +38,7 @@ extension MD5.Words
d: .init(littleEndian: storage.3))
}

@inlinable internal
@inlinable
var littleEndian:MD5.Storage
{
(
Expand All @@ -51,15 +51,15 @@ extension MD5.Words
}
extension MD5.Words
{
@usableFromInline internal static
@usableFromInline static
let shifts:[Int] =
[
7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21,
]
@usableFromInline internal static
@usableFromInline static
let table:[UInt32] =
[
0xd76a_a478, 0xe8c7_b756, 0x2420_70db, 0xc1bd_ceee,
Expand All @@ -82,7 +82,7 @@ extension MD5.Words
}
extension MD5.Words
{
@inlinable internal mutating
@inlinable mutating
func update(with block:MD5.Block)
{
var a:UInt32 = self.a
Expand Down Expand Up @@ -131,7 +131,7 @@ extension MD5.Words
}
}

@inlinable internal static
@inlinable static
func rotate(_ value:UInt32, left shift:Int) -> UInt32
{
(value << shift) | (value >> (UInt32.bitWidth - shift))
Expand Down
6 changes: 3 additions & 3 deletions Sources/MD5/MD5.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@frozen public
struct MD5:Equatable, Hashable, Sendable
{
@usableFromInline internal
@usableFromInline
typealias Storage = (UInt32, UInt32, UInt32, UInt32)

@usableFromInline internal
@usableFromInline
var buffer:InlineBuffer<Storage>

@inlinable internal
@inlinable
init(buffer:InlineBuffer<Storage>)
{
self.buffer = buffer
Expand Down

0 comments on commit 01d4e1d

Please sign in to comment.