/*
 * Copyright (c) 1997-2005 Alexandros Eleftheriadis and Danny Hong.
 * 
 * This file is part of Flavor, developed at Columbia University
 * (www.ee.columbia.edu/flavor).
 *
 * Flavor is free software; you can redistribute it and/or modify
 * it under the terms of the Flavor Artistic License as described in
 * the file COPYING.txt. 
 *
 */

/*
 * Authors:
 * Danny Hong <danny@ee.columbia.edu>
 *
 */


/* 
 * The binary arithmetic coder described in 
 * @ARTICLE{
 * AUTHOR  = {Moffat, A. and Neal, R. M. and Witten, I. H.},
 * TITLE   = {Arithmetic Coding Revisited},
 * JOURNAL = {ACM Transactions on Information Systems},
 * VOLUME  = {16},
 * PAGES   = {256--294},
 * YEAR    = {1998},
 *
 */


/* Default values used
 *  "soc",  0,         // LPS over MPS 
 *  "te",   1,         // Assign the TE to the MPS subinterval 
 *  "end",  32,        // Use prec=32 bits to disambiguate the last symbol
 */

bac TOISCoder { 
    "prec", 32,        // 32-bit precision
    "ooc",  1,         // Divide first 
    "norm", (1<<30)+1, // Renormalize whenever R < ((1<<30)+1)
    "init", 1<<31      // Init: R=1<<31
}