libm is now somewhat integrated with gcc's -ffinite-math-only option and lots of the wrapper functions have been optimized.
mentioned in commit 69573077
mentioned in commit 41f2ffe0