summaryrefslogtreecommitdiff
path: root/deps/v8/src/base/ieee754.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/base/ieee754.cc')
-rw-r--r--deps/v8/src/base/ieee754.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/deps/v8/src/base/ieee754.cc b/deps/v8/src/base/ieee754.cc
index 7a1cc175cb..8c5641569d 100644
--- a/deps/v8/src/base/ieee754.cc
+++ b/deps/v8/src/base/ieee754.cc
@@ -90,7 +90,7 @@ typedef union {
ew_u.value = (d); \
(ix0) = ew_u.parts.msw; \
(ix1) = ew_u.parts.lsw; \
- } while (0)
+ } while (false)
/* Get a 64-bit int from a double. */
#define EXTRACT_WORD64(ix, d) \
@@ -98,7 +98,7 @@ typedef union {
ieee_double_shape_type ew_u; \
ew_u.value = (d); \
(ix) = ew_u.xparts.w; \
- } while (0)
+ } while (false)
/* Get the more significant 32 bit int from a double. */
@@ -107,7 +107,7 @@ typedef union {
ieee_double_shape_type gh_u; \
gh_u.value = (d); \
(i) = gh_u.parts.msw; \
- } while (0)
+ } while (false)
/* Get the less significant 32 bit int from a double. */
@@ -116,7 +116,7 @@ typedef union {
ieee_double_shape_type gl_u; \
gl_u.value = (d); \
(i) = gl_u.parts.lsw; \
- } while (0)
+ } while (false)
/* Set a double from two 32 bit ints. */
@@ -126,7 +126,7 @@ typedef union {
iw_u.parts.msw = (ix0); \
iw_u.parts.lsw = (ix1); \
(d) = iw_u.value; \
- } while (0)
+ } while (false)
/* Set a double from a 64-bit int. */
#define INSERT_WORD64(d, ix) \
@@ -134,7 +134,7 @@ typedef union {
ieee_double_shape_type iw_u; \
iw_u.xparts.w = (ix); \
(d) = iw_u.value; \
- } while (0)
+ } while (false)
/* Set the more significant 32 bits of a double from an int. */
@@ -144,7 +144,7 @@ typedef union {
sh_u.value = (d); \
sh_u.parts.msw = (v); \
(d) = sh_u.value; \
- } while (0)
+ } while (false)
/* Set the less significant 32 bits of a double from an int. */
@@ -154,7 +154,7 @@ typedef union {
sl_u.value = (d); \
sl_u.parts.lsw = (v); \
(d) = sl_u.value; \
- } while (0)
+ } while (false)
/* Support macro. */
@@ -1210,9 +1210,9 @@ double atan(double x) {
if (ix > 0x7FF00000 || (ix == 0x7FF00000 && (low != 0)))
return x + x; /* NaN */
if (hx > 0)
- return atanhi[3] + *(volatile double *)&atanlo[3];
+ return atanhi[3] + *const_cast<volatile double*>(&atanlo[3]);
else
- return -atanhi[3] - *(volatile double *)&atanlo[3];
+ return -atanhi[3] - *const_cast<volatile double*>(&atanlo[3]);
}
if (ix < 0x3FDC0000) { /* |x| < 0.4375 */
if (ix < 0x3E400000) { /* |x| < 2^-27 */