-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopy_amd64.go
61 lines (42 loc) · 1.25 KB
/
copy_amd64.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//go:build amd64 && !purego
package jwt
import "unsafe"
//test with gcflags="-S"
//go:noescape
func _copy_(src []byte, src2 []byte) int
//go:noescape
func copy_AVX2_32(src []byte, src2 []byte) int
//go:noescape
func copy_AMD_AVX2_32(src []byte, src2 []byte) int
//go:noescape
func memcopy_avx2_32(src unsafe.Pointer, src2 unsafe.Pointer) int
//go:noescape
func memcopy_avx2_64(src unsafe.Pointer, src2 unsafe.Pointer) int
//go:noescape
func copy_AVX2_64(src []byte, src2 []byte) int
//go:noescape
func copy_AVX2_128(src []byte, src2 []byte) int
//go:noescape
func copy_AVX2_256(src []byte, src2 []byte) int
//go:noescape
func copy_AVX2_512(src []byte, src2 []byte) int
//go:noescape
func copy_AVX2_1024(src []byte, src2 []byte) int
func ExportingAVX2_32(src []byte, src2 []byte) int {
return copy_AVX2_32(src, src2)
}
func ExportingAVX2_64(src []byte, src2 []byte) int {
return copy_AVX2_64(src, src2)
}
func ExportingAVX2_128(src []byte, src2 []byte) int {
return copy_AVX2_128(src, src2)
}
func ExportingAVX2_256(src []byte, src2 []byte) int {
return copy_AVX2_256(src, src2)
}
func ExportingAVX2_512(src []byte, src2 []byte) int {
return copy_AVX2_512(src, src2)
}
func ExportingAVX2_1024(src []byte, src2 []byte) int {
return copy_AVX2_1024(src, src2)
}