Is there some compiler flag in gcc to consider floats as doubles ? I tried
#define float double
but it creates havoc in many headers and compilation fails stating
ublic/sdk/inc/crt/float.h:5:40: fatal error: ../include/double.h: No such file or directory
At that line it was including float
I then tried doing
typedef float double;
but it fails saying
error: multiple types in one declaration
I am looking at some compiler flag which can do this for me.
MyFloat
std::sin(float)
? They're not magically changing to calculate the correct number of bits.