提交 cd18dc85 编写于 作者: S Szabolcs Nagy

math: fix tgamma to raise underflow for large negative values

上级 f29fea00
......@@ -137,6 +137,7 @@ double tgamma(double x)
/* x =< -184: tgamma(x)=+-0 with underflow */
if (absx >= 184) {
if (x < 0) {
FORCE_EVAL((float)(0x1p-126/x));
if (floor(x) * 0.5 == floor(x * 0.5))
return 0;
return -0.0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册