Home
last modified time | relevance | path

Searched refs:n_bits (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Dbsd-comp.c85 u_char n_bits; /* current bits/code */ member
184 db->n_bits = BSD_INIT_BITS;
437 u_int n_bits = db->n_bits; local
490 bitno += n_bits;
496 if (max_ent >= MAXCODE(n_bits))
497 db->n_bits = ++n_bits;
514 bitno += n_bits; /* output (count) the last code */
527 if (max_ent >= MAXCODE(n_bits) && max_ent < db->maxmaxcode)
528 db->n_bits++;
558 u_int n_bits = db->n_bits; local
[all …]
/titanic_41/usr/src/cmd/compress/
H A Dcompress.c133 static int n_bits; /* number of bits/code */ variable
138 #define MAXCODE(n_bits) ((1 << (n_bits)) - 1) argument
933 (void) fprintf(stderr, "n_bits = %d\n", n_bits); in cinterr()
1004 maxcode = MAXCODE(n_bits = INIT_BITS); in compress()
1121 free_ent - 1, n_bits); in compress()
1160 int r_off = offset, bits = n_bits; in output()
1198 offset += n_bits; in output()
1199 if (offset == (n_bits << 3)) { in output()
1201 bits = n_bits; in output()
1224 if (fwrite(buf, 1, n_bits, outp) != n_bits) { in output()
[all …]
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/
H A Dbsd-comp.c102 uchar_t n_bits; /* current bits/code */ member
222 db->n_bits = BSD_INIT_BITS; in bsd_clear()
560 uint_t n_bits = db->n_bits; in bsd_compress() local
603 bitno -= n_bits; \ in bsd_compress()
804 if (max_ent >= MAXCODE(n_bits)) { in bsd_compress()
805 db->n_bits = ++n_bits; in bsd_compress()
854 if (max_ent >= MAXCODE(n_bits) && max_ent < db->maxmaxcode) { in bsd_compress()
855 db->n_bits++; in bsd_compress()
905 uint_t n_bits = db->n_bits; in bsd_incomp() local
1014 bitno += n_bits; in bsd_incomp()
[all …]