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=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:c92:: with SMTP id 140mr73244128qkm.152.1609813372039; Mon, 04 Jan 2021 18:22:52 -0800 (PST) X-Received: by 2002:a25:9902:: with SMTP id z2mr107068346ybn.339.1609813371851; Mon, 04 Jan 2021 18:22:51 -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: Mon, 4 Jan 2021 18:22:51 -0800 (PST) In-Reply-To: <87mtxo9zuu.fsf@nightsong.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2601:193:4103:71a0:6520:e739:75b0:5556; posting-account=1tLBmgoAAAAfy5sC3GUezzrpVNronPA- NNTP-Posting-Host: 2601:193:4103:71a0:6520:e739:75b0:5556 References: <6489a95e-dae1-486e-9aee-78e9d6e50ecan@googlegroups.com> <87mtxo9zuu.fsf@nightsong.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Quick inverse square root From: Matt Borchers Injection-Date: Tue, 05 Jan 2021 02:22:52 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:61032 List-Id: On Monday, January 4, 2021 at 4:06:03 PM UTC-5, Paul Rubin wrote: > Matt Borchers writes: > > As I said, I turned a bunch of ugly C into a few lines of pretty Ada > > for a skeptic. > You could write the C code similarly to the Ada, using a union. I don't > know why the C program isn't written that way. Maybe it is very old. That is a good point Paul. At least Ada can "keep up" and do the low-level things that some C users claims to be best choice and thus the only good choice.