dquakeplus/source/libpspmath/vfpu_fminf.c
2022-02-08 16:49:56 -05:00

12 lines
251 B
C

#include "pspmath.h"
float vfpu_fminf(float x, float y) {
float result;
__asm__ volatile (
"mtv %1, S000\n"
"mtv %2, S001\n"
"vmin.s S002, S000, S001\n"
"mfv %0, S002\n"
: "=r"(result) : "r"(x), "r"(y));
return result;
}