1
0
mirror of https://github.com/golang/go synced 2024-10-05 18:21:21 -06:00
go/src/hash
Joe Tsai 64cc5fd0b3 hash/crc32: add noescape tags to assembly functions
CRC-32 computation is stateless and the p slice does not get stored
anywhere. Thus, we mark the assembly functions as noescape so that
it doesn't believe that p leaks in:
	func Update(crc uint32, tab *Table, p []byte) uint32

Before:
	./crc32.go:153: leaking param: p

After:
	./crc32.go:153: Update p does not escape

Change-Id: I52ba35b6cc544fff724327140e0c27898431d1dc
Reviewed-on: https://go-review.googlesource.com/17069
Reviewed-by: Russ Cox <rsc@golang.org>
2015-11-25 15:01:10 +00:00
..
adler32 hash/*: document the byte order used by the Sum methods 2015-09-10 03:34:23 +00:00
crc32 hash/crc32: add noescape tags to assembly functions 2015-11-25 15:01:10 +00:00
crc64 hash/*: document the byte order used by the Sum methods 2015-09-10 03:34:23 +00:00
fnv hash/*: document the byte order used by the Sum methods 2015-09-10 03:34:23 +00:00
hash.go
test_cases.txt
test_gen.awk