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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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.66.77.39 with SMTP id p7mr3817474paw.0.1349132144154; Mon, 01 Oct 2012 15:55:44 -0700 (PDT) Received: by 10.68.242.37 with SMTP id wn5mr4347473pbc.4.1349132144098; Mon, 01 Oct 2012 15:55:44 -0700 (PDT) Path: t10ni23601286pbh.0!nntp.google.com!kr7no778795pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 1 Oct 2012 15:55:43 -0700 (PDT) In-Reply-To: <506a0b6f$0$9525$9b4e6d93@newsspool1.arcor-online.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.20.190.126; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 69.20.190.126 References: <50673111$0$9505$9b4e6d93@newsspool1.arcor-online.net> <38594cbf-b52d-4002-8db9-410f55126a09@googlegroups.com> <50694f43$0$6577$9b4e6d93@newsspool3.arcor-online.net> <036db9eb-36e8-4a2e-8832-cecd9f1f4e2d@googlegroups.com> <506a0b6f$0$9525$9b4e6d93@newsspool1.arcor-online.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0f03e339-d22f-4690-9285-e11ebadcc503@googlegroups.com> Subject: Re: highest bit, statically determined From: Shark8 Injection-Date: Mon, 01 Oct 2012 22:55:44 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-10-01T15:55:43-07:00 List-Id: I wouldn't be surprised if you could make it faster by making it a constant. Refactor something like: Type Light_Vector is array(0..255) of natural; last_bit_a: Constant Light_Vector:= (0|1=>0, 2|3=>1, 4..7=>2, 8..15=>3, 16..31=>4, 32..63=>5, 64..127=>6, 128..255=>7);