-3

I don't know if the code is wrong but I'm trying to understand what in this case a & operator does. I know it's a refernce operator as in this C++ site but the code I'm reviewing it is not in the format of &xxxx. I also want to point out that I'm don't speak C. Here is the code bit:

mask1 = uBRAddress & (inv_zero >> 32-size);

All variables are unsigned long int, except size which is int. Is this mathematical addition, or just concatination - not sure how to read it.

4

2 回答 2

4

它是一个位运算AND符。

您可以在此处找到有关其工作原理的很好的教程。

C顺便说一句,它在and之间共享C++,所以它不是C++特定的。

于 2013-03-31T23:10:51.243 回答
2

从您引用的站点中,查找此页面上的“按位运算符” 。

于 2013-03-31T23:10:53.020 回答