We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Is it possible to have a 64bit or 96 Integer addition in C?
"i hope you can show me a little example"
struct U64 { unsigned long msl; unsigned long lsl; }; struct U64 U64_sum(struct U64 augend, struct U64 addend) { struct U64 sum; sum.msl = augend.msl + addend.msl; sum.lsl = augend.lsl + addend.lsl; if (sum.lsl < augend.lsl) /* Carry? */ ++sum.msl; return sum; }