home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
l
/
lds_10.zip
/
ASH
/
ARITH.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-15
|
565b
|
26 lines
#define MIN_RANGE 0x4001
#define MAX_RANGE 0xFFFF
struct coder_state
{
unsigned low;
unsigned range;
int uflow;
int bits;
int fpos;
};
void InitCoder (void);
void CloseCoder (void);
void EncodeArith (unsigned, unsigned, unsigned);
void StartDecode (void);
int DecodeArith (unsigned);
void UpdateDecoder (unsigned, unsigned, unsigned);
void SaveCoderState (struct coder_state *);
void RestoreCoderState (struct coder_state *);
int CodeLength (struct coder_state *);
int ResetOutputPointer (int);