piclist 2017\09\05\191222a >
Thread: Division routines.
face picon face BY : William Westfield email (remove spam text)

On Sep 5, 2017, at 10:33 AM, David C Brown <spam_OUTdcb.homespamSTOPspamgmail.com> wrote:

> in my case the divisor is always greater than the dividend so I
> want a result that is conceptually between 0 and nearly 1 with an implied
> binary point to the left.

It’s equivalent to multiplying your dividend  by 256 or 65536 and using 16/32bit division, right?  Except that you know you’ll run out of 1 bits comparatively early, and might be able to optimize away the extra registers.  Hmm.  An interesting problem!

-- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at

<4E5AA722-B9AD-4063-9621-86E0D64D1055@mac.com> quoted-printable

In reply to: <CAFo_nNrrP-pkzd4t+65LLLrq7hj=EB8z6yKgLKyEGnjBaHtjtw@mail.gmail.com>
See also: www.piclist.com/techref/microchip/math/index.htm?key=division
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Division routines.

month overview.

new search...