I'll re-land it
-- Vitaly
> --
> v8-dev mailing list
> v8-...@googlegroups.com
> http://groups.google.com/group/v8-dev
On Wed, Apr 25, 2012 at 1:24 AM, Alexandre RamesMaybe it should, but it's not what the MSDN page says it does. If it
<alexand...@gmail.com> wrote:
> Not using the intrinsic shouldn't make any difference here.
>
> But __popcnt is the intrinsic, not the instruction. Shouldn't MS compiler
> automatically detect hardware support and use another solution if the popcnt
> isn't available.
did, this code code would have to check some global flag every time,
which would be more expensive than the operation itself, or require
some patching in runtime.