comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Multiplying fixed-point by long integer
Date: Thu, 4 Oct 2012 19:12:28 -0700 (PDT)
Date: 2012-10-04T19:12:28-07:00	[thread overview]
Message-ID: <cb902c87-cb84-40d1-adf1-7a1144bc652e@googlegroups.com> (raw)
In-Reply-To: <b06c0b56-3f3c-42e9-8b3a-76a4a27fc1cc@googlegroups.com>

You could use div & mod to break up the big integer into something Integer can handle. (Use mod to find an even divisor, and multiply that to the fixed-point div times... the restriction is it won't work on a number whose prime-factors are not contained in Positive'Range.)



  reply	other threads:[~2012-10-05  2:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-05  1:46 Multiplying fixed-point by long integer Adam Beneschan
2012-10-05  2:12 ` Shark8 [this message]
2012-10-05  4:23 ` Jeffrey Carter
2012-10-05  4:25 ` tmoran
2012-10-05 15:41   ` Adam Beneschan
2012-10-05  5:14 ` anon
2012-11-06 17:20 ` Jacob Sparre Andersen
2012-11-06 20:33   ` Adam Beneschan
replies disabled

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