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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.128.200 with SMTP id k69mr11028194ioi.51.1519787003262; Tue, 27 Feb 2018 19:03:23 -0800 (PST) X-Received: by 10.157.14.214 with SMTP id 80mr747952otj.9.1519787003127; Tue, 27 Feb 2018 19:03:23 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!o66no519332ita.0!news-out.google.com!a2ni1294ite.0!nntp.google.com!w142no520683ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 27 Feb 2018 19:03:22 -0800 (PST) In-Reply-To: <444f2814-d377-4c0b-8def-aee59034ee35@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:191:8303:2100:7466:f44c:da21:40b1; posting-account=fdRd8woAAADTIlxCu9FgvDrUK4wPzvy3 NNTP-Posting-Host: 2601:191:8303:2100:7466:f44c:da21:40b1 References: <001e93f1-b645-4312-8a29-caca3860b560@googlegroups.com> <444f2814-d377-4c0b-8def-aee59034ee35@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: 64-bit unsigned integer? From: Robert Eachus Injection-Date: Wed, 28 Feb 2018 03:03:23 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2251 X-Received-Body-CRC: 2715693201 Xref: reader02.eternal-september.org comp.lang.ada:50697 Date: 2018-02-27T19:03:22-08:00 List-Id: On Tuesday, February 27, 2018 at 1:17:07 PM UTC-5, Dan'l Miller wrote: > Dan'l Miller wrote: > x86 logical & arithmetic shifting instructions: http://jsimlo.sk/docs/cp= u/index.php/shl.html > x86 roll-shifting instructions: http://jsimlo.sk/docs/cpu/index.php/ror.h= tml > ARM barrel-shifter instructions: http://www.davespace.co.uk/arm/introduc= tion-to-arm/barrel-shifter.html This is one of those cases where you want to get the code correct, then wor= ry about fast. You certainly can define your own unsigned type, in a packa= ge where the arithmetic operations are provided as assembler functions. Th= e tricky part is deciding to derive from modular will get you things like l= oop counters and attributes ('SUCC) that don't work as you expect. But if = you just need an accumulator for fast arriving data, have at it.