I need to use the popcnt instruction in a project that is compiled using Visual Stdio 2005
The intrinsic __popcnt() only works with VS2008 and the compiler doesn't seem to recognize the instruction even when I write in a __asm {} block.
Is there any way to do this?