Is there a preprocessor macro that tells if the argument "/Qoption,cpp,--extended_float_type" was set?
I'm searching for some macro like "__LONG_DOUBLE_SIZE__" in mathimf.h if "/Qlong-double" was set. I want to remove some overloaded methods and some classes if the compiler doesn't support _Quad, or if the flag was not set. So it would also be nice if I could get it gcc compatible.
The long double didn't give exactly the same results as a double, but the number of significant digits didn't seem to increase. It seems the _Quad provides enough precision.
It looks like GNU 5.0 and later added these macros:
sptel15-191> gcc -E -dM t.cpp | grep FLOAT128
#define __SIZEOF_FLOAT128__ 16
sptel15-192> gcc -E -dM t.cpp | grep FLOAT80
#define __SIZEOF_FLOAT80__ 16
Unfortunately our compiler does not yet implement these. i have submitted a bug report (Id #DPD200419869) for us to do the same in GNU >= 5.0 compatibility modes.