/[rdesktop]/jpeg/rdesktop/trunk/mppc.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /jpeg/rdesktop/trunk/mppc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 710 by n-ki, Tue May 4 09:48:45 2004 UTC revision 711 by jsorg71, Tue Jun 15 22:45:12 2004 UTC
# Line 64  mppc_expand(uint8 * data, uint32 clen, u Line 64  mppc_expand(uint8 * data, uint32 clen, u
64          int match_len;          int match_len;
65          int old_offset, match_bits;          int old_offset, match_bits;
66    
67          signed char *dict = &(g_mppc_dict.hist);          uint8 *dict = g_mppc_dict.hist;
68    
69          if ((ctype & RDP_MPPC_COMPRESSED) == 0)          if ((ctype & RDP_MPPC_COMPRESSED) == 0)
70          {          {
# Line 279  mppc_expand(uint8 * data, uint32 clen, u Line 279  mppc_expand(uint8 * data, uint32 clen, u
279    
280                          match_bits = match_len;                          match_bits = match_len;
281                          match_len =                          match_len =
282                                  walker >> 32 - match_bits & ~(-1 << match_bits) | 1 << match_bits;                                  ((walker >> (32 - match_bits)) & (~(-1 << match_bits))) | (1 << match_bits);
283                          walker <<= match_bits;                          walker <<= match_bits;
284                          walker_len -= match_bits;                          walker_len -= match_bits;
285                  }                  }
# Line 288  mppc_expand(uint8 * data, uint32 clen, u Line 288  mppc_expand(uint8 * data, uint32 clen, u
288                          return -1;                          return -1;
289                  }                  }
290                  /* memory areas can overlap - meaning we can't use memXXX functions */                  /* memory areas can overlap - meaning we can't use memXXX functions */
291                  k = next_offset - match_off & (RDP_MPPC_DICT_SIZE - 1);                  k = (next_offset - match_off) & (RDP_MPPC_DICT_SIZE - 1);
292                  do                  do
293                  {                  {
294                          dict[next_offset++] = dict[k++];                          dict[next_offset++] = dict[k++];

Legend:
Removed from v.710  
changed lines
  Added in v.711

  ViewVC Help
Powered by ViewVC 1.1.26