Built-in functions in c++

﹥>﹥吖頭↗ 提交于 2020-01-13 11:40:25

问题


I was browsing through some codes at the end of the contest and found out that many people were using functions like __gcd(int,int) . What are these functions ? Similar functions include

__builtin_popcount(int)

__builtin_ctz(int)

__builtin_clz(int)

Where can I study about these functions ? Googling it didn't help much.


回答1:


Those are all GCC specifics. you can read about them here: http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html#C-Extensions - but be aware, they're NOT C/C++ Standards.



来源:https://stackoverflow.com/questions/13443463/built-in-functions-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!