about summary refs log tree commit diff
path: root/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'src/math')
-rw-r--r--src/math/nextafter.c3
-rw-r--r--src/math/nextafterf.c3
-rw-r--r--src/math/nextafterl.c6
-rw-r--r--src/math/nexttoward.c3
-rw-r--r--src/math/nexttowardf.c3
5 files changed, 12 insertions, 6 deletions
diff --git a/src/math/nextafter.c b/src/math/nextafter.c
index d9e29236..e4bfb022 100644
--- a/src/math/nextafter.c
+++ b/src/math/nextafter.c
@@ -30,7 +30,8 @@ double nextafter(double x, double y)
 		return x + x;
 	/* raise underflow if ux.value is subnormal or zero */
 	if (e == 0) {
-		volatile double z = x*x + ux.value*ux.value;
+		volatile double z;
+		z = x*x + ux.value*ux.value;
 	}
 	return ux.value;
 }
diff --git a/src/math/nextafterf.c b/src/math/nextafterf.c
index 4727f7b0..47775b92 100644
--- a/src/math/nextafterf.c
+++ b/src/math/nextafterf.c
@@ -29,7 +29,8 @@ float nextafterf(float x, float y)
 		return x + x;
 	/* raise underflow if ux.value is subnormal or zero */
 	if (e == 0) {
-		volatile float z = x*x + ux.value*ux.value;
+		volatile float z;
+		z = x*x + ux.value*ux.value;
 	}
 	return ux.value;
 }
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;
 }
diff --git a/src/math/nexttoward.c b/src/math/nexttoward.c
index 741b6b5f..43f8fee8 100644
--- a/src/math/nexttoward.c
+++ b/src/math/nexttoward.c
@@ -39,7 +39,8 @@ double nexttoward(double x, long double y)
 		return x + x;
 	/* raise underflow if ux.value is subnormal or zero */
 	if (e == 0) {
-		volatile float z = x*x + ux.value*ux.value;
+		volatile float z;
+		z = x*x + ux.value*ux.value;
 	}
 	return ux.value;
 }
diff --git a/src/math/nexttowardf.c b/src/math/nexttowardf.c
index 821f72a5..e8e6f676 100644
--- a/src/math/nexttowardf.c
+++ b/src/math/nexttowardf.c
@@ -31,7 +31,8 @@ float nexttowardf(float x, long double y)
 		return x + x;
 	/* raise underflow if ux.value is subnormal or zero */
 	if (e == 0) {
-		volatile float z = x*x + ux.value*ux.value;
+		volatile float z;
+		z = x*x + ux.value*ux.value;
 	}
 	return ux.value;
 }