I'm writing my first file compressor. Linked below is my Arithmetic class:
I have credited the source which I learned from:The Data Compression Book 2nd Edition (1996) by Mark Nelson Chapter 5 - Arithmetic Coding
I have a sticking point with the decompression algorithm due to the divide encoded number by range step. Can someone please advise an alternate faster solution? Thank you.
My documentation is here: