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: gcc handling of the sin, cos functions


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


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