From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8a773f114aa79a78 X-Google-Attributes: gidfee84,public From: Dirk Grunwald Subject: Re: How is sin and cos implemented on the ALPHA architecture? Date: 1996/11/20 Message-ID: #1/1 X-Deja-AN: 197753766 references: <56tn8b$nkc@news0-alterdial.uu.net> organization: University of Colorado nntp-posting-user: grunwald newsgroups: comp.unix.osf.osf1 > 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