I am now implementing 64bits unsigned integer division on 32bit machine.
I can represent 64bits unsigned integer with
struct {
unsigned int a,
unsigned int b
}
I am trying to implement this with restoring algorithm.
https://www.geeksforgeeks.org/restoring-division-algorithm-unsigned-integer/
I have to store 65bits for the accumulator and M, but how can I manage this..?