//go:build amd64 && !appengine && !noasm && gc// +build amd64,!appengine,!noasm,gcpackage zstdimport ()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:noescapefunc buildDtable_asm( *fseDecoder, *buildDtableAsmContext) int// please keep in sync with _generate/gen_fse.goconst ( errorCorruptedNormalizedCounter = 1 errorNewStateTooBig = 2 errorNewStateNoBits = 3)// buildDtable will build the decoding table.func ( *fseDecoder) () error { := buildDtableAsmContext{stateTable: &.stateTable[0],norm: &.norm[0],dt: (*uint64)(&.dt[0]), } := buildDtable_asm(, &)if != 0 {switch {caseerrorCorruptedNormalizedCounter: := .errParam1returnfmt.Errorf("corrupted input (position=%d, expected 0)", )caseerrorNewStateTooBig: := decSymbol(.errParam1) := .errParam2returnfmt.Errorf("newState (%d) outside table size (%d)", , )caseerrorNewStateNoBits: := decSymbol(.errParam1) := decSymbol(.errParam2)returnfmt.Errorf("newState (%d) == oldState (%d) and no bits", , )default:returnfmt.Errorf("buildDtable_asm returned unhandled nonzero code = %d", ) } }returnnil}
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.