Sync libm with upstream.

Change-Id: I3b4e2c9c6ce6c5934f270a51ce5eb9154c5805d5
Merge "Sync libm with upstream."