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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7e15102eb14c0020 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.181.12.101 with SMTP id ep5mr621005wid.1.1348956452312; Sat, 29 Sep 2012 15:07:32 -0700 (PDT) Path: q10ni31920795wif.0!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!46.4.82.166.MISMATCH!weretis.net!feeder1.news.weretis.net!news.imp.ch!newsfeed.tiscali.ch!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sun, 30 Sep 2012 00:06:51 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: highest bit, statically determined References: <50673111$0$9505$9b4e6d93@newsspool1.arcor-online.net> <506769fb$0$6580$9b4e6d93@newsspool3.arcor-online.net> In-Reply-To: <506769fb$0$6580$9b4e6d93@newsspool3.arcor-online.net> Message-ID: <506770fc$0$6566$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 30 Sep 2012 00:06:52 CEST NNTP-Posting-Host: 0a199deb.newsspool3.arcor-online.net X-Trace: DXC=M7B_M@FoSE>RLigj];iP=8McF=Q^Z^V384Fo<]lROoR18kFejV8NH>negGeW]85>5[6dLkO14 X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-09-30T00:06:52+02:00 List-Id: On 29.09.12 23:36, Georg Bauhaus wrote: > On 29.09.12 21:16, Bill Findlay wrote: > > function first_1_bit > function First_1_Bit_A (y : octet; Shift : Integer := 0) return Natural is first_1_bit is better by between 30% and 40% speed here. Inlining can mean that the program runs about 4x as fast, for each of the two functions. (But, with GNAT, the deprecated -gnatN has *no* effect in the case of first_1_bit_a. Best options: -O2 -funroll-loops -gnatp -gnatn.)