Where can I find soft-multiply and divide algorithms?

Posted by srking on Stack Overflow See other posts from Stack Overflow or by srking
Published on 2010-03-05T22:23:59Z Indexed on 2010/06/01 1:03 UTC
Read the original article Hit count: 239

I'm working on a micro-controller without hardware multiply and divide. I need to cook up software algorithms for these basic operations that are a nice balance of compact size and efficiency. My C compiler port will employ these algos, not the the C developers themselves.

My google-fu is so far turning up mostly noise on this topic.

Can anyone point me to something informative? I can use add/sub and shift instructions. Table lookup based algos might also work for me, but I'm a bit worried about cramming so much into the compiler's back-end...um, so to speak.

Thanks!

© Stack Overflow or respective owner

Related posts about c

    Related posts about algorithm