很多程序需要对n字节对齐,把a按n字节对齐的位运算为:(a + n - 1) & (~(n - 1)),即如果 qn < a <=(q+1)n, 则把a对齐到(q+1)n。
阅读(120) | 评论(0) | 转发(0) |
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
相关热门文章
给主人留下些什么吧!~~
评论热议