[arm64] Set march to armv8.2-a+fp16, fix posix math

The march can be reduces later if needed.

Use arm64 optimized math, and set std=c11 so
__FLT_EVAL_METHOD__ is 0 and not 16:
https://gcc.gnu.org/bugzilla//show_bug.cgi?id=100854
This commit is contained in:
Fredrik Holmqvist
2021-11-09 21:59:31 +01:00
parent 2ca1376080
commit e6f4113978
2 changed files with 28 additions and 13 deletions
+1
View File
@@ -40,6 +40,7 @@ rule ArchitectureSetup architecture
switch $(cpu) {
case ppc : archFlags += -mcpu=440fp ;
case arm : archFlags += -march=armv7-a -mfloat-abi=hard ;
case arm64 : archFlags += -march=armv8.2-a+fp16 ;
case x86 : archFlags += -march=pentium ;
case riscv64 : archFlags += -march=rv64gc ;
}