//Java Source code for Range Coder //By Sachin Garg, 2006 // //This range coder is based upon the carry-less range coder //implementation by Dmitry Subbotin, and uses 64-bit variables //for improved performance. // //http://www.sachingarg.com/compression/entropy_coding/java_range_coder public class RangeCoder64 { static final protected long Top=1L<<48; static final protected long Bottom=1L<<40; static final protected long MaxRange=Bottom; protected long Low=0; protected long Range=0x00FFFFFFFFFFFFFFL; }