You could split A into multiple components (1st to 4th byte, 5th to 8th byte), and multiply/divide those components separately. That would still fit into 64bit.
Partial example is here: https://codereview.stackexchange.com/questions/72286/multipl...
Partial example is here: https://codereview.stackexchange.com/questions/72286/multipl...