This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: abs/fabs/labs not builtin in C++



> Why are abs, labs and fabs not builtins in C++?  A comment in cp/decl.c
> claims they don't work with libg++, but i could not find any problems
> after enabling them, and libg++ is obsolete anyway.

If this is done, we need to make sure to provide all the proper overloads.
Essentially there should be an abs() for every builtin numeric type.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]