musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--src/math/tgamma.c 1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/tgamma.c b/src/math/tgamma.c
index 691e86a4..f91af735 100644
--- a/src/math/tgamma.c
+++ b/src/math/tgamma.c
@@ -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;
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月04日 14:21:51 +0000

AltStyle によって変換されたページ (->オリジナル) /