Revision: 11428
Author: [email protected]
Date: Tue Apr 24 09:37:43 2012
Log: Attempt to fix Win32 build by avoiding a compiler intrinsic.
[email protected]
Review URL: https://chromiumcodereview.appspot.com/10198020
http://code.google.com/p/v8/source/detail?r=11428
Modified:
/branches/bleeding_edge/src/compiler-intrinsics.h
=======================================
--- /branches/bleeding_edge/src/compiler-intrinsics.h Tue Apr 24 08:59:07
2012
+++ /branches/bleeding_edge/src/compiler-intrinsics.h Tue Apr 24 09:37:43
2012
@@ -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
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev