g4ur4v
g4ur4v

Reputation: 3288

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) . 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.

Upvotes: 5

Views: 3568

Answers (1)

Aniket Inge
Aniket Inge

Reputation: 25733

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.

Upvotes: 4

Related Questions