comp.lang.ada
 help / color / mirror / Atom feed
From: Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>
Subject: Re: Compute a Sin(X) and Cos(X) pair, FSINCOS, inlining
Date: Wed, 09 Jul 2003 22:40:43 +0200
Date: 2003-07-09T22:40:43+02:00	[thread overview]
Message-ID: <87brw377sk.fsf@Login.CERT.Uni-Stuttgart.DE> (raw)
In-Reply-To: 3F0C7B5D.81F0FDCD@somewhere.nil

Gautier Write-only <gautier@somewhere.nil> writes:

> Is there a way to make a compiler inline sufficienly the Run-Time library
> and detect cases where Sin(X) and Cos(X) are in one area and X is the
> same expression, in order to produce a FSINCOS instruction ?

AFAIK, the x86 FSINCOS operation hasn't quote the semantics required
by the ARM.  But if GNAT already uses FSIN and FCOS directly, this
shouldn't be a real problem.

> A solution would be to add a Sin_Cos procedure to the Ada 0Y standard.

It's probably easier to add a new pipehole optimization to GCC. 8-)



  reply	other threads:[~2003-07-09 20:40 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 [this message]
2003-07-10  1:51 ` Jeffrey Carter
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