github.com/songzhibin97/gkit@v1.2.13/sys/xxhash3/accum_amd64.go (about) 1 package xxhash3 2 3 import "unsafe" 4 5 func accumAVX2(acc *[8]uint64, xinput, xsecret unsafe.Pointer, len uintptr) 6 func accumSSE2(acc *[8]uint64, xinput, xsecret unsafe.Pointer, len uintptr) 7 8 func accum(xacc *[8]uint64, xinput, xsecret unsafe.Pointer, l uintptr) { 9 if avx2 { 10 accumAVX2(xacc, xinput, xsecret, l) 11 } else if sse2 { 12 accumSSE2(xacc, xinput, xsecret, l) 13 } else { 14 accumScalar(xacc, xinput, xsecret, l) 15 } 16 }