The live tests reached one shared bus and assert, read and remove the mesh's own objects by their fixed names, so packages run in parallel deleted what each other read and the suite passed only one package at a time; a red suite read as noise. internal/testbus starts a server per test, linked in at the nats-server release go.mod pins, and a test holds that pin to the catalogue's bus image and to the facts snapshot's bus when there is one, so the tests never run a bus the mesh does not. The waiter test read a timing (the most connections held at one look) and now reads the state it means (the fewest held across the wait). make check runs the packages in parallel under the race detector, with a timeout.
229 lines
8.5 KiB
Go
229 lines
8.5 KiB
Go
// Code generated by command: go run gen.go -out ../encodeblock_amd64.s -stubs ../encodeblock_asm.go -pkg=s2. DO NOT EDIT.
|
|
|
|
//go:build (amd64 || arm64) && !appengine && !noasm && gc && !noasm
|
|
|
|
package s2
|
|
|
|
func _dummy_()
|
|
|
|
// encodeBlockAsm encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4294967295 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeBlockAsm(dst []byte, src []byte, tmp *[65536]byte) int
|
|
|
|
// encodeBlockAsm4MB encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4194304 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeBlockAsm4MB(dst []byte, src []byte, tmp *[65536]byte) int
|
|
|
|
// encodeBlockAsm12B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 16383 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeBlockAsm12B(dst []byte, src []byte, tmp *[16384]byte) int
|
|
|
|
// encodeBlockAsm10B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4095 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeBlockAsm10B(dst []byte, src []byte, tmp *[4096]byte) int
|
|
|
|
// encodeBlockAsm8B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 511 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeBlockAsm8B(dst []byte, src []byte, tmp *[1024]byte) int
|
|
|
|
// encodeBetterBlockAsm encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4294967295 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeBetterBlockAsm(dst []byte, src []byte, tmp *[589824]byte) int
|
|
|
|
// encodeBetterBlockAsm4MB encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4194304 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeBetterBlockAsm4MB(dst []byte, src []byte, tmp *[589824]byte) int
|
|
|
|
// encodeBetterBlockAsm12B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 16383 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeBetterBlockAsm12B(dst []byte, src []byte, tmp *[81920]byte) int
|
|
|
|
// encodeBetterBlockAsm10B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4095 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeBetterBlockAsm10B(dst []byte, src []byte, tmp *[20480]byte) int
|
|
|
|
// encodeBetterBlockAsm8B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 511 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeBetterBlockAsm8B(dst []byte, src []byte, tmp *[5120]byte) int
|
|
|
|
// encodeSnappyBlockAsm encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4294967295 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeSnappyBlockAsm(dst []byte, src []byte, tmp *[65536]byte) int
|
|
|
|
// encodeSnappyBlockAsm64K encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 65535 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeSnappyBlockAsm64K(dst []byte, src []byte, tmp *[65536]byte) int
|
|
|
|
// encodeSnappyBlockAsm12B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 16383 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeSnappyBlockAsm12B(dst []byte, src []byte, tmp *[16384]byte) int
|
|
|
|
// encodeSnappyBlockAsm10B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4095 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeSnappyBlockAsm10B(dst []byte, src []byte, tmp *[4096]byte) int
|
|
|
|
// encodeSnappyBlockAsm8B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 511 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeSnappyBlockAsm8B(dst []byte, src []byte, tmp *[1024]byte) int
|
|
|
|
// encodeSnappyBetterBlockAsm encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4294967295 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeSnappyBetterBlockAsm(dst []byte, src []byte, tmp *[589824]byte) int
|
|
|
|
// encodeSnappyBetterBlockAsm64K encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 65535 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeSnappyBetterBlockAsm64K(dst []byte, src []byte, tmp *[294912]byte) int
|
|
|
|
// encodeSnappyBetterBlockAsm12B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 16383 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeSnappyBetterBlockAsm12B(dst []byte, src []byte, tmp *[81920]byte) int
|
|
|
|
// encodeSnappyBetterBlockAsm10B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4095 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeSnappyBetterBlockAsm10B(dst []byte, src []byte, tmp *[20480]byte) int
|
|
|
|
// encodeSnappyBetterBlockAsm8B encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 511 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func encodeSnappyBetterBlockAsm8B(dst []byte, src []byte, tmp *[5120]byte) int
|
|
|
|
// calcBlockSize encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 4294967295 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func calcBlockSize(src []byte, tmp *[32768]byte) int
|
|
|
|
// calcBlockSizeSmall encodes a non-empty src to a guaranteed-large-enough dst.
|
|
// Maximum input 1024 bytes.
|
|
// It assumes that the varint-encoded length of the decompressed bytes has already been written.
|
|
//
|
|
//go:noescape
|
|
func calcBlockSizeSmall(src []byte, tmp *[2048]byte) int
|
|
|
|
// emitLiteral writes a literal chunk and returns the number of bytes written.
|
|
//
|
|
// It assumes that:
|
|
//
|
|
// dst is long enough to hold the encoded bytes with margin of 0 bytes
|
|
// 0 <= len(lit) && len(lit) <= math.MaxUint32
|
|
//
|
|
//go:noescape
|
|
func emitLiteral(dst []byte, lit []byte) int
|
|
|
|
// emitRepeat writes a repeat chunk and returns the number of bytes written.
|
|
// Length must be at least 4 and < 1<<32
|
|
//
|
|
//go:noescape
|
|
func emitRepeat(dst []byte, offset int, length int) int
|
|
|
|
// emitCopy writes a copy chunk and returns the number of bytes written.
|
|
//
|
|
// It assumes that:
|
|
//
|
|
// dst is long enough to hold the encoded bytes
|
|
// 1 <= offset && offset <= math.MaxUint32
|
|
// 4 <= length && length <= 1 << 24
|
|
//
|
|
//go:noescape
|
|
func emitCopy(dst []byte, offset int, length int) int
|
|
|
|
// emitCopyNoRepeat writes a copy chunk and returns the number of bytes written.
|
|
//
|
|
// It assumes that:
|
|
//
|
|
// dst is long enough to hold the encoded bytes
|
|
// 1 <= offset && offset <= math.MaxUint32
|
|
// 4 <= length && length <= 1 << 24
|
|
//
|
|
//go:noescape
|
|
func emitCopyNoRepeat(dst []byte, offset int, length int) int
|
|
|
|
// matchLen returns how many bytes match in a and b
|
|
//
|
|
// It assumes that:
|
|
//
|
|
// len(a) <= len(b)
|
|
//
|
|
//go:noescape
|
|
func matchLen(a []byte, b []byte) int
|
|
|
|
// cvtLZ4Block converts an LZ4 block to S2
|
|
//
|
|
//go:noescape
|
|
func cvtLZ4BlockAsm(dst []byte, src []byte) (uncompressed int, dstUsed int)
|
|
|
|
// cvtLZ4sBlock converts an LZ4s block to S2
|
|
//
|
|
//go:noescape
|
|
func cvtLZ4sBlockAsm(dst []byte, src []byte) (uncompressed int, dstUsed int)
|
|
|
|
// cvtLZ4Block converts an LZ4 block to Snappy
|
|
//
|
|
//go:noescape
|
|
func cvtLZ4BlockSnappyAsm(dst []byte, src []byte) (uncompressed int, dstUsed int)
|
|
|
|
// cvtLZ4sBlock converts an LZ4s block to Snappy
|
|
//
|
|
//go:noescape
|
|
func cvtLZ4sBlockSnappyAsm(dst []byte, src []byte) (uncompressed int, dstUsed int)
|