I'm working in a system that only supports 32-bit integers. To get a 64-bit unsigned integer, I simply used two 32-bit integers, one of which has the upper 32-bit integers (hi) and the other the lower 32-bit integers (hi ) contains. lo).
I also had to create arithmetic for this (Hi, Lo) structure, but I found it almost impossible to look for existing arithmetic for such structures. The only useful thing I could find is the arithmetic written in openSUSE: https://github.com/openSUSE/checkmedia/blob/master/u64.h
Is there a name for what I am trying to do? (Simulating a double-width integer with a (hi, lo) structure and implementing arithmetic with bitwise operations)
& # 39; arithmetic with arbitrary precision & # 39; is concludeHowever, I do not work with infinite precision.