MSVC相当于__builtin_popcount吗? [英] MSVC equivalent to __builtin_popcount?
本文介绍了MSVC相当于__builtin_popcount吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
等效于 __ builtin_popcount $ c GCC和Clang中的$ c>
用于MSVC-10?
What is the equivalent to __builtin_popcount
as found in GCC and Clang, for MSVC-10?
推荐答案
使用提供的注释:
-
__ popcnt
可通过< intrin.h>
$ b $获得b -
_mm_popcnt_u64
与SSE4和< nmmintrin.h>
__popcnt
available through<intrin.h>
_mm_popcnt_u64
with SSE4 and<nmmintrin.h>
这篇关于MSVC相当于__builtin_popcount吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文