mercurial/bdiff.c
changeset 34626 ff4c9c6263de
parent 30461 d195fa651b51
child 34628 72b24ac81d5d
equal deleted inserted replaced
34625:f1c2552c2de7 34626:ff4c9c6263de
     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