Commit 37538cb2 authored by bjaideep's avatar bjaideep Committed by Commit bot

AIX: Update variable name which conflicts with system defined variable

    variable hz is defined as a macro in AIX system header
    /usr/include/sys/m_param.h (as "ticks per second of the clock").
    The pre-processor replaces hz with the numeric value defined in
    system header file and therefore emits an error.
    Re-naming variable name to "iz".

R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com

BUG=
LOG=N

Review-Url: https://codereview.chromium.org/2104483002
Cr-Commit-Position: refs/heads/master@{#37308}
parent fe70bda4
...@@ -367,7 +367,7 @@ V8_INLINE double __kernel_cos(double x, double y) { ...@@ -367,7 +367,7 @@ V8_INLINE double __kernel_cos(double x, double y) {
C5 = 2.08757232129817482790e-09, /* 0x3E21EE9E, 0xBDB4B1C4 */ C5 = 2.08757232129817482790e-09, /* 0x3E21EE9E, 0xBDB4B1C4 */
C6 = -1.13596475577881948265e-11; /* 0xBDA8FAE9, 0xBE8838D4 */ C6 = -1.13596475577881948265e-11; /* 0xBDA8FAE9, 0xBE8838D4 */
double a, hz, z, r, qx; double a, iz, z, r, qx;
int32_t ix; int32_t ix;
GET_HIGH_WORD(ix, x); GET_HIGH_WORD(ix, x);
ix &= 0x7fffffff; /* ix = |x|'s high word*/ ix &= 0x7fffffff; /* ix = |x|'s high word*/
...@@ -384,9 +384,9 @@ V8_INLINE double __kernel_cos(double x, double y) { ...@@ -384,9 +384,9 @@ V8_INLINE double __kernel_cos(double x, double y) {
} else { } else {
INSERT_WORDS(qx, ix - 0x00200000, 0); /* x/4 */ INSERT_WORDS(qx, ix - 0x00200000, 0); /* x/4 */
} }
hz = 0.5 * z - qx; iz = 0.5 * z - qx;
a = one - qx; a = one - qx;
return a - (hz - (z * r - x * y)); return a - (iz - (z * r - x * y));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment