Source file
test/simd_inline.go
1
2
3
4
5
6
7
8
9 package foo
10
11 import "simd"
12
13 func hasClosure(a, b, c, d simd.Int64x4) (w, x, y, z simd.Int64x4) {
14 shuf := func() {
15 w = z.RotateAllLeft(1).Xor(a)
16 x = w.RotateAllLeft(3).Xor(b)
17 y = x.RotateAllLeft(5).Xor(c)
18 z = y.RotateAllLeft(7).Xor(d)
19 a, b, c, d = b.RotateAllLeft(1).Xor(a.RotateAllLeft(23)), c.RotateAllLeft(1).Xor(b.RotateAllLeft(23)), d.RotateAllLeft(1).Xor(c.RotateAllLeft(23)), a.RotateAllLeft(1).Xor(d.RotateAllLeft(23))
20 w = z.RotateAllLeft(1).Xor(a)
21 x = w.RotateAllLeft(3).Xor(b)
22 y = x.RotateAllLeft(5).Xor(c)
23 z = y.RotateAllLeft(7).Xor(d)
24 a, b, c, d = b.RotateAllLeft(1).Xor(a.RotateAllLeft(23)), c.RotateAllLeft(1).Xor(b.RotateAllLeft(23)), d.RotateAllLeft(1).Xor(c.RotateAllLeft(23)), a.RotateAllLeft(1).Xor(d.RotateAllLeft(23))
25 w = z.RotateAllLeft(1).Xor(a)
26 x = w.RotateAllLeft(3).Xor(b)
27 y = x.RotateAllLeft(5).Xor(c)
28 z = y.RotateAllLeft(7).Xor(d)
29 a, b, c, d = b.RotateAllLeft(1).Xor(a.RotateAllLeft(23)), c.RotateAllLeft(1).Xor(b.RotateAllLeft(23)), d.RotateAllLeft(1).Xor(c.RotateAllLeft(23)), a.RotateAllLeft(1).Xor(d.RotateAllLeft(23))
30 }
31
32 shuf()
33 shuf()
34 shuf()
35 shuf()
36 shuf()
37 shuf()
38 shuf()
39 shuf()
40 shuf()
41 return
42 }
43
View as plain text