I am aware of this question about getting the quotient and remainder in a single operation in C. However the C div and ldiv functions take int and long arguments. But how can I perform unsigned division and save both the remainder and quotient in C? There is to my knowledge no unsigned versions of div or ldiv. Will I have to use inline assembly?