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

Unified Diff: src/compiler-intrinsics.h

Issue 10198020: Attempt to fix Win32 build by avoiding a compiler intrinsic. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 8 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: src/compiler-intrinsics.h
===================================================================
--- src/compiler-intrinsics.h (revision 11427)
+++ src/compiler-intrinsics.h (working copy)
@@ -76,11 +76,6 @@
}
int CompilerIntrinsics::CountSetBits(uint32_t value) {
- // __popcnt is only supported from VS2008.
-#define _MSC_VER_VS2008 1500
-#if _MSC_VER >= _MSC_VER_VS2008
- return __popcnt(value);
-#else
// Manually count set bits.
value = ((value >> 1) & 0x55555555) + (value & 0x55555555);
value = ((value >> 2) & 0x33333333) + (value & 0x33333333);
@@ -88,8 +83,6 @@
value = ((value >> 8) & 0x00ff00ff) + (value & 0x00ff00ff);
value = ((value >> 16) & 0x0000ffff) + (value & 0x0000ffff);
return value;
-#endif
-#undef _MSC_VER_VS2008
}
#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