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/nextafterl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/nextafterl.c')
-rw-r--r--src/math/nextafterl.c 6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/math/nextafterl.c b/src/math/nextafterl.c
index 611ea53d..c09d9dd0 100644
--- a/src/math/nextafterl.c
+++ b/src/math/nextafterl.c
@@ -39,7 +39,8 @@ long double nextafterl(long double x, long double y)
return x + x;
/* raise underflow if ux.value is subnormal or zero */
if (ux.bits.exp == 0) {
- volatile float z = x*x + ux.value*ux.value;
+ volatile float z;
+ z = x*x + ux.value*ux.value;
}
return ux.value;
}
@@ -77,7 +78,8 @@ long double nextafterl(long double x, long double y)
return x + x;
/* raise underflow if ux.value is subnormal or zero */
if (ux.bits.exp == 0) {
- volatile float z = x*x + ux.value*ux.value;
+ volatile float z;
+ z = x*x + ux.value*ux.value;
}
return ux.value;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月07日 10:58:21 +0000

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