4 bytes, e.g. 67 E3 90 AF
I want a unique value of the summation of the 4 MSBs of each byte, for the four bytes.
That means you will cut drop away the 4 LSB bits from each byte.. then you will have 4 nipples.
Now if I just stitch the for nipples together (16 bits) that will give me a unique value that can
not be repeated when the order of the 4 nipples change.. but this will be a long number of 16 bits,
so if possible, is there a way to have the sum be in 1 byte, or at least 1 byte and a flag?
Thanks in advance.
I want a unique value of the summation of the 4 MSBs of each byte, for the four bytes.
That means you will cut drop away the 4 LSB bits from each byte.. then you will have 4 nipples.
Now if I just stitch the for nipples together (16 bits) that will give me a unique value that can
not be repeated when the order of the 4 nipples change.. but this will be a long number of 16 bits,
so if possible, is there a way to have the sum be in 1 byte, or at least 1 byte and a flag?
Thanks in advance.