mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-01 10:15:21 +02:00
23 lines
340 B
C++
23 lines
340 B
C++
#include "math/math_util.h"
|
|
#include <stdlib.h>
|
|
|
|
#if defined(__ARM_ARCH_7A__) && !defined(BLACKBERRY)
|
|
|
|
void EnableFZ()
|
|
{
|
|
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);
|
|
}
|
|
#else
|
|
void EnableFZ()
|
|
{
|
|
// TODO
|
|
}
|
|
#endif
|