encode_asm.go 742 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2016 The Snappy-Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build !appengine
  5. // +build gc
  6. // +build !noasm
  7. // +build amd64 arm64
  8. package snappy
  9. // emitLiteral has the same semantics as in encode_other.go.
  10. //
  11. //go:noescape
  12. func emitLiteral(dst, lit []byte) int
  13. // emitCopy has the same semantics as in encode_other.go.
  14. //
  15. //go:noescape
  16. func emitCopy(dst []byte, offset, length int) int
  17. // extendMatch has the same semantics as in encode_other.go.
  18. //
  19. //go:noescape
  20. func extendMatch(src []byte, i, j int) int
  21. // encodeBlock has the same semantics as in encode_other.go.
  22. //
  23. //go:noescape
  24. func encodeBlock(dst, src []byte) (d int)