int i;
long lx,ly, lz;
float fz,x,y;
void cordic();
x=1.0;
for (i=0; i
{
lx = x*MBIT;
ly = y*MBIT;
lz = 0;
cordic(lx,ly,lz);
fz = (float)lz/MBIT;
/* CORDIC m=1, y-->0 */
void cordic(x,y,z)
long *x, *y, *z;
{
int i;
long xx, yy, zz;
for(i=0; i
{
if( *y>=0)
{
xx = *x + (*y>>i);
yy = *y - (*x>>i);
zz = *z + constbl[i];
}
else
{
xx = *x - (*y>>i);
yy = *y + (*x>>i);
zz = *z - constbl[i];
}
*x = xx;
*y = yy;
*z = zz;
}
}
i keep getting error message that`s said "There`s an extra parameters when calling CORDIC function
2007-02-04
17:00:15
·
2 answers
·
asked by
astri
2