the need of -fsingle-precision-constant #990
-
Hello there, When I removed this flag from your cmake demo project I received only an error on the delay_ns.hpp which could be easily solved by casting it to float via a static_cast. I would like to know if there is any other reason behind the decision to force everything into float. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
This flag is added when the FPU is single precision only, so that you don't accidentally use double precision and then need a software fallback. There are also a surprising number of casts of intermediate results to double for a lot of floating point operations, which decrease performance again. |
Beta Was this translation helpful? Give feedback.
This flag has been removed in #1037.