1 Test #
1 mask
== 0, value
== ~
0 --> cc
== 0
3 Test #
2 mask
== 0xFFF, value
== 0 --> cc
== 0
5 Test #
3 mask
== 0xFFFF, value
== 0xFFFF --> cc
== 3
7 Test #
4 mask
== 0x8000, value
== 0x8000 --> cc
== 3
9 Test #
5 mask
== 0xF000, value
== 0x9000 --> cc
== 2
11 Test #
6 mask
== 0xF000, value
== 0x3000 --> cc
== 1