File tree Expand file tree Collapse file tree 1 file changed +0
-46
lines changed
Expand file tree Collapse file tree 1 file changed +0
-46
lines changed Original file line number Diff line number Diff line change @@ -121,52 +121,6 @@ int lzss_fgetc()
121121 LZSS FUNCTIONS
122122 **************************************************************************************/
123123
124- void putbit1 (void )
125- {
126- bit_buffer |= bit_mask;
127- if ((bit_mask >>= 1 ) == 0 ) {
128- lzss_fputc (bit_buffer);
129- bit_buffer = 0 ; bit_mask = 128 ;
130- }
131- }
132-
133- void putbit0 (void )
134- {
135- if ((bit_mask >>= 1 ) == 0 ) {
136- lzss_fputc (bit_buffer);
137- bit_buffer = 0 ; bit_mask = 128 ;
138- }
139- }
140-
141- void output1 (int c)
142- {
143- int mask;
144-
145- putbit1 ();
146- mask = 256 ;
147- while (mask >>= 1 ) {
148- if (c & mask) putbit1 ();
149- else putbit0 ();
150- }
151- }
152-
153- void output2 (int x, int y)
154- {
155- int mask;
156-
157- putbit0 ();
158- mask = N;
159- while (mask >>= 1 ) {
160- if (x & mask) putbit1 ();
161- else putbit0 ();
162- }
163- mask = (1 << EJ);
164- while (mask >>= 1 ) {
165- if (y & mask) putbit1 ();
166- else putbit0 ();
167- }
168- }
169-
170124int getbit (int n) /* get n bits */
171125{
172126 int i, x;
You can’t perform that action at this time.
0 commit comments