Fastest way to enumerate through turned on bits of an integer

后端 未结 8 1176
暗喜
暗喜 2021-02-06 08:22

What\'s the fastest way to enumerate through an integer and return the exponent of each bit that is turned on? Have seen an example using << and another u

8条回答
提交回复
热议问题