static SoftFloat sbr_sum_square_c(int (*x)[2], int n)

{

    SoftFloat ret;

    uint64_t accu = 0, round;

    int i, nz;

    unsigned u;



    for (i = 0; i < n; i += 2) {

        // Larger values are inavlid and could cause overflows of accu.

        av_assert2(FFABS(x[i + 0][0]) >> 29 == 0);

        accu += (int64_t)x[i + 0][0] * x[i + 0][0];

        av_assert2(FFABS(x[i + 0][1]) >> 29 == 0);

        accu += (int64_t)x[i + 0][1] * x[i + 0][1];

        av_assert2(FFABS(x[i + 1][0]) >> 29 == 0);

        accu += (int64_t)x[i + 1][0] * x[i + 1][0];

        av_assert2(FFABS(x[i + 1][1]) >> 29 == 0);

        accu += (int64_t)x[i + 1][1] * x[i + 1][1];

    }



    u = accu >> 32;

    if (u == 0) {

        nz = 1;

    } else {

        nz = -1;

        while (u < 0x80000000U) {

            u <<= 1;

            nz++;

        }

        nz = 32 - nz;

    }



    round = 1ULL << (nz-1);

    u = ((accu + round) >> nz);

    u >>= 1;

    ret = av_int2sf(u, 15 - nz);



    return ret;

}

static SoftFloat sbr_sum_square_c(int (*x)[2], int n)

{

    SoftFloat ret;

    uint64_t accu = 0, round;

    int i, nz;

    unsigned u;



    for (i = 0; i < n; i += 2) {

        

        av_assert2(FFABS(x[i + 0][0]) >> 29 == 0);

        accu += (int64_t)x[i + 0][0] * x[i + 0][0];

        av_assert2(FFABS(x[i + 0][1]) >> 29 == 0);

        accu += (int64_t)x[i + 0][1] * x[i + 0][1];

        av_assert2(FFABS(x[i + 1][0]) >> 29 == 0);

        accu += (int64_t)x[i + 1][0] * x[i + 1][0];

        av_assert2(FFABS(x[i + 1][1]) >> 29 == 0);

        accu += (int64_t)x[i + 1][1] * x[i + 1][1];

    }



    u = accu >> 32;

    if (u == 0) {

        nz = 1;

    } else {

        nz = -1;

        while (u < 0x80000000U) {

            u <<= 1;

            nz++;

        }

        nz = 32 - nz;

    }



    round = 1ULL << (nz-1);

    u = ((accu + round) >> nz);

    u >>= 1;

    ret = av_int2sf(u, 15 - nz);



    return ret;

}

    uint64_t accu = 0, round;     int i, nz;         av_assert2(FFABS(x[i + 0][0]) >> 29 == 0);         accu += (int64_t)x[i + 0][0] * x[i + 0][0];         av_assert2(FFABS(x[i + 0][1]) >> 29 == 0);         accu += (int64_t)x[i + 0][1] * x[i + 0][1];         av_assert2(FFABS(x[i + 1][0]) >> 29 == 0);         accu += (int64_t)x[i + 1][0] * x[i + 1][0];         av_assert2(FFABS(x[i + 1][1]) >> 29 == 0);         accu += (int64_t)x[i + 1][1] * x[i + 1][1];     if (u == 0) {         nz = 1;     } else {         nz = -1;             nz++;         nz = 32 - nz;     ret = av_int2sf(u, 15 - nz);
static SoftFloat FUNC_0(int (*x)[2], int n)

{

    SoftFloat ret;

    uint64_t accu = 0, round;

    int VAR_0, VAR_1;

    unsigned VAR_2;



    for (VAR_0 = 0; VAR_0 < n; VAR_0 += 2) {

        

        av_assert2(FFABS(x[VAR_0 + 0][0]) >> 29 == 0);

        accu += (int64_t)x[VAR_0 + 0][0] * x[VAR_0 + 0][0];

        av_assert2(FFABS(x[VAR_0 + 0][1]) >> 29 == 0);

        accu += (int64_t)x[VAR_0 + 0][1] * x[VAR_0 + 0][1];

        av_assert2(FFABS(x[VAR_0 + 1][0]) >> 29 == 0);

        accu += (int64_t)x[VAR_0 + 1][0] * x[VAR_0 + 1][0];

        av_assert2(FFABS(x[VAR_0 + 1][1]) >> 29 == 0);

        accu += (int64_t)x[VAR_0 + 1][1] * x[VAR_0 + 1][1];

    }



    VAR_2 = accu >> 32;

    if (VAR_2 == 0) {

        VAR_1 = 1;

    } else {

        VAR_1 = -1;

        while (VAR_2 < 0x80000000U) {

            VAR_2 <<= 1;

            VAR_1++;

        }

        VAR_1 = 32 - VAR_1;

    }



    round = 1ULL << (VAR_1-1);

    VAR_2 = ((accu + round) >> VAR_1);

    VAR_2 >>= 1;

    ret = av_int2sf(VAR_2, 15 - VAR_1);



    return ret;

}

static SoftFloat FUNC_0(int (*x)[2], int n)
{ SoftFloat ret; uint64_t accu = 0, round; int VAR_0, VAR_1; unsigned VAR_2; for (VAR_0 = 0; VAR_0 < n; VAR_0 += 2) { av_assert2(FFABS(x[VAR_0 + 0][0]) >> 29 == 0); accu += (int64_t)x[VAR_0 + 0][0] * x[VAR_0 + 0][0]; av_assert2(FFABS(x[VAR_0 + 0][1]) >> 29 == 0); accu += (int64_t)x[VAR_0 + 0][1] * x[VAR_0 + 0][1]; av_assert2(FFABS(x[VAR_0 + 1][0]) >> 29 == 0); accu += (int64_t)x[VAR_0 + 1][0] * x[VAR_0 + 1][0]; av_assert2(FFABS(x[VAR_0 + 1][1]) >> 29 == 0); accu += (int64_t)x[VAR_0 + 1][1] * x[VAR_0 + 1][1]; } VAR_2 = accu >> 32; if (VAR_2 == 0) { VAR_1 = 1; } else { VAR_1 = -1; while (VAR_2 < 0x80000000U) { VAR_2 <<= 1; VAR_1++; } VAR_1 = 32 - VAR_1; } round = 1ULL << (VAR_1-1); VAR_2 = ((accu + round) >> VAR_1); VAR_2 >>= 1; ret = av_int2sf(VAR_2, 15 - VAR_1); return ret; }