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
|
#ifdef HAVE_NEON
|
||||||
static void arm_enable_runfast_mode(void)
|
static void arm_enable_runfast_mode(void)
|
||||||
{
|
{
|
||||||
static const unsigned int x = 0x04086060;
|
// RunFast mode. Enables flush-to-zero and some floating point optimizations.
|
||||||
static const unsigned int y = 0x03000000;
|
static const unsigned x = 0x04086060;
|
||||||
|
static const unsigned y = 0x03000000;
|
||||||
int r;
|
int r;
|
||||||
asm volatile(
|
asm volatile(
|
||||||
"fmrx %0, fpscr \n\t" //r0 = FPSCR
|
"fmrx %0, fpscr \n\t" // r0 = FPSCR
|
||||||
"and %0, %0, %1 \n\t" //r0 = r0 & 0x04086060
|
"and %0, %0, %1 \n\t" // r0 = r0 & 0x04086060
|
||||||
"orr %0, %0, %2 \n\t" //r0 = r0 | 0x03000000
|
"orr %0, %0, %2 \n\t" // r0 = r0 | 0x03000000
|
||||||
"fmxr fpscr, %0 \n\t" //FPSCR = r0
|
"fmxr fpscr, %0 \n\t" // FPSCR = r0
|
||||||
: "=r"(r)
|
: "=r"(r)
|
||||||
: "r"(x), "r"(y)
|
: "r"(x), "r"(y)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue