Searched refs:BITS (Results 1 - 15 of 15) sorted by relevance

/ast/src/lib/libz/
H A Dinfback.c181 #define BITS(n) \ macro
291 state->last = BITS(1);
293 switch (BITS(2)) {
352 state->nlen = BITS(5) + 257;
354 state->ndist = BITS(5) + 1;
356 state->ncode = BITS(4) + 4;
371 state->lens[order[state->have++]] = (unsigned short)BITS(3);
392 this = state->lencode[BITS(state->lenbits)];
411 copy = 3 + BITS(2);
418 copy = 3 + BITS(
[all...]
H A Dinflate.c450 #define BITS(n) \ macro
492 the requested bits are not available. The typical use of the BITS macros
496 ... do something with BITS(n) ...
500 input left to load n bits into the accumulator, or it continues. BITS(n)
505 and a NEEDBITS(8), then BITS(8) would return the next byte in the stream.
521 keep[want++] = BITS(n);
610 ((BITS(8) << 8) + (hold >> 8)) % 31) {
615 if (BITS(4) != Z_DEFLATED) {
621 len = BITS(4) + 8;
782 state->last = BITS(
[all...]
H A Dsfdclzw.c62 #define BITS 16 /* Default bits. */ macro
65 /* A code_int must be able to hold 2**BITS values of type int, and also -1. */
109 char_type zs_buf[BITS];
122 char_type zs_gbuf[BITS];
162 * the codetab. The tab_suffix table needs 2**BITS characters. We get this
173 #define de_stack ((char_type *)&tab_suffixof(1 << BITS))
205 * Maintain a BITS character long buffer (so that 8 codes will
643 if (maxbits > BITS)
770 maxbits = BITS; /* fixed max # bits/code. */
/ast/src/lib/libcmd/
H A Dstty.c101 #define BITS 2 macro
308 { "cr0", BITS, O_FLAG, IG|SS, CRDLY, CR0 },
309 { "cr1", BITS, O_FLAG, US, CRDLY, CR1 },
310 { "cr2", BITS, O_FLAG, US, CRDLY, CR2 },
311 { "cr3", BITS, O_FLAG, US, CRDLY, CR3 },
314 { "nl0", BITS, O_FLAG, IG|US, NLDLY, NL0 },
315 { "nl1", BITS, O_FLAG, US, NLDLY, NL1 },
320 { "tab0", BITS, O_FLAG, IG|SS, TABDLY, TAB0 },
323 { "tab1", BITS, O_FLAG, US, TABDLY, TAB1 },
326 { "tab2", BITS, O_FLA
[all...]
/ast/src/lib/libast/vmalloc/
H A Dvmbest.c146 if(SIZE(node) & BITS)
190 { nextb = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
409 s = SIZE(fp); /**/ASSERT(!(s&BITS));
411 size = (size&~BITS) + s + sizeof(Head_t);
413 else size &= ~BITS;
419 { /**/ASSERT((s&BITS) == 0);
628 /**/ ASSERT((ALIGN%(BITS+1)) == 0 );
648 SIZE(np) = ((s&~BITS) - (size+sizeof(Head_t)))|JUNK|BUSY;
650 SIZE(tp) |= s&BITS;
694 { SIZE(np) &= ~BITS;
[all...]
H A Dvmstat.c91 { s = SIZE(b)&~BITS;
110 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
H A Dvmhdr.h161 /* Blocks are allocated such that their sizes are 0%(BITS+1)
167 #define BITS (07) /* (BUSY|PFREE|JUNK) */ macro
168 #define ALIGNB (8) /* size must be a multiple of BITS+1 */
170 #define ISBITS(w) ((w) & BITS)
171 #define CLRBITS(w) ((w) &= ~BITS)
172 #define CPYBITS(w,f) ((w) |= ((f)&BITS) )
204 ** It should also be a multiple of ALIGNB==(BITS+1) so the size field
205 ** of Block_t will always be 0%(BITS+1) as noted above.
395 #define PFDATA(d) ((Head_t*)((Vmuchar_t*)(d)+(SIZE(BLOCK(d))&~BITS)-sizeof(Head_t)) )
419 #define DBBSIZE(d) (SIZE(DBBLOCK(d)) & ~BITS)
[all...]
H A Dvmpool.c76 (s = (SIZE(tp) & ~BITS) + sizeof(Head_t)) >= size )
81 { s = (SIZE(tp) & ~BITS) + sizeof(Head_t);
265 if(seg->size == (s = SIZE(fp)&~BITS))
H A Dvmtrace.c275 else s = SIZE(b)&~BITS;
279 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
H A Dvmprivate.c97 { /**/ ASSERT((SIZE(bp)&~BITS) == 0);
H A Dvmdebug.c313 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
352 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
613 next: b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS));
H A Dvmlast.c340 if(seg->size == (s = SIZE(fp)&~BITS))
H A Dmalloc.c555 { if((copy = SIZE(BLOCK(data))&~BITS) > size )
/ast/src/cmd/codexlib/compress/
H A Dcompress.c69 #define BITS MAXBITS /* Default bits. */ macro
72 /* A code_int must be able to hold 2**BITS values of type int, and also -1. */
115 char_type zs_buf[BITS];
128 char_type zs_gbuf[BITS];
169 * the codetab. The tab_suffix table needs 2**BITS characters. We get this
180 #define de_stack ((char_type *)&tab_suffixof(1 << BITS))
212 * Maintain a BITS character long buffer (so that 8 codes will
458 maxbits = BITS;
512 if (maxbits > BITS)
/ast/src/cmd/INIT/
H A Dratz.c2669 #define BITS(n) \ macro
2711 the requested bits are not available. The typical use of the BITS macros
2715 ... do something with BITS(n) ...
2719 input left to load n bits into the accumulator, or it continues. BITS(n)
2724 and a NEEDBITS(8), then BITS(8) would return the next byte in the stream.
2740 keep[want++] = BITS(n);
2829 ((BITS(8) << 8) + (hold >> 8)) % 31) {
2834 if (BITS(4) != Z_DEFLATED) {
2840 len = BITS(4) + 8;
3001 state->last = BITS(
[all...]

Completed in 46 milliseconds