libm: optimistic pow calling

Call optimized pow optimistically and revert to full range
implementation if we detect an out-of-range input.

Change-Id: I02657c2a254e9796e795a8fcc6ae43e24c9d37b9