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/log10f.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/log10f.c')
-rw-r--r--src/math/log10f.c 4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/log10f.c b/src/math/log10f.c
index 4175cce2..7e4ac9a8 100644
--- a/src/math/log10f.c
+++ b/src/math/log10f.c
@@ -53,8 +53,8 @@ float log10f(float x)
SET_FLOAT_WORD(x, hx|(i^0x3f800000)); /* normalize x or x/2 */
k += i>>23;
y = (float)k;
- f = x - (float)1.0;
- hfsq = (float)0.5*f*f;
+ f = x - 1.0f;
+ hfsq = 0.5f * f * f;
r = __log1pf(f);
// FIXME
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月08日 03:34:30 +0000

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