Now if I could only find what I did with it ....

... I did find this: http://www.bearcave.com/software/divide.htm , the author has some C code that might do it for you.

The central part of his code has:

while (remainder < divisor) {

bit = (dividend & 0x80000000) >> 31;

remainder = (remainder << 1) | bit;

d = dividend;

dividend = dividend << 1;

num_bits--;

}

(he says that always goes one step too far, so he just backs up once.)

Is that what you were looking for?

]]>i am looking for something using binary arithmetic]]>