开发者

What does this expression do?

开发者 https://www.devze.com 2023-01-30 21:31 出处:网络
Is there any interpretation of this expression in the decimal system? In other words, is it an efficient implementation of calculation using the lo开发者_开发问答gical operation in place of arithmetic

Is there any interpretation of this expression in the decimal system? In other words, is it an efficient implementation of calculation using the lo开发者_开发问答gical operation in place of arithmetic operation?

1) A number N plus a hexadecimal, i.e. (N+0x7f) 2) take the bitwise AND with the bitwise NOT of the same hexadecimal.

(N+0x7f) & (~0x7f)?


It is changing N to the closest multiple of 0x7F which is greater than N.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号