会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
wgang171412@163.com
2016年1月25日
嵌入式中对某一位清0或置1
摘要: 方法一:写成宏,方便移植#define setbit(x,y) x|=(1> (pos)&1)) //用宏得到某数的某位#define BitGet(Number,pos) ((Number) |= 1<<(pos)) //把某位置1#define BitGet(Number,pos) ((Numb...
阅读全文
posted @ 2016-01-25 15:14 acodewarrior
阅读(1133)
评论(0)
推荐(0)
编辑
导航
博客园
首页
新随笔
联系
订阅
管理
公告