Improve math performance

-ffast-math not only make the math fast, it is unsafe
-fno-math-errno makes single-instruction math operations not set ERRNO
-fsingle-precision-constant causes floating-point constants to be loaded in single precision even when this is not exact.
But it break strict IEEE compliance
fix/double
Rui Huang 2019-04-17 18:51:57 +08:00 committed by GitHub
parent c9ad654d2e
commit b4cdcffe0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ add_compile_flags(BOTH
-ffunction-sections
-fdata-sections
-fstrict-volatile-bitfields
-ffast-math
-fno-math-errno
-fsingle-precision-constant
-O2
-ggdb
)