mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-11-24 21:01:06 +00:00
11 lines
206 B
C
11 lines
206 B
C
#include "pspmath.h"
|
|
|
|
float vfpu_fabsf(float x) {
|
|
float result;
|
|
__asm__ volatile (
|
|
"mtv %1, S000\n"
|
|
"vmov.s S000, S000[|x|]\n"
|
|
"mfv %0, S000\n"
|
|
: "=r"(result) : "r"(x));
|
|
return result;
|
|
}
|