~(uint32_t) 是什么意思? [英] What does ~(uint32_t) mean?
本文介绍了~(uint32_t) 是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在读一些操作系统内核中的 C 代码,上面写着
I'm reading a bit of C code in an OS kernel that says
x & ~(uint32_t)CST_IEc;
~()
是什么意思?这是一个波浪号后跟括号!
What does the ~()
mean? It's a tilde followed by parentheses!
推荐答案
~()
其实就是两件事:
(uint32_t)
是一个演员表.~
是一个按位补码运算符.
(uint32_t)
is a cast.~
is a bitwise complement operator.
这篇关于~(uint32_t) 是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文