Comment arm_enable_runfast_mode().

This commit is contained in:
Themaister 2013-12-30 10:19:32 +01:00
parent 6180f3c15a
commit 2ace9a81a8

View File

@ -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)
);