ppsspp/math/math_util.cpp

23 lines
316 B
C++
Raw Normal View History

2012-05-09 00:33:43 +02:00
#include "math/math_util.h"
#include <stdlib.h>
#if defined(__ARM_ARCH_7A__)
2012-05-09 00:33:43 +02:00
void EnableFZ()
{
2012-10-30 13:20:55 +01:00
int x;
asm(
"fmrx %[result],FPSCR \r\n"
"orr %[result],%[result],#16777216 \r\n"
"fmxr FPSCR,%[result]"
:[result] "=r" (x) : :
);
//printf("ARM FPSCR: %08x\n",x);
2012-05-09 00:33:43 +02:00
}
#else
void EnableFZ()
{
2013-03-21 20:51:35 +01:00
// TODO
2012-05-09 00:33:43 +02:00
}
2012-10-30 13:20:55 +01:00
#endif