home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / HPACK78S.ZIP / lza / model4.h < prev    next >
C/C++ Source or Header  |  1992-06-22  |  1KB  |  39 lines

  1. /****************************************************************************
  2. *                                                                            *
  3. *                            HPACK Multi-System Archiver                        *
  4. *                            ===========================                        *
  5. *                                                                            *
  6. *                           Low Position Model Interface                        *
  7. *                            MODEL4.H  Updated 03/08/90                        *
  8. *                                                                            *
  9. * This program is protected by copyright and as such any use or copying of    *
  10. *  this code for your own purposes directly or indirectly is highly uncool    *
  11. *                      and if you do so there will be....trubble.                *
  12. *                 And remember: We know where your kids go to school.            *
  13. *                                                                            *
  14. *        Copyright 1990, 1991  Peter C.Gutmann.  All rights reserved            *
  15. *                                                                            *
  16. ****************************************************************************/
  17.  
  18. /* The set of symbols that may be encoded */
  19.  
  20. #define NO_LOW_POS    128
  21.  
  22. /* Translation tables between low positions and symbol indices */
  23.  
  24. extern int lowPosToIndex[];
  25. extern int indexToLowPos[];
  26.  
  27. /* Cumulative frequency table */
  28.  
  29. #ifndef MAX_FREQ
  30.   #define MAX_FREQ    16383                /* Max freq.count: 2^14 - 1 */
  31. #endif /* !MAX_FREQ */
  32.  
  33. extern int lowPosCumFreq[];                /* Cumulative symbol frequencies */
  34.  
  35. /* Prototypes for functions in MODEL4.C */
  36.  
  37. void startLowPosModel( void );
  38. void updateLowPosModel( const int symbol );
  39.