Home
last modified time | relevance | path

Searched refs:bitbuf (Results 1 – 4 of 4) sorted by relevance

/external/zlib/src/contrib/blast/
Dblast.c43 int bitbuf; /* bit buffer */ member
73 val = s->bitbuf; in bits()
85 s->bitbuf = val >> need; in bits()
132 int bitbuf; /* bits from stream */ in decode() local
136 bitbuf = s->bitbuf; in decode()
143 code |= (bitbuf & 1) ^ 1; /* invert code */ in decode()
144 bitbuf >>= 1; in decode()
147 s->bitbuf = bitbuf; in decode()
163 bitbuf = *(s->in)++; in decode()
388 s.bitbuf = 0; in blast()
/external/toybox/toys/pending/
Dcompress.c140 struct bitbuf { struct
146 struct bitbuf *bitbuf_init(int fd, int size) in bitbuf_init()
148 struct bitbuf *bb = xzalloc(sizeof(struct bitbuf)+size); in bitbuf_init()
157 void bitbuf_skip(struct bitbuf *bb, int bits) in bitbuf_skip()
170 static inline int bitbuf_bit(struct bitbuf *bb) in bitbuf_bit()
183 unsigned bitbuf_get(struct bitbuf *bb, int bits) in bitbuf_get()
206 void bitbuf_flush(struct bitbuf *bb) in bitbuf_flush()
215 void bitbuf_put(struct bitbuf *bb, int data, int len) in bitbuf_put()
279 static unsigned huff_and_puff(struct bitbuf *bb, struct huff *huff) in huff_and_puff()
296 static void inflate(struct bitbuf *bb) in inflate()
[all …]
/external/zlib/src/contrib/puff/
Dpuff.c108 int bitbuf; /* bit buffer */ member
131 val = s->bitbuf; in bits()
140 s->bitbuf = (int)(val >> need); in bits()
169 s->bitbuf = 0; in stored()
270 int bitbuf; /* bits from stream */ in decode() local
274 bitbuf = s->bitbuf; in decode()
281 code |= bitbuf & 1; in decode()
282 bitbuf >>= 1; in decode()
285 s->bitbuf = bitbuf; in decode()
300 bitbuf = s->in[s->incnt++]; in decode()
[all …]
/external/wpa_supplicant_8/src/tls/
Dlibtommath.c1887 int err, bitbuf, bitcpy, bitcnt, mode, digidx, x, y, winsize; in s_mp_exptmod() local
2004 bitbuf = 0; in s_mp_exptmod()
2043 bitbuf |= (y << (winsize - ++bitcpy)); in s_mp_exptmod()
2059 if ((err = mp_mul (&res, &M[bitbuf], &res)) != MP_OKAY) { in s_mp_exptmod()
2068 bitbuf = 0; in s_mp_exptmod()
2084 bitbuf <<= 1; in s_mp_exptmod()
2085 if ((bitbuf & (1 << winsize)) != 0) { in s_mp_exptmod()
2963 int err, bitbuf, bitcpy, bitcnt, mode, digidx, x, y, winsize; in mp_exptmod_fast() local
3126 bitbuf = 0; in mp_exptmod_fast()
3165 bitbuf |= (y << (winsize - ++bitcpy)); in mp_exptmod_fast()
[all …]