From: fschneider@chromium.org Date: Tue, 24 Apr 2012 16:37:43 +0000 (+0000) Subject: Attempt to fix Win32 build by avoiding a compiler intrinsic. X-Git-Tag: upstream/4.7.83~16808 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e07be0b068bfd5eac78a0ef35d49b792ba2dbfb8;p=platform%2Fupstream%2Fv8.git Attempt to fix Win32 build by avoiding a compiler intrinsic. TBR=mstarzinger@chromium.org Review URL: https://chromiumcodereview.appspot.com/10198020 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11428 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/compiler-intrinsics.h b/src/compiler-intrinsics.h index 7fbc181..b73e8ac 100644 --- a/src/compiler-intrinsics.h +++ b/src/compiler-intrinsics.h @@ -76,11 +76,6 @@ int CompilerIntrinsics::CountLeadingZeros(uint32_t value) { } 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 @@ int CompilerIntrinsics::CountSetBits(uint32_t value) { value = ((value >> 8) & 0x00ff00ff) + (value & 0x00ff00ff); value = ((value >> 16) & 0x0000ffff) + (value & 0x0000ffff); return value; -#endif -#undef _MSC_VER_VS2008 } #else