static int diff_C(unsigned char *old, unsigned char *new, int os, int ns)

{

    int x, y, d=0;

    for (y = 8; y; y--) {

        for (x = 8; x; x--) {

            d += abs(new[x] - old[x]);

        }

        new += ns;

        old += os;

    }

    return d;

}

static int diff_C(unsigned char *old, unsigned char *new, int os, int ns)

{

    int x, y, d=0;

    for (y = 8; y; y--) {

        for (x = 8; x; x--) {

            d += abs(new[x] - old[x]);

        }

        new += ns;

        old += os;

    }

    return d;

}

    for (y = 8; y; y--) {         for (x = 8; x; x--) {
static int FUNC_0(unsigned char *VAR_0, unsigned char *VAR_1, int VAR_2, int VAR_3)

{

    int VAR_4, VAR_5, VAR_6=0;

    for (VAR_5 = 8; VAR_5; VAR_5--) {

        for (VAR_4 = 8; VAR_4; VAR_4--) {

            VAR_6 += abs(VAR_1[VAR_4] - VAR_0[VAR_4]);

        }

        VAR_1 += VAR_3;

        VAR_0 += VAR_2;

    }

    return VAR_6;

}

static int FUNC_0(unsigned char *VAR_0, unsigned char *VAR_1, int VAR_2, int VAR_3)
{ int VAR_4, VAR_5, VAR_6=0; for (VAR_5 = 8; VAR_5; VAR_5--) { for (VAR_4 = 8; VAR_4; VAR_4--) { VAR_6 += abs(VAR_1[VAR_4] - VAR_0[VAR_4]); } VAR_1 += VAR_3; VAR_0 += VAR_2; } return VAR_6; }