Source file
test/codegen/issue61356.go
1
2
3
4
5
6
7
8
9 package codegen
10
11 func pack20(in *[20]uint64) uint64 {
12 var out uint64
13 out |= 4
14
15 out |= in[0] << 4
16
17 out |= in[1] << 7
18
19 out |= in[2] << 10
20
21 out |= in[3] << 13
22
23 out |= in[4] << 16
24
25 out |= in[5] << 19
26
27 out |= in[6] << 22
28
29 out |= in[7] << 25
30
31 out |= in[8] << 28
32
33 out |= in[9] << 31
34
35 out |= in[10] << 34
36
37 out |= in[11] << 37
38
39 out |= in[12] << 40
40
41 out |= in[13] << 43
42
43 out |= in[14] << 46
44
45 out |= in[15] << 49
46
47 out |= in[16] << 52
48
49 out |= in[17] << 55
50
51 out |= in[18] << 58
52
53 out |= in[19] << 61
54 return out
55 }
56
View as plain text