From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!reality.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Trigonometric operations on x86 and x64 CPUs Date: Mon, 19 Dec 2016 17:11:25 -0600 Organization: JSA Research & Innovation Message-ID: References: <8d0f7f03-9324-4702-9100-d6b8a1f16fc5@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: franka.jacob-sparre.dk 1482189085 16876 24.196.82.226 (19 Dec 2016 23:11:25 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 19 Dec 2016 23:11:25 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: news.eternal-september.org comp.lang.ada:32917 Date: 2016-12-19T17:11:25-06:00 List-Id: wrote in message news:a6734b29-5ffc-4938-bbc2-453f7ae92325@googlegroups.com... ... >> Creating a package which does the range reduction right, and passes >> small values through to the hardware instructions is not all that hard. > >Such implementations are common, due the hype created by sensationalists. Yeah, like the people at Intel who document how to use these instructions. :-) They recommend (at least in the documents I have seen) to do argument reduction before using the instructions. There's also the little matter of meeting the Ada language requirements. The people who put accuracy requirements on Ada numeric libraries might have been "sensationalists"", but those of us implementing Ada have to abide by those requirements. (Argubly, one of the advantages of Ada is that there are requirements, so you have some asssurance out of the box that the numerics will work predicably, no matter what target you use.) Randy.