static int pix_norm1_c(uint8_t * pix, int line_size)

{

    int s, i, j;

    uint32_t *sq = ff_squareTbl + 256;



    s = 0;

    for (i = 0; i < 16; i++) {

        for (j = 0; j < 16; j += 8) {

#if 0

            s += sq[pix[0]];

            s += sq[pix[1]];

            s += sq[pix[2]];

            s += sq[pix[3]];

            s += sq[pix[4]];

            s += sq[pix[5]];

            s += sq[pix[6]];

            s += sq[pix[7]];

#else

#if LONG_MAX > 2147483647

            register uint64_t x=*(uint64_t*)pix;

            s += sq[x&0xff];

            s += sq[(x>>8)&0xff];

            s += sq[(x>>16)&0xff];

            s += sq[(x>>24)&0xff];

            s += sq[(x>>32)&0xff];

            s += sq[(x>>40)&0xff];

            s += sq[(x>>48)&0xff];

            s += sq[(x>>56)&0xff];

#else

            register uint32_t x=*(uint32_t*)pix;

            s += sq[x&0xff];

            s += sq[(x>>8)&0xff];

            s += sq[(x>>16)&0xff];

            s += sq[(x>>24)&0xff];

            x=*(uint32_t*)(pix+4);

            s += sq[x&0xff];

            s += sq[(x>>8)&0xff];

            s += sq[(x>>16)&0xff];

            s += sq[(x>>24)&0xff];

#endif

#endif

            pix += 8;

        }

        pix += line_size - 16;

    }

    return s;

}

static int pix_norm1_c(uint8_t * pix, int line_size)

{

    int s, i, j;

    uint32_t *sq = ff_squareTbl + 256;



    s = 0;

    for (i = 0; i < 16; i++) {

        for (j = 0; j < 16; j += 8) {

#if 0

            s += sq[pix[0]];

            s += sq[pix[1]];

            s += sq[pix[2]];

            s += sq[pix[3]];

            s += sq[pix[4]];

            s += sq[pix[5]];

            s += sq[pix[6]];

            s += sq[pix[7]];

#else

#if LONG_MAX > 2147483647

            register uint64_t x=*(uint64_t*)pix;

            s += sq[x&0xff];

            s += sq[(x>>8)&0xff];

            s += sq[(x>>16)&0xff];

            s += sq[(x>>24)&0xff];

            s += sq[(x>>32)&0xff];

            s += sq[(x>>40)&0xff];

            s += sq[(x>>48)&0xff];

            s += sq[(x>>56)&0xff];

#else

            register uint32_t x=*(uint32_t*)pix;

            s += sq[x&0xff];

            s += sq[(x>>8)&0xff];

            s += sq[(x>>16)&0xff];

            s += sq[(x>>24)&0xff];

            x=*(uint32_t*)(pix+4);

            s += sq[x&0xff];

            s += sq[(x>>8)&0xff];

            s += sq[(x>>16)&0xff];

            s += sq[(x>>24)&0xff];

#endif

#endif

            pix += 8;

        }

        pix += line_size - 16;

    }

    return s;

}

static int FUNC_0(uint8_t * VAR_0, int VAR_1)

{

    int VAR_2, VAR_3, VAR_4;

    uint32_t *sq = ff_squareTbl + 256;



    VAR_2 = 0;

    for (VAR_3 = 0; VAR_3 < 16; VAR_3++) {

        for (VAR_4 = 0; VAR_4 < 16; VAR_4 += 8) {

#if 0

            VAR_2 += sq[VAR_0[0]];

            VAR_2 += sq[VAR_0[1]];

            VAR_2 += sq[VAR_0[2]];

            VAR_2 += sq[VAR_0[3]];

            VAR_2 += sq[VAR_0[4]];

            VAR_2 += sq[VAR_0[5]];

            VAR_2 += sq[VAR_0[6]];

            VAR_2 += sq[VAR_0[7]];

#else

#if LONG_MAX > 2147483647

            register uint64_t VAR_5=*(uint64_t*)VAR_0;

            VAR_2 += sq[VAR_5&0xff];

            VAR_2 += sq[(VAR_5>>8)&0xff];

            VAR_2 += sq[(VAR_5>>16)&0xff];

            VAR_2 += sq[(VAR_5>>24)&0xff];

            VAR_2 += sq[(VAR_5>>32)&0xff];

            VAR_2 += sq[(VAR_5>>40)&0xff];

            VAR_2 += sq[(VAR_5>>48)&0xff];

            VAR_2 += sq[(VAR_5>>56)&0xff];

#else

            register uint32_t VAR_5=*(uint32_t*)VAR_0;

            VAR_2 += sq[VAR_5&0xff];

            VAR_2 += sq[(VAR_5>>8)&0xff];

            VAR_2 += sq[(VAR_5>>16)&0xff];

            VAR_2 += sq[(VAR_5>>24)&0xff];

            VAR_5=*(uint32_t*)(VAR_0+4);

            VAR_2 += sq[VAR_5&0xff];

            VAR_2 += sq[(VAR_5>>8)&0xff];

            VAR_2 += sq[(VAR_5>>16)&0xff];

            VAR_2 += sq[(VAR_5>>24)&0xff];

#endif

#endif

            VAR_0 += 8;

        }

        VAR_0 += VAR_1 - 16;

    }

    return VAR_2;

}

static int FUNC_0(uint8_t * VAR_0, int VAR_1)
{ int VAR_2, VAR_3, VAR_4; uint32_t *sq = ff_squareTbl + 256; VAR_2 = 0; for (VAR_3 = 0; VAR_3 < 16; VAR_3++) { for (VAR_4 = 0; VAR_4 < 16; VAR_4 += 8) { #if 0
VAR_2 += sq[VAR_0[0]]; VAR_2 += sq[VAR_0[1]]; VAR_2 += sq[VAR_0[2]]; VAR_2 += sq[VAR_0[3]]; VAR_2 += sq[VAR_0[4]]; VAR_2 += sq[VAR_0[5]]; VAR_2 += sq[VAR_0[6]]; VAR_2 += sq[VAR_0[7]]; #else
#if LONG_MAX > 2147483647
register uint64_t VAR_5=*(uint64_t*)VAR_0; VAR_2 += sq[VAR_5&0xff]; VAR_2 += sq[(VAR_5>>8)&0xff]; VAR_2 += sq[(VAR_5>>16)&0xff]; VAR_2 += sq[(VAR_5>>24)&0xff]; VAR_2 += sq[(VAR_5>>32)&0xff]; VAR_2 += sq[(VAR_5>>40)&0xff]; VAR_2 += sq[(VAR_5>>48)&0xff]; VAR_2 += sq[(VAR_5>>56)&0xff]; #else
register uint32_t VAR_5=*(uint32_t*)VAR_0; VAR_2 += sq[VAR_5&0xff]; VAR_2 += sq[(VAR_5>>8)&0xff]; VAR_2 += sq[(VAR_5>>16)&0xff]; VAR_2 += sq[(VAR_5>>24)&0xff]; VAR_5=*(uint32_t*)(VAR_0+4); VAR_2 += sq[VAR_5&0xff]; VAR_2 += sq[(VAR_5>>8)&0xff]; VAR_2 += sq[(VAR_5>>16)&0xff]; VAR_2 += sq[(VAR_5>>24)&0xff]; #endif
#endif
VAR_0 += 8; } VAR_0 += VAR_1 - 16; } return VAR_2; }