| 1 | // Code generated by command: go run asm.go -out allocfail.s -stubs stubs.go. DO NOT EDIT. |
| 2 | |
| 3 | //go:build !appengine && !noasm && gc |
| 4 | |
| 5 | package allocfail |
| 6 | |
| 7 | // encodeBlockAsm encodes a non-empty src to a guaranteed-large-enough dst. |
| 8 | // It assumes that the varint-encoded length of the decompressed bytes has already been written. |
| 9 | // |
| 10 | //go:noescape |
| 11 | func encodeBlockAsm(dst []byte, src []byte) int |
| 12 | |
| 13 | // encodeBlockAsm14B encodes a non-empty src to a guaranteed-large-enough dst. |
| 14 | // It assumes that the varint-encoded length of the decompressed bytes has already been written. |
| 15 | // |
| 16 | //go:noescape |
| 17 | func encodeBlockAsm14B(dst []byte, src []byte) int |
| 18 | |
| 19 | // encodeBlockAsm12B encodes a non-empty src to a guaranteed-large-enough dst. |
| 20 | // It assumes that the varint-encoded length of the decompressed bytes has already been written. |
| 21 | // |
| 22 | //go:noescape |
| 23 | func encodeBlockAsm12B(dst []byte, src []byte) int |
| 24 | |
| 25 | // encodeBlockAsmAvx encodes a non-empty src to a guaranteed-large-enough dst. |
| 26 | // It assumes that the varint-encoded length of the decompressed bytes has already been written. |
| 27 | // |
| 28 | //go:noescape |
| 29 | func encodeBlockAsmAvx(dst []byte, src []byte) int |
| 30 | |
| 31 | // encodeBlockAsm14BAvx encodes a non-empty src to a guaranteed-large-enough dst. |
| 32 | // It assumes that the varint-encoded length of the decompressed bytes has already been written. |
| 33 | // |
| 34 | //go:noescape |
| 35 | func encodeBlockAsm14BAvx(dst []byte, src []byte) int |
| 36 | |
| 37 | // encodeBlockAsm12BAvx encodes a non-empty src to a guaranteed-large-enough dst. |
| 38 | // It assumes that the varint-encoded length of the decompressed bytes has already been written. |
| 39 | // |
| 40 | //go:noescape |
| 41 | func encodeBlockAsm12BAvx(dst []byte, src []byte) int |
| 42 | |
| 43 | // emitLiteral writes a literal chunk and returns the number of bytes written. |
| 44 | // |
| 45 | // It assumes that: |
| 46 | // |
| 47 | // dst is long enough to hold the encoded bytes |
| 48 | // 0 <= len(lit) && len(lit) <= math.MaxUint32 |
| 49 | // |
| 50 | //go:noescape |
| 51 | func emitLiteral(dst []byte, lit []byte) int |
| 52 | |
| 53 | // emitLiteralAvx writes a literal chunk and returns the number of bytes written. |
| 54 | // |
| 55 | // It assumes that: |
| 56 | // |
| 57 | // dst is long enough to hold the encoded bytes |
| 58 | // 0 <= len(lit) && len(lit) <= math.MaxUint32 |
| 59 | // |
| 60 | //go:noescape |
| 61 | func emitLiteralAvx(dst []byte, lit []byte) int |
| 62 | |
| 63 | // emitRepeat writes a repeat chunk and returns the number of bytes written. |
| 64 | // Length must be at least 4 and < 1<<32 |
| 65 | // |
| 66 | //go:noescape |
| 67 | func emitRepeat(dst []byte, offset int, length int) int |
| 68 | |
| 69 | // emitCopy writes a copy chunk and returns the number of bytes written. |
| 70 | // |
| 71 | // It assumes that: |
| 72 | // |
| 73 | // dst is long enough to hold the encoded bytes |
| 74 | // 1 <= offset && offset <= math.MaxUint32 |
| 75 | // 4 <= length && length <= 1 << 24 |
| 76 | // |
| 77 | //go:noescape |
| 78 | func emitCopy(dst []byte, offset int, length int) int |
| 79 | |
| 80 | // matchLen returns how many bytes match in a and b |
| 81 | // |
| 82 | // It assumes that: |
| 83 | // |
| 84 | // len(a) <= len(b) |
| 85 | // |
| 86 | //go:noescape |
| 87 | func matchLen(a []byte, b []byte) int |