comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Profiling Ada binaries
Date: Fri, 5 Aug 2016 15:27:25 -0500
Date: 2016-08-05T15:27:25-05:00	[thread overview]
Message-ID: <no2sr5$krm$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: 588a93bb-b39a-4196-b6ca-5e673fd256dd@googlegroups.com

<rieachus@comcast.net> wrote in message 
news:588a93bb-b39a-4196-b6ca-5e673fd256dd@googlegroups.com...
On Monday, August 1, 2016 at 7:36:45 PM UTC-4, Jeffrey R. Carter wrote:

>> If you look at the requirements for the Cos function in Annex A and Annex 
>> G (if
>> implemented, which it is for GNAT), you'll find a number of requirements 
>> for
>> accuracy and special cases. If you look at the definition of the built-in
>> function, you'll likely find that it doesn't meet all of those 
>> requirements. Any
>> call to Cos has to involve wrapping a call to the built-in function in 
>> code to
>> ensure those requirements are met, so you won't find a call to the 
>> built-in
>> function in the generated code.
>
>Yes, any "strict" LRM matching implementation probably won't use the 
>built-in functions.

Can't really, at least for the Intel implementations of Sin, Cos, etc. Those 
don't do argument reduction, which is required to get the appropriate 
accuracy. (I recall reading the Intel processor manual for those 
instructions, and they recommended reducing the arguments before using 
them.) I suppose one could try to do all of that inline, but I can't see the 
reason to bother with special code for that -- the usual inlining mechanisms 
will do that if it makes sense.

                                     Randy.


  reply	other threads:[~2016-08-05 20:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-22 13:24 Profiling Ada binaries Markus Schöpflin
2016-07-22 14:59 ` Alejandro R. Mosteo
2016-07-22 15:05   ` Alejandro R. Mosteo
2016-07-25  7:01     ` Markus Schöpflin
2016-07-25 16:45       ` rieachus
2016-07-25 17:14         ` Simon Wright
2016-07-25 22:05           ` rieachus
2016-07-26  8:37         ` Markus Schöpflin
2016-08-01 22:40           ` rieachus
2016-08-01 23:36             ` Jeffrey R. Carter
2016-08-02  7:00               ` Markus Schöpflin
2016-08-05  3:18               ` rieachus
2016-08-05 20:27                 ` Randy Brukardt [this message]
2016-08-02  6:39             ` Markus Schöpflin
2016-07-25  6:57   ` Markus Schöpflin
replies disabled

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