For the below code, if i want to convert the for loop to in-line assembly, how would it be done? (Pardon the weird code, i just made it up.)
1) This is for the x86, using visual studio
2) This is a "how to use in line assembly" question, not a "how to optimize this code" question
3) Any other example will be fine. I will think of some better example code in abit.
OK i hope this is a better example:
int doSomething(double a, double b, double c)
{
double d;
for(int i=100;i<200;i++)
{
d = a*a + b*b + c*c;
if(d>i)
return (i-99);
}
return -1;
}