From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,95a7ce6b0163274c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-07 14:45:34 PST Path: newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: implementing software unsigned divide Date: 07 May 2001 17:42:37 -0400 Organization: NASA Goddard Space Flight Center Message-ID: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 989272687 2762 128.183.220.71 (7 May 2001 21:58:07 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 7 May 2001 21:58:07 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Xref: newsfeed.google.com comp.lang.ada:7287 Date: 2001-05-07T21:58:07+00:00 List-Id: I'm porting GNAT to a 16 bit microprocessor that does not provide a hardware instruction for unsigned divide (it has multiply and signed divide, both 16 and 32 bit). Can anyone provide a reference to a book that discusses how to do this, and/or an algorithm that does it? I've looked in Knuth, and did an initial web search, and haven't found anything. -- -- Stephe