mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-11-26 22:01:13 +00:00
12 lines
201 B
C
12 lines
201 B
C
|
#include "pspmath.h"
|
||
|
|
||
|
float vfpu_sqrtf(float x) {
|
||
|
float result;
|
||
|
__asm__ volatile (
|
||
|
"mtv %1, S000\n"
|
||
|
"vsqrt.s S000, S000\n"
|
||
|
"mfv %0, S000\n"
|
||
|
: "=r"(result) : "r"(x));
|
||
|
return result;
|
||
|
}
|