mirror of
https://git.mirrors.martin98.com/https://github.com/ceph/ceph-csi.git
synced 2025-08-03 19:40:38 +08:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps the github-dependencies group with 4 updates in the / directory: [github.com/aws/aws-sdk-go-v2/service/sts](https://github.com/aws/aws-sdk-go-v2), [github.com/kubernetes-csi/csi-lib-utils](https://github.com/kubernetes-csi/csi-lib-utils), [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) and [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang). Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.30.3 to 1.30.4 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.30.3...v1.30.4) Updates `github.com/kubernetes-csi/csi-lib-utils` from 0.18.1 to 0.19.0 - [Release notes](https://github.com/kubernetes-csi/csi-lib-utils/releases) - [Commits](https://github.com/kubernetes-csi/csi-lib-utils/compare/v0.18.1...v0.19.0) Updates `github.com/onsi/ginkgo/v2` from 2.19.1 to 2.20.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.19.1...v2.20.0) Updates `github.com/prometheus/client_golang` from 1.19.1 to 1.20.1 - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/v1.20.1/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.19.1...v1.20.1) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/sts dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies - dependency-name: github.com/kubernetes-csi/csi-lib-utils dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
66 lines
1.6 KiB
Go
66 lines
1.6 KiB
Go
//go:build amd64 && !appengine && !noasm && gc
|
|
// +build amd64,!appengine,!noasm,gc
|
|
|
|
package zstd
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type buildDtableAsmContext struct {
|
|
// inputs
|
|
stateTable *uint16
|
|
norm *int16
|
|
dt *uint64
|
|
|
|
// outputs --- set by the procedure in the case of error;
|
|
// for interpretation please see the error handling part below
|
|
errParam1 uint64
|
|
errParam2 uint64
|
|
}
|
|
|
|
// buildDtable_asm is an x86 assembly implementation of fseDecoder.buildDtable.
|
|
// Function returns non-zero exit code on error.
|
|
//
|
|
//go:noescape
|
|
func buildDtable_asm(s *fseDecoder, ctx *buildDtableAsmContext) int
|
|
|
|
// please keep in sync with _generate/gen_fse.go
|
|
const (
|
|
errorCorruptedNormalizedCounter = 1
|
|
errorNewStateTooBig = 2
|
|
errorNewStateNoBits = 3
|
|
)
|
|
|
|
// buildDtable will build the decoding table.
|
|
func (s *fseDecoder) buildDtable() error {
|
|
ctx := buildDtableAsmContext{
|
|
stateTable: &s.stateTable[0],
|
|
norm: &s.norm[0],
|
|
dt: (*uint64)(&s.dt[0]),
|
|
}
|
|
code := buildDtable_asm(s, &ctx)
|
|
|
|
if code != 0 {
|
|
switch code {
|
|
case errorCorruptedNormalizedCounter:
|
|
position := ctx.errParam1
|
|
return fmt.Errorf("corrupted input (position=%d, expected 0)", position)
|
|
|
|
case errorNewStateTooBig:
|
|
newState := decSymbol(ctx.errParam1)
|
|
size := ctx.errParam2
|
|
return fmt.Errorf("newState (%d) outside table size (%d)", newState, size)
|
|
|
|
case errorNewStateNoBits:
|
|
newState := decSymbol(ctx.errParam1)
|
|
oldState := decSymbol(ctx.errParam2)
|
|
return fmt.Errorf("newState (%d) == oldState (%d) and no bits", newState, oldState)
|
|
|
|
default:
|
|
return fmt.Errorf("buildDtable_asm returned unhandled nonzero code = %d", code)
|
|
}
|
|
}
|
|
return nil
|
|
}
|