Hello,
Background:
We are migrating an application from windows console to C6748. We have made some good progess, but are now running through a computationally intensive portion. The memory requirements are quite large and one area we are trying to "economize" in is the use of floats instead of doubles.
We are seeing some data values drifting potentially as a result of the lower precision 32-bit float or possibly for other reasons:
The program uses a number of standard calls to functions like "floor", "ceil", "sin", "cos"...etc. From what I can see the standard math.h include specifies all those functions as doubles. We are passing and accepting all values as floats. The compiler and linker don't seem to be upset about this, but I noticed that there is the equivalent library for floats (mathf.h) available with all functions defined with an "f" afterwards.
Should I be changing all the functions to the "f" extension version or is the compiler already re-directing to the float versions and hence does not complain? The values returned are often not unreasonable and so it is not obvious what is happening.
Thanks in advance for any help.
Dan.