comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Compute a Sin(X) and Cos(X) pair, FSINCOS, inlining
Date: Thu, 10 Jul 2003 01:51:31 GMT
Date: 2003-07-10T01:51:31+00:00	[thread overview]
Message-ID: <3F0CC729.2020409@spam.com> (raw)
In-Reply-To: 3F0C7B5D.81F0FDCD@somewhere.nil

Gautier Write-only wrote:
 >
 > In some FPUs (like the Intel x387), Sin and Cos are computed
 > simultaneously. There is an instruction (Intel x387: FSINCOS) to get
 > both together for +/- the time cost of one of each.

And in some FPUs they're not. So you're not going to get language 
support for such a platform-dependent thing. Probably the best thing you 
can hope for is a compiler- and platform-dependent package with such a 
function.

Most likely, you'll have to write your own using a machine-code insertion.

-- 
Jeff Carter
"If you think you got a nasty taunting this time,
you ain't heard nothing yet!"
Monty Python and the Holy Grail




  parent reply	other threads:[~2003-07-10  1:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-09 20:30 Compute a Sin(X) and Cos(X) pair, FSINCOS, inlining Gautier Write-only
2003-07-09 20:40 ` Florian Weimer
2003-07-10  1:51 ` Jeffrey Carter [this message]
2003-07-12  6:26 ` Gautier Write-only
2003-07-13 23:32   ` Jerry van Dijk
replies disabled

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