MSP-8976 Up deps

This commit is contained in:
Иван Перлов committed 2026-11-20 17:19:44 +03:00
1 parent b8ef777339
commit 11d705124d
603 files changed
+47715 -13202

No files matched your search

+4 -5
View File
@@ -1,4 +1,4 @@
//go:build (!amd64 && !arm64) || appengine || !gc || noasm
//go:build (!amd64 && !arm64) || !gc || noasm
package zstd
@@ -7,8 +7,8 @@ import (
"fmt"
)
// buildDtable will build the decoding table.
func (s *fseDecoder) buildDtable() error {
// fillDtable fills the decoding table; see buildDtable.
func (s *fseDecoder) fillDtable(ext *symbolExt) error {
tableSize := uint32(1 << s.actualTableLog)
highThreshold := tableSize - 1
symbolNext := s.stateTable[:256]
@@ -56,7 +56,6 @@ func (s *fseDecoder) buildDtable() error {
nextState := symbolNext[symbol]
symbolNext[symbol] = nextState + 1
nBits := s.actualTableLog - byte(highBits(uint32(nextState)))
s.dt[u&maxTableMask].setNBits(nBits)
newState := (nextState << nBits) - tableSize
if newState > tableSize {
return fmt.Errorf("newState (%d) outside table size (%d)", newState, tableSize)
@@ -65,7 +64,7 @@ func (s *fseDecoder) buildDtable() error {
// Seems weird that this is possible with nbits > 0.
return fmt.Errorf("newState (%d) == oldState (%d) and no bits", newState, u)
}
s.dt[u&maxTableMask].setNewState(newState)
s.dt[u&maxTableMask] = ext[symbol] | decSymbol(nBits) | decSymbol(newState)<<16
}
}
return nil