The first problem I had was regarding comparisons of floats, i.e. something as simple as this (where 'x' is of type float):
Code: Select all
if (x < 1.0f)
{
//something here that won't be optimized away..
}
A second issue came from double precision values and any use of them with other types, resulting in "undefined reference to `fptodp'" and a few associated functions, this is much less of a problem.
I'm wondering if there are any workarounds to the above, through compiler or linker flags...?
Last off I'm curious about library code the likes of which you'd find in math.h. I went straight off today and assumed no such thing exists yet and dealt with some approximations of tan etc, but would I be incorrect here?