It compares each bit of the binary of the long and where both bits are 1
the result is 1
, otherwise the result is 0
. So for example:
first octet:
192 = 11000000
255 = 11111111
result = 11000000 = 192
last octet:
255 = 11111111
0 = 00000000
result = 00000000 = 0