comp.lang.ada
 help / color / mirror / Atom feed
From: Matt Borchers <mattborchers@gmail.com>
Subject: Re: Quick inverse square root
Date: Sun, 3 Jan 2021 20:28:31 -0800 (PST)	[thread overview]
Message-ID: <4527f9cc-c4a9-4082-b0bc-80b4e195c3d0n@googlegroups.com> (raw)
In-Reply-To: <cdd6f0e2-44eb-44cf-a2a3-6eafe3b0d469n@googlegroups.com>

I quickly found that F'Size is not static when F is a type used in a generic 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 subtraction as well as the shift.  So, this is also a non-starter.

Matt

  reply	other threads:[~2021-01-04  4:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-02 22:26 Quick inverse square root Matt Borchers
2021-01-02 23:18 ` Jeffrey R. Carter
2021-01-03 10:58 ` Dmitry A. Kazakov
2021-01-03 22:31   ` Matt Borchers
2021-01-03 23:47     ` Jeffrey R. Carter
2021-01-04  3:50       ` Matt Borchers
2021-01-04  4:28         ` Matt Borchers [this message]
2021-01-04 11:04         ` Jeffrey R. Carter
2021-01-04 11:13     ` AdaMagica
2021-01-04 11:28       ` AdaMagica
2021-01-04 12:13         ` Dmitry A. Kazakov
2021-01-04 13:39 ` Egil H H
2021-01-04 20:55   ` Matt Borchers
2021-01-04 21:06     ` Paul Rubin
2021-01-05  2:22       ` Matt Borchers
2021-01-07 17:49     ` Brian Drummond
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox