Skip to content

Commit d777a9b

Browse files
committed
[stdlib] Hasher._Core: Force-inline compress and finalize
These accidentally lost their @inline(__always) attributes during the reshuffle.
1 parent 7b7b2e9 commit d777a9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/SipHash.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,14 @@ extension Hasher._Core {
105105
executionSeed.1))
106106
}
107107

108+
@inline(__always)
108109
internal mutating func compress(_ m: UInt64) {
109110
_state.v3 ^= m
110111
_state._round()
111112
_state.v0 ^= m
112113
}
113114

115+
@inline(__always)
114116
internal mutating func finalize(tailAndByteCount: UInt64) -> UInt64 {
115117
compress(tailAndByteCount)
116118
_state.v2 ^= 0xff

0 commit comments

Comments
 (0)