math: fix pow(x,-1) to raise underflow properly
authorSzabolcs Nagy <nsz@port70.net>
Thu, 15 Aug 2013 15:13:24 +0000 (15:13 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 15 Aug 2013 15:13:24 +0000 (15:13 +0000)
commitc221af951693d526d3ae946f7e708af8e7a9bf85
tree0d18e9fdd8cf637d98c9726ff5947d6d8b41f851
parent411efb3bc61298b81456d0fdab39518d983a9681
math: fix pow(x,-1) to raise underflow properly

if FLT_EVAL_METHOD!=0 check if (double)(1/x) is subnormal and not a
power of 2 (if 1/x is power of 2 then either it is exact or the
long double to double rounding already raised inexact and underflow)
src/math/pow.c