Erich
Thanks for the response. Yes, I have hardware math enabled.
I think I mis-stated my question. I wan't concerned about the compiler warning per say. I want to use a version of the sin function that is implemented using single precision arithmetic. The default math.h version does all calculations in double precision. Since the K60F series of chips only has a single precision FPU, every opperation in the sin function is implemented in software and the calculation is VERY slow. In summary the standard sine calculation is doing the following:
1.) Promotes the angle argument from float to double.
2.) Calculates the sin using software emulated double precision calculations. FPU is not used.
3.) Casts the result back to a float.
I was wondering if there is a library that can do the following.
1.) Calculate sine in single precision, so that the FPU is used. Argument and result will also be in single precision so no conversion will be necessary.
It would be best if the library was optomized for the arm M4 fpu core.
Thanks
Peter