H
hangyang
Unregistered / Unconfirmed
GUEST, unregistred user!
请给我翻译成delphi吧 谢谢 分不多了哈
unsigned int CRC(unsigned int *point)
{
unsigned char i,j,k;
unsigned int x,y,z,v;
x=0;
y=0x7FE;
do
{
i=*point;
point++;
k=8;
do
{
j=i;
i*=2;
z=0;
if(j>=128)
z=256;
v=x;
x*=2;
x|=z;
if(v>=32768)
x^=0x8005;
}
while(k--);
}
while(y--);
}
unsigned int CRC(unsigned int *point)
{
unsigned char i,j,k;
unsigned int x,y,z,v;
x=0;
y=0x7FE;
do
{
i=*point;
point++;
k=8;
do
{
j=i;
i*=2;
z=0;
if(j>=128)
z=256;
v=x;
x*=2;
x|=z;
if(v>=32768)
x^=0x8005;
}
while(k--);
}
while(y--);
}