16
16
17
17
import SwiftShims
18
18
19
- // FIXME: Remove @usableFromInline once Hasher is resilient.
20
- // rdar://problem/38549901
21
- @usableFromInline
22
19
internal protocol _HasherCore {
23
20
init ( rawSeed: ( UInt64 , UInt64 ) )
24
21
mutating func compress( _ value: UInt64 )
@@ -84,9 +81,6 @@ internal func _loadPartialUnalignedUInt64LE(
84
81
/// trailing bytes, while the most significant 8 bits hold the count of bytes
85
82
/// appended so far, modulo 256. The count of bytes currently stored in the
86
83
/// buffer is in the lower three bits of the byte count.)
87
- // FIXME: Remove @usableFromInline and @_fixed_layout once Hasher is resilient.
88
- // rdar://problem/38549901
89
- @usableFromInline @_fixed_layout
90
84
internal struct _HasherTailBuffer {
91
85
// msb lsb
92
86
// +---------+-------+-------+-------+-------+-------+-------+-------+
@@ -140,8 +134,7 @@ internal struct _HasherTailBuffer {
140
134
}
141
135
142
136
@inline ( __always)
143
- internal
144
- mutating func append( _ bytes: UInt64 , count: UInt64 ) -> UInt64 ? {
137
+ internal mutating func append( _ bytes: UInt64 , count: UInt64 ) -> UInt64 ? {
145
138
_sanityCheck ( count >= 0 && count < 8 )
146
139
_sanityCheck ( bytes & ~ ( ( 1 &<< ( count &<< 3 ) ) &- 1 ) == 0 )
147
140
let c = byteCount & 7
@@ -159,9 +152,6 @@ internal struct _HasherTailBuffer {
159
152
}
160
153
}
161
154
162
- // FIXME: Remove @usableFromInline and @_fixed_layout once Hasher is resilient.
163
- // rdar://problem/38549901
164
- @usableFromInline @_fixed_layout
165
155
internal struct _BufferingHasher < RawCore: _HasherCore > {
166
156
private var _buffer : _HasherTailBuffer
167
157
private var _core : RawCore
@@ -296,13 +286,7 @@ internal struct _BufferingHasher<RawCore: _HasherCore> {
296
286
/// algorithm implemented by `Hasher` may itself change between any two
297
287
/// versions of the standard library.
298
288
public struct Hasher {
299
- // FIXME: Remove @usableFromInline once Hasher is resilient.
300
- // rdar://problem/38549901
301
- @usableFromInline
302
289
internal typealias RawCore = _SipHash13Core
303
- // FIXME: Remove @usableFromInline once Hasher is resilient.
304
- // rdar://problem/38549901
305
- @usableFromInline
306
290
internal typealias Core = _BufferingHasher < RawCore >
307
291
308
292
internal var _core : Core
0 commit comments