Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( B = []uint64{0x5555555555555555, 0x3333333333333333, 0x0F0F0F0F0F0F0F0F, 0x00FF00FF00FF00FF, 0x0000FFFF0000FFFF, 0x00000000FFFFFFFF} S = []uint64{0, 1, 2, 4, 8, 16} //B、S放到函数内每次都生成需要额外5.4ns/op )
B[0] = 0x5555555555555555 = 01010101 01010101 01010101 01010101 01010101 01010101 01010101 01010101 B[1] = 0x3333333333333333 = 00110011 00110011 00110011 00110011 00110011 00110011 00110011 00110011 B[2] = 0x0F0F0F0F0F0F0F0F = 00001111 00001111 00001111 00001111 00001111 00001111 00001111 00001111 B[3] = 0x00FF00FF00FF00FF = 00000000 11111111 00000000 11111111 00000000 11111111 00000000 11111111 B[4] = 0x0000FFFF0000FFFF = 00000000 00000000 11111111 11111111 00000000 00000000 11111111 11111111 B[5] = 0x00000000FFFFFFFF = 00000000 00000000 00000000 00000000 11111111 11111111 11111111 11111111
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.