ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/liblzf/lzf_c.c
(Generate patch)

Comparing liblzf/lzf_c.c (file contents):
Revision 1.39 by root, Sun May 30 05:52:57 2010 UTC vs.
Revision 1.40 by root, Tue Jun 1 01:50:24 2010 UTC

153 && ref < ip /* the next test will actually take care of this, but this is faster */ 153 && ref < ip /* the next test will actually take care of this, but this is faster */
154#endif 154#endif
155 && (off = ip - ref - 1) < MAX_OFF 155 && (off = ip - ref - 1) < MAX_OFF
156 && ip + 4 < in_end 156 && ip + 4 < in_end
157 && ref > (u8 *)in_data 157 && ref > (u8 *)in_data
158 && ref[2] == ip[2]
158#if STRICT_ALIGN 159#if STRICT_ALIGN
159 && ref[0] == ip[0] 160 && (ref[1] << 8) | ref[0] == (ip[1] << 8) | ip[0]
160 && ref[1] == ip[1]
161 && ref[2] == ip[2]
162#else 161#else
163 && *(u16 *)ref == *(u16 *)ip 162 && *(u16 *)ref == *(u16 *)ip
164 && ref[2] == ip[2]
165#endif 163#endif
166 ) 164 )
167 { 165 {
168 /* match found at *ref++ */ 166 /* match found at *ref++ */
169 unsigned int len = 2; 167 unsigned int len = 2;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines