From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a0c:c211:: with SMTP id l17mr74298535qvh.53.1609734512073; Sun, 03 Jan 2021 20:28:32 -0800 (PST) X-Received: by 2002:a25:db81:: with SMTP id g123mr106830474ybf.277.1609734511826; Sun, 03 Jan 2021 20:28:31 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 3 Jan 2021 20:28:31 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2601:193:4103:71a0:a9cf:2d07:fec3:bf62; posting-account=1tLBmgoAAAAfy5sC3GUezzrpVNronPA- NNTP-Posting-Host: 2601:193:4103:71a0:a9cf:2d07:fec3:bf62 References: <7fe2291a-bc12-4708-85aa-0ffbdc25b2bfn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4527f9cc-c4a9-4082-b0bc-80b4e195c3d0n@googlegroups.com> Subject: Re: Quick inverse square root From: Matt Borchers Injection-Date: Mon, 04 Jan 2021 04:28:32 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:61023 List-Id: I quickly found that F'Size is not static when F is a type used in a generi= c instantiation so the following does not work. type Modular is mod 2**F'Size; I then realized that the idea of using a packed Boolean array does not lend= itself to easily transform the floating point magic number calculation to = a packed Boolean array and then I would also have to deal with the subtract= ion as well as the shift. So, this is also a non-starter. Matt