[英]Built-in functions in c++
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)
. 我在比赛结束时浏览了一些代码,发现很多人都在使用像
__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.
谷歌搜索没有多大帮助。
Those are all GCC specifics. 这些都是GCC的细节。 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.
你可以在这里阅读它们: http : //gcc.gnu.org/onlinedocs/gcc/C-Extensions.html#C-Extensions - 但要注意,它们不是C / C ++标准。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.