mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-11-23 04:12:04 +00:00
14 lines
308 B
C
14 lines
308 B
C
|
#include "pspmath.h"
|
||
|
|
||
|
float vfpu_asinf(float x) {
|
||
|
float result;
|
||
|
__asm__ volatile (
|
||
|
"mtv %1, S000\n"
|
||
|
"vcst.s S001, VFPU_PI_2\n"
|
||
|
"vasin.s S000, S000\n"
|
||
|
"vmul.s S000, S000, S001\n"
|
||
|
"mfv %0, S000\n"
|
||
|
: "=r"(result) : "r"(x));
|
||
|
return result;
|
||
|
}
|