Thomas Dowad

Division...extending bit width

Discussion created by Thomas Dowad on Apr 5, 2007
Latest reply on Apr 25, 2007 by Thomas Dowad
Hi All

The Freescale Integer Math app note (AN1219) does not use the DIV instruction for extending division to 32 bit dividend/16 bit divisor, the author resorts to shift and subtract. I have not been able to find an algorithm that takes a advantage of a hardware divide instruction.

Does anyone have working code that uses DIV, or is it inherently inefficient and thus pointless?