Hello,
for the float type i've made
inline float fastsqrt(float c)
{
float output;
asm("sqrt.s %0,%1" : "=f" (output) : "f" (c));
return output;
}
but this does not work for double type. There is an asm instruction that is "sqrt.d" that is for double type, but if i try to compile:
inline double fastsqrt(double c)
{
double output;
asm("sqrt.d %0,%1" : "=f" (output) : "f" (c));
return output;
}
it gives operand error. Why ?
Fast sqrt
If you're writing games, you don't need doubles. If you think you do, you're wrong :) That's why there is no hardware support.
http://www.dtek.chalmers.se/~tronic/PSPTexTool.zip Free texture converter for PSP with source. More to come.
-
- Posts: 70
- Joined: Thu Jun 22, 2006 9:24 pm