If for some reason you can't make it a one time calculation, you could use N-Bit math.

http://www.picbasic.co.uk/forum/showthread.php?t=12433 This basically uses assembly routines, so it shouldn't bother the interrupts.