mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +00:00
Comment arm_enable_runfast_mode().
This commit is contained in:
parent
6180f3c15a
commit
2ace9a81a8
@ -262,14 +262,15 @@ static uint64_t xgetbv_x86(uint32_t index)
|
||||
#ifdef HAVE_NEON
|
||||
static void arm_enable_runfast_mode(void)
|
||||
{
|
||||
static const unsigned int x = 0x04086060;
|
||||
static const unsigned int y = 0x03000000;
|
||||
// RunFast mode. Enables flush-to-zero and some floating point optimizations.
|
||||
static const unsigned x = 0x04086060;
|
||||
static const unsigned y = 0x03000000;
|
||||
int r;
|
||||
asm volatile(
|
||||
"fmrx %0, fpscr \n\t" //r0 = FPSCR
|
||||
"and %0, %0, %1 \n\t" //r0 = r0 & 0x04086060
|
||||
"orr %0, %0, %2 \n\t" //r0 = r0 | 0x03000000
|
||||
"fmxr fpscr, %0 \n\t" //FPSCR = r0
|
||||
"fmrx %0, fpscr \n\t" // r0 = FPSCR
|
||||
"and %0, %0, %1 \n\t" // r0 = r0 & 0x04086060
|
||||
"orr %0, %0, %2 \n\t" // r0 = r0 | 0x03000000
|
||||
"fmxr fpscr, %0 \n\t" // FPSCR = r0
|
||||
: "=r"(r)
|
||||
: "r"(x), "r"(y)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user