delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/06/05:12:45

From: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Message-Id: <199703061007.LAA08442@gilberto.physik.rwth-aachen.de>
Subject: Re: sin & cos functions?
In-Reply-To: <331E6B93.3B63@comports.com> from J at "Mar 6, 97 02:00:38 am"
To: j AT comports DOT com
Date: Thu, 6 Mar 1997 11:07:32 +0100 (MET)
Cc: djgpp AT delorie DOT com
Reply-To: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
MIME-Version: 1.0

> Anyone got a library that defines sin (sine) and cos (cosine) functions?

What is the problem with using libm.a (-lm) ? Or, if you have a FPU use

cc -S -O2 -ffast-math -mfancy-math-387 -m486 c.c

which produces in line fsin instructions for the FPU.

(Don't know if djgpp has the fancy-math-387 option - at least this
applies for gcc-2.7.1 under FreeBSD and probably linux)

> 
> If so, please e-mail me the appropriate includes and source code.
> 
> thanks,
> -- 
> J <j AT comports DOT com>
> 
> "...and the people looked mean."
> 	-- PHISH from Esther.
> 

--
Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019