this is a bans aid fix for a gcc warning caused by "double fabs(double)". 
I was not able to convince gcc to use "float fabs(float)"