Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Dirk Grunwald <grunwald@foobar.cs.colorado.edu>
Subject: Re: How is sin and cos implemented on the ALPHA architecture?
Date: 1996/11/20	[thread overview]
Message-ID: <qxpybfwf8yb.fsf@foobar.cs.colorado.edu> (raw)
In-Reply-To: 56tn8b$nkc@news0-alterdial.uu.net


> needs.  You get at this using a -math_library fast switch when compiling
> (I'm not sure if DEC C++ supports this.)  There are also routines that will
> return both the SIN and COS of an argument, this is faster than calling
> the SIN and COS routines separately.  Unfortunately, the sincos routine returns
> values in registers F0 and F1, which is difficult to get at from languages
> other than Fortran.
> -- 

I'm assuming that Digital Unix uses a CORDIC method to implement
sin/cos?  If this is the case, sincos() should be exactly the same
speed as computing either sin() or cos().

There's also a vector sin/cos routine in the DXML. I don't know how
much faster it is.



-- 
Dirk Grunwald                 Assoc. Prof, Univ. of Colorado at Boulder



  reply	other threads:[~1996-11-20  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-20  5:00 How is sin and cos implemented on the ALPHA architecture? Ian Lintault
1996-11-20  5:00 ` Dirk Grunwald [this message]
1996-11-21  5:00   ` Steve Lionel
1996-11-20  5:00 ` Steve Lionel
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox