I am looking for an efficient (optionally standard, elegant and easy to implement) solution to multiply relatively large numbers, and store the result into one or several integers :
I want to handle the special case where multiplying two numbers together causes an overflow. The code looks something like this: