Only half of the longint division routines are implemented, only one is implemented correctly, and zero are implemented in a good way. First implement the rest correctly, then optimize. Use the same algorithm as in long.js, which has a Lua version floating around somewhere.
Only half of the longint division routines are implemented, only one is implemented correctly, and zero are implemented in a good way. First implement the rest correctly, then optimize. Use the same algorithm as in long.js, which has a Lua version floating around somewhere.