static void dct32(INTFLOAT *out, const INTFLOAT *tab)
{
    INTFLOAT tmp0, tmp1;
    INTFLOAT val0 , val1 , val2 , val3 , val4 , val5 , val6 , val7 ,
             val8 , val9 , val10, val11, val12, val13, val14, val15,
             val16, val17, val18, val19, val20, val21, val22, val23,
             val24, val25, val26, val27, val28, val29, val30, val31;
    BF0( 0, 31, COS0_0 , 1);
    BF0(15, 16, COS0_15, 5);
    BF( 0, 15, COS1_0 , 1);
    BF(16, 31,-COS1_0 , 1);
    BF0( 7, 24, COS0_7 , 1);
    BF0( 8, 23, COS0_8 , 1);
    BF( 7,  8, COS1_7 , 4);
    BF(23, 24,-COS1_7 , 4);
    BF( 0,  7, COS2_0 , 1);
    BF( 8, 15,-COS2_0 , 1);
    BF(16, 23, COS2_0 , 1);
    BF(24, 31,-COS2_0 , 1);
    BF0( 3, 28, COS0_3 , 1);
    BF0(12, 19, COS0_12, 2);
    BF( 3, 12, COS1_3 , 1);
    BF(19, 28,-COS1_3 , 1);
    BF0( 4, 27, COS0_4 , 1);
    BF0(11, 20, COS0_11, 2);
    BF( 4, 11, COS1_4 , 1);
    BF(20, 27,-COS1_4 , 1);
    BF( 3,  4, COS2_3 , 3);
    BF(11, 12,-COS2_3 , 3);
    BF(19, 20, COS2_3 , 3);
    BF(27, 28,-COS2_3 , 3);
    BF( 0,  3, COS3_0 , 1);
    BF( 4,  7,-COS3_0 , 1);
    BF( 8, 11, COS3_0 , 1);
    BF(12, 15,-COS3_0 , 1);
    BF(16, 19, COS3_0 , 1);
    BF(20, 23,-COS3_0 , 1);
    BF(24, 27, COS3_0 , 1);
    BF(28, 31,-COS3_0 , 1);
    BF0( 1, 30, COS0_1 , 1);
    BF0(14, 17, COS0_14, 3);
    BF( 1, 14, COS1_1 , 1);
    BF(17, 30,-COS1_1 , 1);
    BF0( 6, 25, COS0_6 , 1);
    BF0( 9, 22, COS0_9 , 1);
    BF( 6,  9, COS1_6 , 2);
    BF(22, 25,-COS1_6 , 2);
    BF( 1,  6, COS2_1 , 1);
    BF( 9, 14,-COS2_1 , 1);
    BF(17, 22, COS2_1 , 1);
    BF(25, 30,-COS2_1 , 1);
    BF0( 2, 29, COS0_2 , 1);
    BF0(13, 18, COS0_13, 3);
    BF( 2, 13, COS1_2 , 1);
    BF(18, 29,-COS1_2 , 1);
    BF0( 5, 26, COS0_5 , 1);
    BF0(10, 21, COS0_10, 1);
    BF( 5, 10, COS1_5 , 2);
    BF(21, 26,-COS1_5 , 2);
    BF( 2,  5, COS2_2 , 1);
    BF(10, 13,-COS2_2 , 1);
    BF(18, 21, COS2_2 , 1);
    BF(26, 29,-COS2_2 , 1);
    BF( 1,  2, COS3_1 , 2);
    BF( 5,  6,-COS3_1 , 2);
    BF( 9, 10, COS3_1 , 2);
    BF(13, 14,-COS3_1 , 2);
    BF(17, 18, COS3_1 , 2);
    BF(21, 22,-COS3_1 , 2);
    BF(25, 26, COS3_1 , 2);
    BF(29, 30,-COS3_1 , 2);
    BF1( 0,  1,  2,  3);
    BF2( 4,  5,  6,  7);
    BF1( 8,  9, 10, 11);
    BF2(12, 13, 14, 15);
    BF1(16, 17, 18, 19);
    BF2(20, 21, 22, 23);
    BF1(24, 25, 26, 27);
    BF2(28, 29, 30, 31);
    ADD( 8, 12);
    ADD(12, 10);
    ADD(10, 14);
    ADD(14,  9);
    ADD( 9, 13);
    ADD(13, 11);
    ADD(11, 15);
    out[ 0] = val0;
    out[16] = val1;
    out[ 8] = val2;
    out[24] = val3;
    out[ 4] = val4;
    out[20] = val5;
    out[12] = val6;
    out[28] = val7;
    out[ 2] = val8;
    out[18] = val9;
    out[10] = val10;
    out[26] = val11;
    out[ 6] = val12;
    out[22] = val13;
    out[14] = val14;
    out[30] = val15;
    ADD(24, 28);
    ADD(28, 26);
    ADD(26, 30);
    ADD(30, 25);
    ADD(25, 29);
    ADD(29, 27);
    ADD(27, 31);
    out[ 1] = val16 + val24;
    out[17] = val17 + val25;
    out[ 9] = val18 + val26;
    out[25] = val19 + val27;
    out[ 5] = val20 + val28;
    out[21] = val21 + val29;
    out[13] = val22 + val30;
    out[29] = val23 + val31;
    out[ 3] = val24 + val20;
    out[19] = val25 + val21;
    out[11] = val26 + val22;
    out[27] = val27 + val23;
    out[ 7] = val28 + val18;
    out[23] = val29 + val19;
    out[15] = val30 + val17;
    out[31] = val31;
}
['static void mpc_synth(MPCContext *c, int16_t *out)\n{\n    int dither_state = 0;\n    int i, ch;\n    OUT_INT samples[MPA_MAX_CHANNELS * MPA_FRAME_SIZE], *samples_ptr;\n    for(ch = 0;  ch < 2; ch++){\n        samples_ptr = samples + ch;\n        for(i = 0; i < SAMPLES_PER_BAND; i++) {\n            ff_mpa_synth_filter(c->synth_buf[ch], &(c->synth_buf_offset[ch]),\n                                ff_mpa_synth_window, &dither_state,\n                                samples_ptr, 2,\n                                c->sb_samples[ch][i]);\n            samples_ptr += 64;\n        }\n    }\n    for(i = 0; i < MPC_FRAME_SIZE*2; i++)\n        *out++=samples[i];\n}', 'void ff_mpa_synth_filter(MPA_INT *synth_buf_ptr, int *synth_buf_offset,\n                         MPA_INT *window, int *dither_state,\n                         OUT_INT *samples, int incr,\n                         INTFLOAT sb_samples[SBLIMIT])\n{\n    register MPA_INT *synth_buf;\n    int offset;\n#if FRAC_BITS <= 15\n    int32_t tmp[32];\n    int j;\n#endif\n    offset = *synth_buf_offset;\n    synth_buf = synth_buf_ptr + offset;\n#if FRAC_BITS <= 15\n    dct32(tmp, sb_samples);\n    for(j=0;j<32;j++) {\n        synth_buf[j] = av_clip_int16(tmp[j]);\n    }\n#else\n    dct32(synth_buf, sb_samples);\n#endif\n    apply_window_mp3_c(synth_buf, window, dither_state, samples, incr);\n    offset = (offset - 32) & 511;\n    *synth_buf_offset = offset;\n}', 'static void dct32(INTFLOAT *out, const INTFLOAT *tab)\n{\n    INTFLOAT tmp0, tmp1;\n    INTFLOAT val0 , val1 , val2 , val3 , val4 , val5 , val6 , val7 ,\n             val8 , val9 , val10, val11, val12, val13, val14, val15,\n             val16, val17, val18, val19, val20, val21, val22, val23,\n             val24, val25, val26, val27, val28, val29, val30, val31;\n    BF0( 0, 31, COS0_0 , 1);\n    BF0(15, 16, COS0_15, 5);\n    BF( 0, 15, COS1_0 , 1);\n    BF(16, 31,-COS1_0 , 1);\n    BF0( 7, 24, COS0_7 , 1);\n    BF0( 8, 23, COS0_8 , 1);\n    BF( 7,  8, COS1_7 , 4);\n    BF(23, 24,-COS1_7 , 4);\n    BF( 0,  7, COS2_0 , 1);\n    BF( 8, 15,-COS2_0 , 1);\n    BF(16, 23, COS2_0 , 1);\n    BF(24, 31,-COS2_0 , 1);\n    BF0( 3, 28, COS0_3 , 1);\n    BF0(12, 19, COS0_12, 2);\n    BF( 3, 12, COS1_3 , 1);\n    BF(19, 28,-COS1_3 , 1);\n    BF0( 4, 27, COS0_4 , 1);\n    BF0(11, 20, COS0_11, 2);\n    BF( 4, 11, COS1_4 , 1);\n    BF(20, 27,-COS1_4 , 1);\n    BF( 3,  4, COS2_3 , 3);\n    BF(11, 12,-COS2_3 , 3);\n    BF(19, 20, COS2_3 , 3);\n    BF(27, 28,-COS2_3 , 3);\n    BF( 0,  3, COS3_0 , 1);\n    BF( 4,  7,-COS3_0 , 1);\n    BF( 8, 11, COS3_0 , 1);\n    BF(12, 15,-COS3_0 , 1);\n    BF(16, 19, COS3_0 , 1);\n    BF(20, 23,-COS3_0 , 1);\n    BF(24, 27, COS3_0 , 1);\n    BF(28, 31,-COS3_0 , 1);\n    BF0( 1, 30, COS0_1 , 1);\n    BF0(14, 17, COS0_14, 3);\n    BF( 1, 14, COS1_1 , 1);\n    BF(17, 30,-COS1_1 , 1);\n    BF0( 6, 25, COS0_6 , 1);\n    BF0( 9, 22, COS0_9 , 1);\n    BF( 6,  9, COS1_6 , 2);\n    BF(22, 25,-COS1_6 , 2);\n    BF( 1,  6, COS2_1 , 1);\n    BF( 9, 14,-COS2_1 , 1);\n    BF(17, 22, COS2_1 , 1);\n    BF(25, 30,-COS2_1 , 1);\n    BF0( 2, 29, COS0_2 , 1);\n    BF0(13, 18, COS0_13, 3);\n    BF( 2, 13, COS1_2 , 1);\n    BF(18, 29,-COS1_2 , 1);\n    BF0( 5, 26, COS0_5 , 1);\n    BF0(10, 21, COS0_10, 1);\n    BF( 5, 10, COS1_5 , 2);\n    BF(21, 26,-COS1_5 , 2);\n    BF( 2,  5, COS2_2 , 1);\n    BF(10, 13,-COS2_2 , 1);\n    BF(18, 21, COS2_2 , 1);\n    BF(26, 29,-COS2_2 , 1);\n    BF( 1,  2, COS3_1 , 2);\n    BF( 5,  6,-COS3_1 , 2);\n    BF( 9, 10, COS3_1 , 2);\n    BF(13, 14,-COS3_1 , 2);\n    BF(17, 18, COS3_1 , 2);\n    BF(21, 22,-COS3_1 , 2);\n    BF(25, 26, COS3_1 , 2);\n    BF(29, 30,-COS3_1 , 2);\n    BF1( 0,  1,  2,  3);\n    BF2( 4,  5,  6,  7);\n    BF1( 8,  9, 10, 11);\n    BF2(12, 13, 14, 15);\n    BF1(16, 17, 18, 19);\n    BF2(20, 21, 22, 23);\n    BF1(24, 25, 26, 27);\n    BF2(28, 29, 30, 31);\n    ADD( 8, 12);\n    ADD(12, 10);\n    ADD(10, 14);\n    ADD(14,  9);\n    ADD( 9, 13);\n    ADD(13, 11);\n    ADD(11, 15);\n    out[ 0] = val0;\n    out[16] = val1;\n    out[ 8] = val2;\n    out[24] = val3;\n    out[ 4] = val4;\n    out[20] = val5;\n    out[12] = val6;\n    out[28] = val7;\n    out[ 2] = val8;\n    out[18] = val9;\n    out[10] = val10;\n    out[26] = val11;\n    out[ 6] = val12;\n    out[22] = val13;\n    out[14] = val14;\n    out[30] = val15;\n    ADD(24, 28);\n    ADD(28, 26);\n    ADD(26, 30);\n    ADD(30, 25);\n    ADD(25, 29);\n    ADD(29, 27);\n    ADD(27, 31);\n    out[ 1] = val16 + val24;\n    out[17] = val17 + val25;\n    out[ 9] = val18 + val26;\n    out[25] = val19 + val27;\n    out[ 5] = val20 + val28;\n    out[21] = val21 + val29;\n    out[13] = val22 + val30;\n    out[29] = val23 + val31;\n    out[ 3] = val24 + val20;\n    out[19] = val25 + val21;\n    out[11] = val26 + val22;\n    out[27] = val27 + val23;\n    out[ 7] = val28 + val18;\n    out[23] = val29 + val19;\n    out[15] = val30 + val17;\n    out[31] = val31;\n}']