Arithmetic Encoding Using Fixed-Point Math
preshing.com