mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 18:08:51 +08:00 
			
		
		
		
	Bump github.com/containers/storage from 1.33.1 to 1.34.0
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.33.1 to 1.34.0. - [Release notes](https://github.com/containers/storage/releases) - [Changelog](https://github.com/containers/storage/blob/main/docs/containers-storage-changes.md) - [Commits](https://github.com/containers/storage/compare/v1.33.1...v1.34.0) --- updated-dependencies: - dependency-name: github.com/containers/storage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
		
							
								
								
									
										37
									
								
								vendor/github.com/klauspost/compress/zstd/enc_fast.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										37
									
								
								vendor/github.com/klauspost/compress/zstd/enc_fast.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -11,12 +11,13 @@ import ( | ||||
| ) | ||||
|  | ||||
| const ( | ||||
| 	tableBits      = 15                               // Bits used in the table | ||||
| 	tableSize      = 1 << tableBits                   // Size of the table | ||||
| 	tableShardCnt  = 1 << (tableBits - dictShardBits) // Number of shards in the table | ||||
| 	tableShardSize = tableSize / tableShardCnt        // Size of an individual shard | ||||
| 	tableMask      = tableSize - 1                    // Mask for table indices. Redundant, but can eliminate bounds checks. | ||||
| 	maxMatchLength = 131074 | ||||
| 	tableBits        = 15                               // Bits used in the table | ||||
| 	tableSize        = 1 << tableBits                   // Size of the table | ||||
| 	tableShardCnt    = 1 << (tableBits - dictShardBits) // Number of shards in the table | ||||
| 	tableShardSize   = tableSize / tableShardCnt        // Size of an individual shard | ||||
| 	tableFastHashLen = 6 | ||||
| 	tableMask        = tableSize - 1 // Mask for table indices. Redundant, but can eliminate bounds checks. | ||||
| 	maxMatchLength   = 131074 | ||||
| ) | ||||
|  | ||||
| type tableEntry struct { | ||||
| @ -122,8 +123,8 @@ encodeLoop: | ||||
| 				panic("offset0 was 0") | ||||
| 			} | ||||
|  | ||||
| 			nextHash := hash6(cv, hashLog) | ||||
| 			nextHash2 := hash6(cv>>8, hashLog) | ||||
| 			nextHash := hashLen(cv, hashLog, tableFastHashLen) | ||||
| 			nextHash2 := hashLen(cv>>8, hashLog, tableFastHashLen) | ||||
| 			candidate := e.table[nextHash] | ||||
| 			candidate2 := e.table[nextHash2] | ||||
| 			repIndex := s - offset1 + 2 | ||||
| @ -301,7 +302,7 @@ encodeLoop: | ||||
| 			} | ||||
|  | ||||
| 			// Store this, since we have it. | ||||
| 			nextHash := hash6(cv, hashLog) | ||||
| 			nextHash := hashLen(cv, hashLog, tableFastHashLen) | ||||
| 			e.table[nextHash] = tableEntry{offset: s + e.cur, val: uint32(cv)} | ||||
| 			seq.matchLen = uint32(l) - zstdMinMatch | ||||
| 			seq.litLen = 0 | ||||
| @ -405,8 +406,8 @@ encodeLoop: | ||||
| 		// By not using them for the first 3 matches | ||||
|  | ||||
| 		for { | ||||
| 			nextHash := hash6(cv, hashLog) | ||||
| 			nextHash2 := hash6(cv>>8, hashLog) | ||||
| 			nextHash := hashLen(cv, hashLog, tableFastHashLen) | ||||
| 			nextHash2 := hashLen(cv>>8, hashLog, tableFastHashLen) | ||||
| 			candidate := e.table[nextHash] | ||||
| 			candidate2 := e.table[nextHash2] | ||||
| 			repIndex := s - offset1 + 2 | ||||
| @ -589,7 +590,7 @@ encodeLoop: | ||||
| 			} | ||||
|  | ||||
| 			// Store this, since we have it. | ||||
| 			nextHash := hash6(cv, hashLog) | ||||
| 			nextHash := hashLen(cv, hashLog, tableFastHashLen) | ||||
| 			e.table[nextHash] = tableEntry{offset: s + e.cur, val: uint32(cv)} | ||||
| 			seq.matchLen = uint32(l) - zstdMinMatch | ||||
| 			seq.litLen = 0 | ||||
| @ -715,8 +716,8 @@ encodeLoop: | ||||
| 				panic("offset0 was 0") | ||||
| 			} | ||||
|  | ||||
| 			nextHash := hash6(cv, hashLog) | ||||
| 			nextHash2 := hash6(cv>>8, hashLog) | ||||
| 			nextHash := hashLen(cv, hashLog, tableFastHashLen) | ||||
| 			nextHash2 := hashLen(cv>>8, hashLog, tableFastHashLen) | ||||
| 			candidate := e.table[nextHash] | ||||
| 			candidate2 := e.table[nextHash2] | ||||
| 			repIndex := s - offset1 + 2 | ||||
| @ -896,7 +897,7 @@ encodeLoop: | ||||
| 			} | ||||
|  | ||||
| 			// Store this, since we have it. | ||||
| 			nextHash := hash6(cv, hashLog) | ||||
| 			nextHash := hashLen(cv, hashLog, tableFastHashLen) | ||||
| 			e.table[nextHash] = tableEntry{offset: s + e.cur, val: uint32(cv)} | ||||
| 			e.markShardDirty(nextHash) | ||||
| 			seq.matchLen = uint32(l) - zstdMinMatch | ||||
| @ -957,9 +958,9 @@ func (e *fastEncoderDict) Reset(d *dict, singleBlock bool) { | ||||
| 				const hashLog = tableBits | ||||
|  | ||||
| 				cv := load6432(d.content, i-e.maxMatchOff) | ||||
| 				nextHash := hash6(cv, hashLog)      // 0 -> 5 | ||||
| 				nextHash1 := hash6(cv>>8, hashLog)  // 1 -> 6 | ||||
| 				nextHash2 := hash6(cv>>16, hashLog) // 2 -> 7 | ||||
| 				nextHash := hashLen(cv, hashLog, tableFastHashLen)      // 0 -> 5 | ||||
| 				nextHash1 := hashLen(cv>>8, hashLog, tableFastHashLen)  // 1 -> 6 | ||||
| 				nextHash2 := hashLen(cv>>16, hashLog, tableFastHashLen) // 2 -> 7 | ||||
| 				e.dictTable[nextHash] = tableEntry{ | ||||
| 					val:    uint32(cv), | ||||
| 					offset: i, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	![49699333+dependabot[bot]@users.noreply.github.com](/assets/img/avatar_default.png) dependabot[bot]
					dependabot[bot]