19 lines
594 B
Go
19 lines
594 B
Go
// Code generated by command: go run generate_amd64.go -out checksum_generated_amd64.s -stubs checksum_generated_amd64.go. DO NOT EDIT.
|
|
|
|
package tun
|
|
|
|
// checksumAVX2 computes an IP checksum using amd64 v3 instructions (AVX2, BMI2)
|
|
//
|
|
//go:noescape
|
|
func checksumAVX2(b []byte, initial uint16) uint16
|
|
|
|
// checksumSSE2 computes an IP checksum using amd64 baseline instructions (SSE2)
|
|
//
|
|
//go:noescape
|
|
func checksumSSE2(b []byte, initial uint16) uint16
|
|
|
|
// checksumAMD64 computes an IP checksum using amd64 baseline instructions
|
|
//
|
|
//go:noescape
|
|
func checksumAMD64(b []byte, initial uint16) uint16
|