From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3dc050a3099d6072 X-Google-Attributes: gidfee84,public From: eklund@fman.zko.dec.com (Dave Eklund) Subject: Re: how to use sincos()? Date: 1995/08/11 Message-ID: <40fsbp$lra@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 107978623 distribution: world references: organization: Digital Equipment Corporation reply-to: eklund@fman.zko.dec.com (Dave Eklund) newsgroups: comp.unix.osf.osf1 I can only speak for DEC Fortran where you can get a call to sincos out of a code fragment like: do i=1,100 type *,sin(float(i)),cos(float(i)) enddo end The compiler recognizes the need for both the sin and cos values, and generates code accordingly, picking up the values from the appropriate registers. I believe that DEC C does the same thing with similar code. Dave Eklund