hii guys
Needed some help in converting this C code to assembly havnt been successful yet in my case after the 1st division
it doesnt add properly in FPU.
so heres the C++code:
double x = a;
double xprev = 0;
while (((xprev - x) > tol) || ((x - xprev) > tol))
{
xprev = x;
x = (xprev + (a / xprev))/2;
}
return x;
thanks,
its urgent
Needed some help in converting this C code to assembly havnt been successful yet in my case after the 1st division
it doesnt add properly in FPU.
so heres the C++code:
double x = a;
double xprev = 0;
while (((xprev - x) > tol) || ((x - xprev) > tol))
{
xprev = x;
x = (xprev + (a / xprev))/2;
}
return x;
thanks,
its urgent