move rsqrt and atof to misc.c/.h