阅读背景:

n/4向上旋转的有效方法

来源:互联网 

I have an integer number n and I need to rounds n/4 upward. For performance reason I need to find out a fast way in C. The division by 4 can be done using a >> 2 shift operation but I don't know about the round. I could use ceil but I am worried about performance.I have an integer number n and I need to rounds




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: