Fixed rotate left on windows.

R=titzer@chromium.org, bmeurer@chromium.org

Review URL: https://codereview.chromium.org/1847413002

Cr-Commit-Position: refs/heads/master@{#35195}
This commit is contained in:
ahaas 2016-04-01 02:50:22 -07:00 committed by Commit bot
parent 9ca9195dd4
commit 3ffee875ef
2 changed files with 3 additions and 1 deletions

View File

@ -76,6 +76,8 @@
#undef CreateSemaphore
#undef Yield
#undef RotateRight32
#undef RotateLeft32
#undef RotateRight64
#undef RotateLeft64
#endif // V8_BASE_WIN32_HEADERS_H_

View File

@ -1353,7 +1353,7 @@ TEST(Run_Wasm_I64Rol) {
FOR_UINT64_INPUTS(i) {
FOR_UINT64_INPUTS(j) {
int64_t expected = bits::RotateRight64(*i, 64 - (*j & 0x3f));
int64_t expected = bits::RotateLeft64(*i, *j & 0x3f);
CHECK_EQ(expected, r.Call(*i, *j));
}
}