This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc handling of the sin, cos functions
- To: jcarrig at ieee dot org
- Subject: Re: gcc handling of the sin, cos functions
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 19 Nov 1999 01:00:22 -0200
- Cc: gcc at gcc dot gnu dot org
- References: <3834ABE5.8FF1BA4B@bellatlantic.net>
On Nov 18, 1999, Jim Carrig <jcarrig@bellatlantic.net> wrote:
> I get the feeling that the gcc C compiler (math library) for Intel
> platforms does not take advantage of the floating point unit in
> calculating sin, cos, exp etc. Is this correct?
I believe it is, as this is a C library issue. On GNU/Linux, this is
handled by the GNU C Library, which is a separate project: the math
functions are defined as inline assembly code, making use of the
special instructions. But gcc might be taught to expand these
particular functions by itself, just like it currently does with some
string and memory functions.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them