added support to 32bit CPUs by implementation of the do_div() macro.