OSDN Git Service

math: fix logb(-0.0) in downward rounding mode
authorSzabolcs Nagy <nsz@port70.net>
Mon, 2 Sep 2013 23:35:46 +0000 (23:35 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 5 Sep 2013 11:30:07 +0000 (11:30 +0000)
commit98be442ee8a2b8b7e0802b604e384d5a2c43282e
treefe20ecbce7be9e457fd678a4e4cea6b0fe32e692
parent4cec31fc23b28271a2ed0b290e65699dffac3fee
math: fix logb(-0.0) in downward rounding mode

use -1/(x*x) instead of -1/(x+0) to return -inf, -0+0 is -0 in
downward rounding mode
src/math/logb.c
src/math/logbf.c
src/math/logbl.c