Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
AIX: Update variable name which conflicts with system defined variable
Browse files Browse the repository at this point in the history
    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}
  • Loading branch information
bjaideep authored and Commit bot committed Jun 28, 2016
1 parent fe70bda commit 37538cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/base/ieee754.cc
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ V8_INLINE double __kernel_cos(double x, double y) {
C5 = 2.08757232129817482790e-09, /* 0x3E21EE9E, 0xBDB4B1C4 */
C6 = -1.13596475577881948265e-11; /* 0xBDA8FAE9, 0xBE8838D4 */

double a, hz, z, r, qx;
double a, iz, z, r, qx;
int32_t ix;
GET_HIGH_WORD(ix, x);
ix &= 0x7fffffff; /* ix = |x|'s high word*/
Expand All @@ -384,9 +384,9 @@ V8_INLINE double __kernel_cos(double x, double y) {
} else {
INSERT_WORDS(qx, ix - 0x00200000, 0); /* x/4 */
}
hz = 0.5 * z - qx;
iz = 0.5 * z - qx;
a = one - qx;
return a - (hz - (z * r - x * y));
return a - (iz - (z * r - x * y));
}
}

Expand Down

0 comments on commit 37538cb

Please sign in to comment.