Constants

Git Source

CTPOP_M1

010101... for ctpop

uint256 constant CTPOP_M1 = 0x5555555555555555555555555555555555555555555555555555555555555555;

CTPOP_M2

00110011.. for ctpop

uint256 constant CTPOP_M2 = 0x3333333333333333333333333333333333333333333333333333333333333333;

CTPOP_M4

4 bits alternating for ctpop

uint256 constant CTPOP_M4 = 0x0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F;

CTPOP_M8

8 bits alternating for ctpop

uint256 constant CTPOP_M8 = 0x00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF;

CTPOP_M16

16 bits alternating for ctpop

uint256 constant CTPOP_M16 = 0x0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF;

CTPOP_M32

32 bits alternating for ctpop

uint256 constant CTPOP_M32 = 0x00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF00000000FFFFFFFF;

CTPOP_M64

64 bits alternating for ctpop

uint256 constant CTPOP_M64 = 0x0000000000000000FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF;

CTPOP_M128

128 bits alternating for ctpop

uint256 constant CTPOP_M128 = 0x00000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;

CTPOP_H01

1 bytes for ctpop

uint256 constant CTPOP_H01 = 0x0101010101010101010101010101010101010101010101010101010101010101;