mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-12-12 05:02:13 +00:00
13 lines
251 B
C
13 lines
251 B
C
|
#include "pspmath.h"
|
||
|
|
||
|
float vfpu_fmaxf(float x, float y) {
|
||
|
float result;
|
||
|
__asm__ volatile (
|
||
|
"mtv %1, S000\n"
|
||
|
"mtv %2, S001\n"
|
||
|
"vmax.s S002, S000, S001\n"
|
||
|
"mfv %0, S002\n"
|
||
|
: "=r"(result) : "r"(x), "r"(y));
|
||
|
return result;
|
||
|
}
|