This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: another baby step - namespace adjustments
- From: DJ Delorie <dj at redhat dot com>
- To: zack at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 14 Jul 2003 14:10:25 -0400
- Subject: Re: another baby step - namespace adjustments
- References: <87ptkd4wum.fsf@egil.codesourcery.com>
> 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.