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
path: root/src/math/log1pl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/log1pl.c')
-rw-r--r--src/math/log1pl.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/log1pl.c b/src/math/log1pl.c
index edb48df1..37da46d2 100644
--- a/src/math/log1pl.c
+++ b/src/math/log1pl.c
@@ -118,7 +118,7 @@ long double log1pl(long double xm1)
/* Test for domain errors. */
if (x <= 0.0) {
if (x == 0.0)
- return -1/x; /* -inf with divbyzero */
+ return -1/(x*x); /* -inf with divbyzero */
return 0/0.0f; /* nan with invalid */
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月08日 07:10:48 +0000

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