Added an inlined version of fdd, also changed fdd to fdd!