Anyone in this thread know programming? I got some code off the net and can't figure out what it is doing:
(the stuff inside the for loop). what does the >> do? and is the 0xFF about comparing bytes?
*has never used bytes before and is confused*
uint h;
for (h = 0, i = 0; i < 625; i++) {
j=k;
h += cuByteOnes[(j>> 24) & 0xFF];
h += cuByteOnes[(j>> 16) & 0xFF];
h += cuByteOnes[(j>> 8) & 0xFF];
h += cuByteOnes[(j ) & 0xFF];
}
uint[] cuByteOnes = {
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, // 00-0F
....
4, 5, 5, 6, 5, 6, 6, 7, 5, 6, 6, 7, 6, 7, 7, 8 //F0-FF
};