Rewrite of most FDLIBM ports to more direct calculations to avoid issues with 16-bit targets.