会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Techz
没有任何理由去浪费生命这份神圣的礼物
博客园
首页
新随笔
新文章
联系
管理
订阅
how do lowbit function works?
This artical analyse lowbit function, to discover how it works to get the lowest bit of a binary number.
int
lowBit(
int
t) {
return
t
&
(t
^
(t
-
1
));
}
int
lowBit(
int
t) {
return
t
&
(
-
t) ;
}
how do these functions work to get the lowest bit?
to be written..
posted on
2008-02-03 16:49
ziliang
阅读(
424
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
公告