equal
deleted
inserted
replaced
7 the GNU General Public License, incorporated herein by reference. |
7 the GNU General Public License, incorporated herein by reference. |
8 |
8 |
9 Based roughly on Python difflib |
9 Based roughly on Python difflib |
10 */ |
10 */ |
11 |
11 |
|
12 #include <limits.h> |
12 #include <stdlib.h> |
13 #include <stdlib.h> |
13 #include <string.h> |
14 #include <string.h> |
14 #include <limits.h> |
15 |
15 |
16 #include "bdiff.h" |
|
17 #include "bitmanipulation.h" |
16 #include "compat.h" |
18 #include "compat.h" |
17 #include "bitmanipulation.h" |
|
18 #include "bdiff.h" |
|
19 |
19 |
20 /* Hash implementation from diffutils */ |
20 /* Hash implementation from diffutils */ |
21 #define ROL(v, n) ((v) << (n) | (v) >> (sizeof(v) * CHAR_BIT - (n))) |
21 #define ROL(v, n) ((v) << (n) | (v) >> (sizeof(v) * CHAR_BIT - (n))) |
22 #define HASH(h, c) ((c) + ROL(h ,7)) |
22 #define HASH(h, c) ((c) + ROL(h ,7)) |
23 |
23 |