compare size of types at compile time : I'm working on some code that requires 64 bit floating point calculations, but on some of the platforms where it's being deployed there isn't a 64 bit float type.
I have a version of code that uses a software emulated 64bit type, but I want to be able to combine the hard and soft versions as a single include the switches type definition between hardware and software float.
both float and double are available, but on the one platform they are both 4 bytes in size and on the other they are 4 and 8. I know I can't use sizeof in a preprocessor macro so I looked at comparing the max value for both, but in the arduino framework FLT_MAX and DBL_MAX don't seem to be defined?
how can I perform this check at compile time?