~ubuntu-branches/ubuntu/karmic/e-uae/karmic

« back to all changes in this revision

Viewing changes to src/dms/getbits.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Suerken
  • Date: 2008-07-05 14:02:02 UTC
  • Revision ID: james.westby@ubuntu.com-20080705140202-u5aagnhtg31pmjc3
Tags: upstream-0.8.29-WIP4
ImportĀ upstreamĀ versionĀ 0.8.29-WIP4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
extern ULONG mask_bits[], bitbuf;
 
3
extern UCHAR *indata, bitcount;
 
4
 
 
5
#define GETBITS(n) ((USHORT)(bitbuf >> (bitcount-(n))))
 
6
#define DROPBITS(n) {bitbuf &= mask_bits[bitcount-=(n)]; while (bitcount<16) {bitbuf = (bitbuf << 8) | *indata++;  bitcount += 8;}}
 
7
 
 
8
 
 
9
void initbitbuf(UCHAR *);
 
10