Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Unified Diff: runtime/platform/utils_win.h

Issue 10818020: Fix the build breakage on Windows caused by CountTrailingZeros. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/utils_win.h
diff --git a/runtime/platform/utils_win.h b/runtime/platform/utils_win.h
index a7e3d6723b4fb50cc4c5161afb1d6878e770e006..9a6e2b1d70d9803682fcbf2aacbb0242860f373d 100644
--- a/runtime/platform/utils_win.h
+++ b/runtime/platform/utils_win.h
@@ -10,10 +10,9 @@
namespace dart {
inline int Utils::CountTrailingZeros(uword x) {
- uword result;
+ unsigned long result; // NOLINT
#if defined(ARCH_IS_32_BIT)
_BitScanReverse(&result, x);
- return __builtin_ctzl(x);
#elif defined(ARCH_IS_64_BIT)
_BitScanReverse64(&result, x);
#else
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698