what I\'m trying is to convert C++ piece of code
while (n--) if (c & 0x80000000) c = (c << 1) ^ p2; else c <<= 1;
into c# the wh