Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / diskimage / dms / getbits.c
blob1d8c94b0fb3c8869a42c023276b18d39c393148b
1 /*
2 * xDMS v1.3 - Portable DMS archive unpacker - Public Domain
3 * Written by Andre Rodrigues de la Rocha <adlroc@usa.net>
4 * Functions/macros to get a variable number of bits
5 *
6 */
8 #include "xdms.h"
10 const ULONG mask_bits[]={
11 0x000000L,0x000001L,0x000003L,0x000007L,0x00000fL,0x00001fL,
12 0x00003fL,0x00007fL,0x0000ffL,0x0001ffL,0x0003ffL,0x0007ffL,
13 0x000fffL,0x001fffL,0x003fffL,0x007fffL,0x00ffffL,0x01ffffL,
14 0x03ffffL,0x07ffffL,0x0fffffL,0x1fffffL,0x3fffffL,0x7fffffL,
15 0xffffffL
18 void initbitbuf (struct xdms_data *xdms, UBYTE *in) {
19 xdms->bitbuf = 0;
20 xdms->bitcount = 0;
21 xdms->indata = in;
22 DROPBITS(0);