This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: another baby step - namespace adjustments


> libiberty:
>         * approx-sqrt.c: New file.
>         * Makefile.in (CFILES): Add approx-sqrt.c.
>         (REQUIRED_OFILES): Add approx-sqrt.o.
>         * functions.texi: Regenerate.
> include:
>         * libiberty.h: Prototype approx_sqrt.

This doesn't make sense.  There's already a standard sqrt() function.
If that's not portable enough, adding sqrt() to libiberty is the right
solution.  I don't think it makes sense to add a non-standard
replacement to libiberty when there's already a standard one to mimic.


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