Hi,
I want to use faster trig functions instead of libc. I create a function to compute sin() using the FPU:
float fpu_sin(float radian)
{
float result;
_asm {
finit; // Initialise the FPU
fld radian; // Load the angle in radians
fsin; // Calculate the sin of that angle
fstp result; // Store the result
}
return result; // Return the result
}
BUT now, I want to create function like libc asin() to compute angle. FPU fasin does not seem to exist.
Any idea on how to compute my own asin() using the FPU?
Thanks,
Skynet.