mdct.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. /************************************************************************
  2. * Copyright (C) 2002-2009, Xiph.org Foundation
  3. * Copyright (C) 2010, Robin Watts for Pinknoise Productions Ltd
  4. * All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. *
  10. * * Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * * Redistributions in binary form must reproduce the above
  13. * copyright notice, this list of conditions and the following disclaimer
  14. * in the documentation and/or other materials provided with the
  15. * distribution.
  16. * * Neither the names of the Xiph.org Foundation nor Pinknoise
  17. * Productions Ltd nor the names of its contributors may be used to
  18. * endorse or promote products derived from this software without
  19. * specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  24. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  25. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  26. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  27. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  29. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  31. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. ************************************************************************
  33. function: normalized modified discrete cosine transform
  34. power of two length transform only [64 <= n ]
  35. last mod: $Id: mdct.c,v 1.9.6.5 2003/04/29 04:03:27 xiphmont Exp $
  36. Original algorithm adapted long ago from _The use of multirate filter
  37. banks for coding of high quality digital audio_, by T. Sporer,
  38. K. Brandenburg and B. Edler, collection of the European Signal
  39. Processing Conference (EUSIPCO), Amsterdam, June 1992, Vol.1, pp
  40. 211-214
  41. The below code implements an algorithm that no longer looks much like
  42. that presented in the paper, but the basic structure remains if you
  43. dig deep enough to see it.
  44. This module DOES NOT INCLUDE code to generate/apply the window
  45. function. Everybody has their own weird favorite including me... I
  46. happen to like the properties of y=sin(.5PI*sin^2(x)), but others may
  47. vehemently disagree.
  48. ************************************************************************/
  49. #include "ivorbiscodec.h"
  50. #include "os.h"
  51. #include "misc.h"
  52. #include "mdct.h"
  53. #include "mdct_lookup.h"
  54. #include <stdio.h>
  55. #if defined(ONLY_C)
  56. STIN void presymmetry(DATA_TYPE *in,int n2,int step){
  57. DATA_TYPE *aX;
  58. DATA_TYPE *bX;
  59. LOOKUP_T *T;
  60. int n4=n2>>1;
  61. aX = in+n2-3;
  62. T = sincos_lookup0;
  63. do{
  64. REG_TYPE s0= aX[0];
  65. REG_TYPE s2= aX[2];
  66. XPROD31( s0, s2, T[0], T[1], &aX[0], &aX[2] ); T+=step;
  67. aX-=4;
  68. }while(aX>=in+n4);
  69. do{
  70. REG_TYPE s0= aX[0];
  71. REG_TYPE s2= aX[2];
  72. XPROD31( s0, s2, T[1], T[0], &aX[0], &aX[2] ); T-=step;
  73. aX-=4;
  74. }while(aX>=in);
  75. aX = in+n2-4;
  76. bX = in;
  77. T = sincos_lookup0;
  78. do{
  79. REG_TYPE ri0= aX[0];
  80. REG_TYPE ri2= aX[2];
  81. REG_TYPE ro0= bX[0];
  82. REG_TYPE ro2= bX[2];
  83. XNPROD31( ro2, ro0, T[1], T[0], &aX[0], &aX[2] ); T+=step;
  84. XNPROD31( ri2, ri0, T[0], T[1], &bX[0], &bX[2] );
  85. aX-=4;
  86. bX+=4;
  87. }while(aX>=bX);
  88. }
  89. /* 8 point butterfly (in place) */
  90. STIN void mdct_butterfly_8(DATA_TYPE *x){
  91. REG_TYPE s0 = x[0] + x[1];
  92. REG_TYPE s1 = x[0] - x[1];
  93. REG_TYPE s2 = x[2] + x[3];
  94. REG_TYPE s3 = x[2] - x[3];
  95. REG_TYPE s4 = x[4] + x[5];
  96. REG_TYPE s5 = x[4] - x[5];
  97. REG_TYPE s6 = x[6] + x[7];
  98. REG_TYPE s7 = x[6] - x[7];
  99. x[0] = s5 + s3;
  100. x[1] = s7 - s1;
  101. x[2] = s5 - s3;
  102. x[3] = s7 + s1;
  103. x[4] = s4 - s0;
  104. x[5] = s6 - s2;
  105. x[6] = s4 + s0;
  106. x[7] = s6 + s2;
  107. MB();
  108. }
  109. /* 16 point butterfly (in place, 4 register) */
  110. STIN void mdct_butterfly_16(DATA_TYPE *x){
  111. REG_TYPE s0, s1, s2, s3;
  112. s0 = x[ 8] - x[ 9]; x[ 8] += x[ 9];
  113. s1 = x[10] - x[11]; x[10] += x[11];
  114. s2 = x[ 1] - x[ 0]; x[ 9] = x[ 1] + x[0];
  115. s3 = x[ 3] - x[ 2]; x[11] = x[ 3] + x[2];
  116. x[ 0] = MULT31((s0 - s1) , cPI2_8);
  117. x[ 1] = MULT31((s2 + s3) , cPI2_8);
  118. x[ 2] = MULT31((s0 + s1) , cPI2_8);
  119. x[ 3] = MULT31((s3 - s2) , cPI2_8);
  120. MB();
  121. s2 = x[12] - x[13]; x[12] += x[13];
  122. s3 = x[14] - x[15]; x[14] += x[15];
  123. s0 = x[ 4] - x[ 5]; x[13] = x[ 5] + x[ 4];
  124. s1 = x[ 7] - x[ 6]; x[15] = x[ 7] + x[ 6];
  125. x[ 4] = s2; x[ 5] = s1;
  126. x[ 6] = s3; x[ 7] = s0;
  127. MB();
  128. mdct_butterfly_8(x);
  129. mdct_butterfly_8(x+8);
  130. }
  131. /* 32 point butterfly (in place, 4 register) */
  132. STIN void mdct_butterfly_32(DATA_TYPE *x){
  133. REG_TYPE s0, s1, s2, s3;
  134. s0 = x[16] - x[17]; x[16] += x[17];
  135. s1 = x[18] - x[19]; x[18] += x[19];
  136. s2 = x[ 1] - x[ 0]; x[17] = x[ 1] + x[ 0];
  137. s3 = x[ 3] - x[ 2]; x[19] = x[ 3] + x[ 2];
  138. XNPROD31( s0, s1, cPI3_8, cPI1_8, &x[ 0], &x[ 2] );
  139. XPROD31 ( s2, s3, cPI1_8, cPI3_8, &x[ 1], &x[ 3] );
  140. MB();
  141. s0 = x[20] - x[21]; x[20] += x[21];
  142. s1 = x[22] - x[23]; x[22] += x[23];
  143. s2 = x[ 5] - x[ 4]; x[21] = x[ 5] + x[ 4];
  144. s3 = x[ 7] - x[ 6]; x[23] = x[ 7] + x[ 6];
  145. x[ 4] = MULT31((s0 - s1) , cPI2_8);
  146. x[ 5] = MULT31((s3 + s2) , cPI2_8);
  147. x[ 6] = MULT31((s0 + s1) , cPI2_8);
  148. x[ 7] = MULT31((s3 - s2) , cPI2_8);
  149. MB();
  150. s0 = x[24] - x[25]; x[24] += x[25];
  151. s1 = x[26] - x[27]; x[26] += x[27];
  152. s2 = x[ 9] - x[ 8]; x[25] = x[ 9] + x[ 8];
  153. s3 = x[11] - x[10]; x[27] = x[11] + x[10];
  154. XNPROD31( s0, s1, cPI1_8, cPI3_8, &x[ 8], &x[10] );
  155. XPROD31 ( s2, s3, cPI3_8, cPI1_8, &x[ 9], &x[11] );
  156. MB();
  157. s0 = x[28] - x[29]; x[28] += x[29];
  158. s1 = x[30] - x[31]; x[30] += x[31];
  159. s2 = x[12] - x[13]; x[29] = x[13] + x[12];
  160. s3 = x[15] - x[14]; x[31] = x[15] + x[14];
  161. x[12] = s0; x[13] = s3;
  162. x[14] = s1; x[15] = s2;
  163. MB();
  164. mdct_butterfly_16(x);
  165. mdct_butterfly_16(x+16);
  166. }
  167. /* N/stage point generic N stage butterfly (in place, 2 register) */
  168. STIN void mdct_butterfly_generic(DATA_TYPE *x,int points,int step){
  169. LOOKUP_T *T = sincos_lookup0;
  170. DATA_TYPE *x1 = x + points - 4;
  171. DATA_TYPE *x2 = x + (points>>1) - 4;
  172. REG_TYPE s0, s1, s2, s3;
  173. do{
  174. s0 = x1[0] - x1[1]; x1[0] += x1[1];
  175. s1 = x1[3] - x1[2]; x1[2] += x1[3];
  176. s2 = x2[1] - x2[0]; x1[1] = x2[1] + x2[0];
  177. s3 = x2[3] - x2[2]; x1[3] = x2[3] + x2[2];
  178. XPROD31( s1, s0, T[0], T[1], &x2[0], &x2[2] );
  179. XPROD31( s2, s3, T[0], T[1], &x2[1], &x2[3] ); T+=step;
  180. x1-=4;
  181. x2-=4;
  182. }while(T<sincos_lookup0+1024);
  183. x1 = x + (points>>1) + (points>>2) - 4;
  184. x2 = x + (points>>2) - 4;
  185. T = sincos_lookup0+1024;
  186. do{
  187. s0 = x1[0] - x1[1]; x1[0] += x1[1];
  188. s1 = x1[2] - x1[3]; x1[2] += x1[3];
  189. s2 = x2[0] - x2[1]; x1[1] = x2[1] + x2[0];
  190. s3 = x2[3] - x2[2]; x1[3] = x2[3] + x2[2];
  191. XNPROD31( s0, s1, T[0], T[1], &x2[0], &x2[2] );
  192. XNPROD31( s3, s2, T[0], T[1], &x2[1], &x2[3] ); T-=step;
  193. x1-=4;
  194. x2-=4;
  195. }while(T>sincos_lookup0);
  196. }
  197. STIN void mdct_butterflies(DATA_TYPE *x,int points,int shift){
  198. int stages=7-shift;
  199. int i,j;
  200. for(i=0;--stages>=0;i++){
  201. for(j=0;j<(1<<i);j++)
  202. {
  203. mdct_butterfly_generic(x+(points>>i)*j,points>>i,4<<(i+shift));
  204. }
  205. }
  206. for(j=0;j<points;j+=32)
  207. mdct_butterfly_32(x+j);
  208. }
  209. static unsigned char bitrev[16]={0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15};
  210. STIN int bitrev12(int x){
  211. return bitrev[x>>8]|(bitrev[(x&0x0f0)>>4]<<4)|(((int)bitrev[x&0x00f])<<8);
  212. }
  213. STIN void mdct_bitreverse(DATA_TYPE *x,int n,int shift){
  214. int bit = 0;
  215. DATA_TYPE *w = x+(n>>1);
  216. do{
  217. DATA_TYPE b = bitrev12(bit++);
  218. DATA_TYPE *xx = x + (b>>shift);
  219. REG_TYPE r;
  220. w -= 2;
  221. if(w>xx){
  222. r = xx[0];
  223. xx[0] = w[0];
  224. w[0] = r;
  225. r = xx[1];
  226. xx[1] = w[1];
  227. w[1] = r;
  228. }
  229. }while(w>x);
  230. }
  231. STIN void mdct_step7(DATA_TYPE *x,int n,int step){
  232. DATA_TYPE *w0 = x;
  233. DATA_TYPE *w1 = x+(n>>1);
  234. LOOKUP_T *T = (step>=4)?(sincos_lookup0+(step>>1)):sincos_lookup1;
  235. LOOKUP_T *Ttop = T+1024;
  236. REG_TYPE s0, s1, s2, s3;
  237. do{
  238. w1 -= 2;
  239. s0 = w0[0] + w1[0];
  240. s1 = w1[1] - w0[1];
  241. s2 = MULT32(s0, T[1]) + MULT32(s1, T[0]);
  242. s3 = MULT32(s1, T[1]) - MULT32(s0, T[0]);
  243. T+=step;
  244. s0 = (w0[1] + w1[1])>>1;
  245. s1 = (w0[0] - w1[0])>>1;
  246. w0[0] = s0 + s2;
  247. w0[1] = s1 + s3;
  248. w1[0] = s0 - s2;
  249. w1[1] = s3 - s1;
  250. w0 += 2;
  251. }while(T<Ttop);
  252. do{
  253. w1 -= 2;
  254. s0 = w0[0] + w1[0];
  255. s1 = w1[1] - w0[1];
  256. T-=step;
  257. s2 = MULT32(s0, T[0]) + MULT32(s1, T[1]);
  258. s3 = MULT32(s1, T[0]) - MULT32(s0, T[1]);
  259. s0 = (w0[1] + w1[1])>>1;
  260. s1 = (w0[0] - w1[0])>>1;
  261. w0[0] = s0 + s2;
  262. w0[1] = s1 + s3;
  263. w1[0] = s0 - s2;
  264. w1[1] = s3 - s1;
  265. w0 += 2;
  266. }while(w0<w1);
  267. }
  268. #endif
  269. STIN void mdct_step8(DATA_TYPE *x, int n, int step){
  270. LOOKUP_T *T;
  271. LOOKUP_T *V;
  272. DATA_TYPE *iX =x+(n>>1);
  273. switch(step) {
  274. #if defined(ONLY_C)
  275. default:
  276. T=(step>=4)?(sincos_lookup0+(step>>1)):sincos_lookup1;
  277. do{
  278. REG_TYPE s0 = x[0];
  279. REG_TYPE s1 = -x[1];
  280. XPROD31( s0, s1, T[0], T[1], x, x+1); T+=step;
  281. x +=2;
  282. }while(x<iX);
  283. break;
  284. #endif
  285. case 1:
  286. {
  287. /* linear interpolation between table values: offset=0.5, step=1 */
  288. REG_TYPE t0,t1,v0,v1,s0,s1;
  289. T = sincos_lookup0;
  290. V = sincos_lookup1;
  291. t0 = (*T++)>>1;
  292. t1 = (*T++)>>1;
  293. do{
  294. s0 = x[0];
  295. s1 = -x[1];
  296. t0 += (v0 = (*V++)>>1);
  297. t1 += (v1 = (*V++)>>1);
  298. XPROD31( s0, s1, t0, t1, x, x+1 );
  299. s0 = x[2];
  300. s1 = -x[3];
  301. v0 += (t0 = (*T++)>>1);
  302. v1 += (t1 = (*T++)>>1);
  303. XPROD31( s0, s1, v0, v1, x+2, x+3 );
  304. x += 4;
  305. }while(x<iX);
  306. break;
  307. }
  308. case 0:
  309. {
  310. /* linear interpolation between table values: offset=0.25, step=0.5 */
  311. REG_TYPE t0,t1,v0,v1,q0,q1,s0,s1;
  312. T = sincos_lookup0;
  313. V = sincos_lookup1;
  314. t0 = *T++;
  315. t1 = *T++;
  316. do{
  317. v0 = *V++;
  318. v1 = *V++;
  319. t0 += (q0 = (v0-t0)>>2);
  320. t1 += (q1 = (v1-t1)>>2);
  321. s0 = x[0];
  322. s1 = -x[1];
  323. XPROD31( s0, s1, t0, t1, x, x+1 );
  324. t0 = v0-q0;
  325. t1 = v1-q1;
  326. s0 = x[2];
  327. s1 = -x[3];
  328. XPROD31( s0, s1, t0, t1, x+2, x+3 );
  329. t0 = *T++;
  330. t1 = *T++;
  331. v0 += (q0 = (t0-v0)>>2);
  332. v1 += (q1 = (t1-v1)>>2);
  333. s0 = x[4];
  334. s1 = -x[5];
  335. XPROD31( s0, s1, v0, v1, x+4, x+5 );
  336. v0 = t0-q0;
  337. v1 = t1-q1;
  338. s0 = x[6];
  339. s1 = -x[7];
  340. XPROD31( s0, s1, v0, v1, x+5, x+6 );
  341. x+=8;
  342. }while(x<iX);
  343. break;
  344. }
  345. }
  346. }
  347. extern int mdct_backwardARM(int n, DATA_TYPE *in);
  348. /* partial; doesn't perform last-step deinterleave/unrolling. That
  349. can be done more efficiently during pcm output */
  350. void mdct_backward(int n, DATA_TYPE *in){
  351. int step;
  352. #if defined(ONLY_C)
  353. int shift;
  354. for (shift=4;!(n&(1<<shift));shift++);
  355. shift=13-shift;
  356. step=2<<shift;
  357. presymmetry(in,n>>1,step);
  358. mdct_butterflies(in,n>>1,shift);
  359. mdct_bitreverse(in,n,shift);
  360. mdct_step7(in,n,step);
  361. mdct_step8(in,n,step>>2);
  362. #else
  363. step = mdct_backwardARM(n, in);
  364. if (step <= 1)
  365. mdct_step8(in,n,step);
  366. #endif
  367. }
  368. #if defined(ONLY_C)
  369. void mdct_shift_right(int n, DATA_TYPE *in, DATA_TYPE *right){
  370. int i;
  371. n>>=2;
  372. in+=1;
  373. for(i=0;i<n;i++)
  374. right[i]=in[i<<1];
  375. }
  376. #endif
  377. extern ogg_int16_t *mdct_unroll_prelap(ogg_int16_t *out,
  378. DATA_TYPE *post,
  379. DATA_TYPE *l,
  380. int step);
  381. extern ogg_int16_t *mdct_unroll_part2(ogg_int16_t *out,
  382. DATA_TYPE *post,
  383. DATA_TYPE *l,
  384. DATA_TYPE *r,
  385. int step,
  386. LOOKUP_T *wL,
  387. LOOKUP_T *wR);
  388. extern ogg_int16_t *mdct_unroll_part3(ogg_int16_t *out,
  389. DATA_TYPE *post,
  390. DATA_TYPE *l,
  391. DATA_TYPE *r,
  392. int step,
  393. LOOKUP_T *wL,
  394. LOOKUP_T *wR);
  395. extern ogg_int16_t *mdct_unroll_postlap(ogg_int16_t *out,
  396. DATA_TYPE *post,
  397. DATA_TYPE *l,
  398. int step);
  399. void mdct_unroll_lap(int n0,int n1,
  400. int lW,int W,
  401. DATA_TYPE *in,
  402. DATA_TYPE *right,
  403. LOOKUP_T *w0,
  404. LOOKUP_T *w1,
  405. ogg_int16_t *out,
  406. int step,
  407. int start, /* samples, this frame */
  408. int end /* samples, this frame */){
  409. DATA_TYPE *l=in+(W&&lW ? n1>>1 : n0>>1);
  410. DATA_TYPE *r=right+(lW ? n1>>2 : n0>>2);
  411. DATA_TYPE *post;
  412. LOOKUP_T *wR=(W && lW ? w1+(n1>>1) : w0+(n0>>1));
  413. LOOKUP_T *wL=(W && lW ? w1 : w0 );
  414. int preLap=(lW && !W ? (n1>>2)-(n0>>2) : 0 );
  415. int halfLap=(lW && W ? (n1>>2) : (n0>>2) );
  416. int postLap=(!lW && W ? (n1>>2)-(n0>>2) : 0 );
  417. int n,off;
  418. /* preceeding direct-copy lapping from previous frame, if any */
  419. if(preLap){
  420. n = (end<preLap?end:preLap);
  421. off = (start<preLap?start:preLap);
  422. post = r-n;
  423. r -= off;
  424. start -= off;
  425. end -= n;
  426. #if defined(ONLY_C)
  427. while(r>post){
  428. *out = CLIP_TO_15((*--r)>>9);
  429. out+=step;
  430. }
  431. #else
  432. out = mdct_unroll_prelap(out,post,r,step);
  433. n -= off;
  434. if (n < 0)
  435. n = 0;
  436. r -= n;
  437. #endif
  438. }
  439. /* cross-lap; two halves due to wrap-around */
  440. n = (end<halfLap?end:halfLap);
  441. off = (start<halfLap?start:halfLap);
  442. post = r-n;
  443. r -= off;
  444. l -= off*2;
  445. start -= off;
  446. wR -= off;
  447. wL += off;
  448. end -= n;
  449. #if defined(ONLY_C)
  450. while(r>post){
  451. l-=2;
  452. *out = CLIP_TO_15((MULT31(*--r,*--wR) + MULT31(*l,*wL++))>>9);
  453. out+=step;
  454. }
  455. #else
  456. out = mdct_unroll_part2(out, post, l, r, step, wL, wR);
  457. n -= off;
  458. if (n < 0)
  459. n = 0;
  460. l -= 2*n;
  461. r -= n;
  462. wR -= n;
  463. wL += n;
  464. #endif
  465. n = (end<halfLap?end:halfLap);
  466. off = (start<halfLap?start:halfLap);
  467. post = r+n;
  468. r += off;
  469. l += off*2;
  470. start -= off;
  471. end -= n;
  472. wR -= off;
  473. wL += off;
  474. #if defined(ONLY_C)
  475. while(r<post){
  476. *out = CLIP_TO_15((MULT31(*r++,*--wR) - MULT31(*l,*wL++))>>9);
  477. out+=step;
  478. l+=2;
  479. }
  480. #else
  481. out = mdct_unroll_part3(out, post, l, r, step, wL, wR);
  482. n -= off;
  483. if (n < 0)
  484. n = 0;
  485. l += 2*n;
  486. r += n;
  487. wR -= n;
  488. wL += n;
  489. #endif
  490. /* preceeding direct-copy lapping from previous frame, if any */
  491. if(postLap){
  492. n = (end<postLap?end:postLap);
  493. off = (start<postLap?start:postLap);
  494. post = l+n*2;
  495. l += off*2;
  496. #if defined(ONLY_C)
  497. while(l<post){
  498. *out = CLIP_TO_15((-*l)>>9);
  499. out+=step;
  500. l+=2;
  501. }
  502. #else
  503. out = mdct_unroll_postlap(out,post,l,step);
  504. #endif
  505. }
  506. }