int __builtin_constant_p (exp)函数的使用
来源:互联网 发布:淘宝脐橙如何分类 编辑:程序博客网 时间:2024/06/05 07:24
int __builtin_constant_p (exp)是GCC内置函数
功能:
— Built-in Function: int __builtin_constant_p (exp)
You can use the built-in function __builtin_constant_p
todetermine if a value is known to be constant at compile time and hencethat GCC can perform constant-folding on expressions involving thatvalue. The argument of the function is the value to test. The functionreturns the integer 1 if the argument is known to be a compile-timeconstant and 0 if it is not known to be a compile-time constant. Areturn of 0 does not indicate that the value isnot a constant,but merely that GCC cannot prove it is a constant with the specifiedvalue of the-O option.
也就是说在编译时,只要exp参数是常数,就返回1,否则返回0.
阅读全文
0 0
- int __builtin_constant_p (exp)函数的使用
- Gcc的内建函数 __builtin_constant_p
- 内核中__builtin_constant_p 函数
- __builtin_constant_p
- __builtin_constant_p
- __builtin_constant_p
- __builtin_constant_p
- __builtin_constant_p()
- __builtin_constant_p
- matlab中exp()函数的使用
- GCC内建函数__builtin_constant_p
- map<int,int>函数的简单使用
- gcc编译使用log、exp等函数的文件
- ORACLE EXP 的使用
- exp的一次使用
- imp exp的使用
- EXP IMP的使用
- exp 函数的数值计算方法
- 基于ubuntu12 32位安装交叉编译环境
- python圣斗士修炼(十六):json序列化
- PE文件结构详解(一)基本概念
- ThinkPHP3.2.2中自定义函数的一些方法
- 关于android获取json有null值造成崩溃的解决办法。
- int __builtin_constant_p (exp)函数的使用
- 进程间通信——几种方式的比较和详细实例
- git和SVN
- eclipse在maven打包时遇到的错误
- PE文件结构详解(二)可执行文件头
- 设计模式之工厂模式
- C#DataTable导出Excel,并实现合并单元格
- 解决Word2010中插入图片时变成空白框问题
- 详解RS232、RS485、RS485、串口&握手