内置函数在c ++ [英] Built-in functions in c++

查看:193
本文介绍了内置函数在c ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在比赛结束时浏览了一些代码,发现很多人都使用 __ gcd(int,int)的函数。这些功能是什么?类似的函数包括

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.

推荐答案

这些都是GCC的细节。您可以在这里阅读: http://gcc.gnu。 org / onlinedocs / gcc / C-Extensions.html#C扩展 - 但请注意,它们不是C / C ++标准。

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.

这篇关于内置函数在c ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆