2012-05-09 00:33:43 +02:00
|
|
|
#include "math/math_util.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2013-10-24 03:07:26 +10:00
|
|
|
#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
|