home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Amiga / Workbench / Archivers / PPCxDMS.lha / PPCxDMS / source.lha / src / getbits.h < prev    next >
C/C++ Source or Header  |  1998-02-28  |  285b  |  11 lines

  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.  
  11.