DIVIDER
PIC18F devices do not provide any hardware support
for division. Typical divide operations (signed 16/16 or
16/8) performed, using the standard PIC18F math
library, can take up to 38 instruction cycles to execute.
PIC24F devices do not have a hardware divider per se.
Instead, the PIC24F ALU is configured in hardware to
support a divide instruction, DIV. Together with the
REPEAT control instruction, DIV allows the ALU to
automatically execute the iterative division process as
a simple sequence instead of a long algorithm. DIV
supports several forms of 32/16 and 16/16 divides,
including fixed-point and fractional, and performs
executions in 19 instruction cycles.