小编Xx *_*XxX的帖子

查找 32 位数字中唯一设置位的位置

我需要得到一个32位数字中的1位数字,其中只有一个1位(总是)。最快的方式是C++或者asm。

例如

input:    0x00000001, 0x10000000
output:            0,         28
Run Code Online (Sandbox Code Playgroud)

c++ x86 assembly bit-manipulation intrinsics

2
推荐指数
1
解决办法
1185
查看次数

标签 统计

assembly ×1

bit-manipulation ×1

c++ ×1

intrinsics ×1

x86 ×1