Chronology | Current Month | Current Thread | Current Date |
[Year List] [Month List (current year)] | [Date Index] [Thread Index] | [Thread Prev] [Thread Next] | [Date Prev] [Date Next] |
Stefan Jeglinski wrote:
> Indeed, the two modern Digital Signal Processors I have worked
> with both do division by subtraction. I doubt either TI or
> Analog Devices would consider it laughable.
....
> Of course, division is extremely expensive on a DSP because of
> this method. Typically, a 16-bit division takes 16 clock
> cycles, whereas multiplication takes one clock cycle,
Bingo! That timing info strongly suggests that TI and Analog
Devices are using long division. It proves they cannot be
using division-by-subtraction. The latter consists of simply
subtracting the same thing over and over again while counting,
and would require roughly 2^16 clock cycles if there are 16
bits in the quotient.
There's an exponentially huge difference between
sub-shift-sub-shift-sub (aka long division) and
sub-sub-sub-sub-sub-sub-sub-sub (aka subtraction
by division).