C代码:
u= (c1 & 0xff) * (c2 & 0xff) * (c3 & 0xff) * (c4 & 0xff) * (c5 & 0xff)
unsigned a, b, r;
u += 0xe91aaa35;
u ^= u >> 16;
u += u << 8;
u ^= u >> 4;
b = (u >> 8) & 0x1ff;
a = (u + (u << 2)) >> 19;
r = a ^ table[b];
autoit代码:
$u=(BitAND($c1, 0xFF)) * (BitAND($c2, 0xFF)) * (BitAND($c3, 0xFF)) * (BitAND($c4, 0xFF)) * (BitAND($c5, 0xFF))
dim $a,$b,$r
$u=$u+0xe91aaa35
$u=BitXOR($u, BitShift($u, 16))
$u=$u+(BitShift($u,-8))
$u=BitXOR($u, BitShift($u, 4))
$b = (BitShift($u, 8)) & 0x1FF
$a = BitShift(($u + (BitShift($u, -2)), 19) #I get this "ERROR: unbalanced parenthesis expression" here)
$r = BitXOR($a, $table[$b])
我根本不知道目标语言,但你打开了4个(
,关闭了3个。