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:
parent
9ca9195dd4
commit
3ffee875ef
@ -76,6 +76,8 @@
|
||||
#undef CreateSemaphore
|
||||
#undef Yield
|
||||
#undef RotateRight32
|
||||
#undef RotateLeft32
|
||||
#undef RotateRight64
|
||||
#undef RotateLeft64
|
||||
|
||||
#endif // V8_BASE_WIN32_HEADERS_H_
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user