会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Hello$word
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
C/C++
Count the consecutive zero bits (trailing) on the right with multiply and lookup
摘要:我在网上看到了一点神奇的代码,用来计算一个数字末尾连续零的个数。 刚好我在优化一个I2C读写函数(只写入I2C特定bit),觉得这个很有用。经过尝试,确实没问题。 下面我隆重介绍一下: Count the consecutive zero bits (trailing) on the right w
阅读全文
posted @
2017-09-30 17:45
HelloAtom
阅读(346)
评论(0)
推荐(0)
公告