00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "arm_math.h"
00026
00027
00055 void arm_cfft_radix4_q31(
00056 const arm_cfft_radix4_instance_q31 * S,
00057 q31_t * pSrc)
00058 {
00059 if(S->ifftFlag == 1u)
00060 {
00061
00062 arm_radix4_butterfly_inverse_q31(pSrc, S->fftLen, S->pTwiddle,
00063 S->twidCoefModifier);
00064 }
00065 else
00066 {
00067
00068 arm_radix4_butterfly_q31(pSrc, S->fftLen, S->pTwiddle,
00069 S->twidCoefModifier);
00070 }
00071
00072
00073 if(S->bitReverseFlag == 1u)
00074 {
00075
00076 arm_bitreversal_q31(pSrc, S->fftLen, S->bitRevFactor, S->pBitRevTable);
00077 }
00078
00079 }
00080
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00128 void arm_radix4_butterfly_q31(
00129 q31_t * pSrc,
00130 uint32_t fftLen,
00131 q31_t * pCoef,
00132 uint32_t twidCoefModifier)
00133 {
00134 uint32_t n1, n2, ia1, ia2, ia3, i0, i1, i2, i3, j, k;
00135 q31_t t1, t2, r1, r2, s1, s2, co1, co2, co3, si1, si2, si3;
00136
00137 q31_t xa, xb, xc, xd;
00138 q31_t ya, yb, yc, yd;
00139 q31_t xa_out, xb_out, xc_out, xd_out;
00140 q31_t ya_out, yb_out, yc_out, yd_out;
00141
00142 q31_t *ptr1;
00143 q63_t xaya, xbyb, xcyc, xdyd;
00144
00145
00146
00147
00148
00149
00150
00151
00152 n2 = fftLen;
00153 n1 = n2;
00154
00155 n2 >>= 2u;
00156 i0 = 0u;
00157 ia1 = 0u;
00158
00159 j = n2;
00160
00161
00162 do
00163 {
00164
00165
00166 i1 = i0 + n2;
00167 i2 = i1 + n2;
00168 i3 = i2 + n2;
00169
00170
00171
00172
00173
00174 r1 = (pSrc[(2u * i0)] >> 4u) + (pSrc[(2u * i2)] >> 4u);
00175
00176 r2 = (pSrc[2u * i0] >> 4u) - (pSrc[2u * i2] >> 4u);
00177
00178
00179 t1 = (pSrc[2u * i1] >> 4u) + (pSrc[2u * i3] >> 4u);
00180
00181
00182 s1 = (pSrc[(2u * i0) + 1u] >> 4u) + (pSrc[(2u * i2) + 1u] >> 4u);
00183
00184 s2 = (pSrc[(2u * i0) + 1u] >> 4u) - (pSrc[(2u * i2) + 1u] >> 4u);
00185
00186
00187 pSrc[2u * i0] = (r1 + t1);
00188
00189 r1 = r1 - t1;
00190
00191 t2 = (pSrc[(2u * i1) + 1u] >> 4u) + (pSrc[(2u * i3) + 1u] >> 4u);
00192
00193
00194
00195 pSrc[(2u * i0) + 1u] = (s1 + t2);
00196
00197
00198 s1 = s1 - t2;
00199
00200
00201 t1 = (pSrc[(2u * i1) + 1u] >> 4u) - (pSrc[(2u * i3) + 1u] >> 4u);
00202
00203 t2 = (pSrc[2u * i1] >> 4u) - (pSrc[2u * i3] >> 4u);
00204
00205
00206 ia2 = 2u * ia1;
00207 co2 = pCoef[ia2 * 2u];
00208 si2 = pCoef[(ia2 * 2u) + 1u];
00209
00210
00211 pSrc[2u * i1] = (((int32_t) (((q63_t) r1 * co2) >> 32)) +
00212 ((int32_t) (((q63_t) s1 * si2) >> 32))) << 1u;
00213
00214
00215 pSrc[(2u * i1) + 1u] = (((int32_t) (((q63_t) s1 * co2) >> 32)) -
00216 ((int32_t) (((q63_t) r1 * si2) >> 32))) << 1u;
00217
00218
00219 r1 = r2 + t1;
00220
00221 r2 = r2 - t1;
00222
00223
00224 s1 = s2 - t2;
00225
00226 s2 = s2 + t2;
00227
00228 co1 = pCoef[ia1 * 2u];
00229 si1 = pCoef[(ia1 * 2u) + 1u];
00230
00231
00232 pSrc[2u * i2] = (((int32_t) (((q63_t) r1 * co1) >> 32)) +
00233 ((int32_t) (((q63_t) s1 * si1) >> 32))) << 1u;
00234
00235
00236 pSrc[(2u * i2) + 1u] = (((int32_t) (((q63_t) s1 * co1) >> 32)) -
00237 ((int32_t) (((q63_t) r1 * si1) >> 32))) << 1u;
00238
00239
00240 ia3 = 3u * ia1;
00241 co3 = pCoef[ia3 * 2u];
00242 si3 = pCoef[(ia3 * 2u) + 1u];
00243
00244
00245 pSrc[2u * i3] = (((int32_t) (((q63_t) r2 * co3) >> 32)) +
00246 ((int32_t) (((q63_t) s2 * si3) >> 32))) << 1u;
00247
00248
00249 pSrc[(2u * i3) + 1u] = (((int32_t) (((q63_t) s2 * co3) >> 32)) -
00250 ((int32_t) (((q63_t) r2 * si3) >> 32))) << 1u;
00251
00252
00253 ia1 = ia1 + twidCoefModifier;
00254
00255
00256 i0 = i0 + 1u;
00257
00258 } while(--j);
00259
00260
00261
00262
00263
00264
00265
00266
00267
00268
00269
00270 twidCoefModifier <<= 2u;
00271
00272
00273 for (k = fftLen / 4u; k > 4u; k >>= 2u)
00274 {
00275
00276 n1 = n2;
00277 n2 >>= 2u;
00278 ia1 = 0u;
00279
00280
00281 for (j = 0u; j <= (n2 - 1u); j++)
00282 {
00283
00284 ia2 = ia1 + ia1;
00285 ia3 = ia2 + ia1;
00286 co1 = pCoef[ia1 * 2u];
00287 si1 = pCoef[(ia1 * 2u) + 1u];
00288 co2 = pCoef[ia2 * 2u];
00289 si2 = pCoef[(ia2 * 2u) + 1u];
00290 co3 = pCoef[ia3 * 2u];
00291 si3 = pCoef[(ia3 * 2u) + 1u];
00292
00293
00294 ia1 = ia1 + twidCoefModifier;
00295
00296 for (i0 = j; i0 < fftLen; i0 += n1)
00297 {
00298
00299
00300 i1 = i0 + n2;
00301 i2 = i1 + n2;
00302 i3 = i2 + n2;
00303
00304
00305
00306 r1 = pSrc[2u * i0] + pSrc[2u * i2];
00307
00308 r2 = pSrc[2u * i0] - pSrc[2u * i2];
00309
00310
00311 s1 = pSrc[(2u * i0) + 1u] + pSrc[(2u * i2) + 1u];
00312
00313 s2 = pSrc[(2u * i0) + 1u] - pSrc[(2u * i2) + 1u];
00314
00315
00316 t1 = pSrc[2u * i1] + pSrc[2u * i3];
00317
00318
00319 pSrc[2u * i0] = (r1 + t1) >> 2u;
00320
00321 r1 = r1 - t1;
00322
00323
00324 t2 = pSrc[(2u * i1) + 1u] + pSrc[(2u * i3) + 1u];
00325
00326 pSrc[(2u * i0) + 1u] = (s1 + t2) >> 2u;
00327
00328
00329 s1 = s1 - t2;
00330
00331
00332 t1 = pSrc[(2u * i1) + 1u] - pSrc[(2u * i3) + 1u];
00333
00334 t2 = pSrc[2u * i1] - pSrc[2u * i3];
00335
00336
00337 pSrc[2u * i1] = (((int32_t) (((q63_t) r1 * co2) >> 32)) +
00338 ((int32_t) (((q63_t) s1 * si2) >> 32))) >> 1u;
00339
00340
00341 pSrc[(2u * i1) + 1u] = (((int32_t) (((q63_t) s1 * co2) >> 32)) -
00342 ((int32_t) (((q63_t) r1 * si2) >> 32))) >> 1u;
00343
00344
00345 r1 = r2 + t1;
00346
00347 r2 = r2 - t1;
00348
00349
00350 s1 = s2 - t2;
00351
00352 s2 = s2 + t2;
00353
00354
00355 pSrc[2u * i2] = (((int32_t) (((q63_t) r1 * co1) >> 32)) +
00356 ((int32_t) (((q63_t) s1 * si1) >> 32))) >> 1u;
00357
00358
00359 pSrc[(2u * i2) + 1u] = (((int32_t) (((q63_t) s1 * co1) >> 32)) -
00360 ((int32_t) (((q63_t) r1 * si1) >> 32))) >> 1u;
00361
00362
00363 pSrc[2u * i3] = (((int32_t) (((q63_t) r2 * co3) >> 32)) +
00364 ((int32_t) (((q63_t) s2 * si3) >> 32))) >> 1u;
00365
00366
00367 pSrc[(2u * i3) + 1u] = (((int32_t) (((q63_t) s2 * co3) >> 32)) -
00368 ((int32_t) (((q63_t) r2 * si3) >> 32))) >> 1u;
00369 }
00370 }
00371 twidCoefModifier <<= 2u;
00372 }
00373
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383 j = fftLen >> 2;
00384 ptr1 = &pSrc[0];
00385
00386
00387 do
00388 {
00389
00390 #ifndef ARM_MATH_BIG_ENDIAN
00391
00392
00393 xaya = *__SIMD64(ptr1)++; xa = (q31_t)xaya; ya = (q31_t)(xaya >> 32);
00394
00395
00396 xbyb = *__SIMD64(ptr1)++; xb = (q31_t)xbyb; yb = (q31_t)(xbyb >> 32);
00397
00398
00399 xcyc = *__SIMD64(ptr1)++; xc = (q31_t)xcyc; yc = (q31_t)(xcyc >> 32);
00400
00401
00402 xdyd = *__SIMD64(ptr1)++; xd = (q31_t)xdyd; yd = (q31_t)(xdyd >> 32);
00403
00404 #else
00405
00406
00407 xaya = *__SIMD64(ptr1)++; ya = (q31_t)xaya; xa = (q31_t)(xaya >> 32);
00408
00409
00410 xbyb = *__SIMD64(ptr1)++; yb = (q31_t)xbyb; xb = (q31_t)(xbyb >> 32);
00411
00412
00413 xcyc = *__SIMD64(ptr1)++; yc = (q31_t)xcyc; xc = (q31_t)(xcyc >> 32);
00414
00415
00416 xdyd = *__SIMD64(ptr1)++; yd = (q31_t)xdyd; xd = (q31_t)(xdyd >> 32);
00417
00418
00419 #endif
00420
00421
00422 xa_out = xa + xb + xc + xd;
00423
00424
00425 ya_out = ya + yb + yc + yd;
00426
00427
00428 ptr1 = ptr1 - 8u;
00429
00430
00431 *ptr1++ = xa_out;
00432 *ptr1++ = ya_out;
00433
00434 xc_out = (xa-xb+xc-xd);
00435 yc_out = (ya-yb+yc-yd);
00436
00437
00438 *ptr1++ = xc_out;
00439 *ptr1++ = yc_out;
00440
00441 xb_out = (xa+yb-xc-yd);
00442 yb_out = (ya-xb-yc+xd);
00443
00444
00445 *ptr1++ = xb_out;
00446 *ptr1++ = yb_out;
00447
00448 xd_out = (xa-yb-xc+yd);
00449 yd_out = (ya+xb-yc-xd);
00450
00451
00452 *ptr1++ = xd_out;
00453 *ptr1++ = yd_out;
00454
00455
00456 }while(--j);
00457
00458
00459
00460
00461
00462
00463
00464
00465 }
00466
00467
00478
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00489
00490
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
00502
00503
00504
00505
00506
00507
00508
00509
00510
00511
00512
00513
00514
00515
00516
00517
00518 void arm_radix4_butterfly_inverse_q31(
00519 q31_t * pSrc,
00520 uint32_t fftLen,
00521 q31_t * pCoef,
00522 uint32_t twidCoefModifier)
00523 {
00524 uint32_t n1, n2, ia1, ia2, ia3, i0, i1, i2, i3, j, k;
00525 q31_t t1, t2, r1, r2, s1, s2, co1, co2, co3, si1, si2, si3;
00526 q31_t xa, xb, xc, xd;
00527 q31_t ya, yb, yc, yd;
00528 q31_t xa_out, xb_out, xc_out, xd_out;
00529 q31_t ya_out, yb_out, yc_out, yd_out;
00530
00531 q31_t *ptr1;
00532 q63_t xaya, xbyb, xcyc, xdyd;
00533
00534
00535
00536
00537
00538
00539
00540
00541 n2 = fftLen;
00542 n1 = n2;
00543
00544 n2 >>= 2u;
00545 i0 = 0u;
00546 ia1 = 0u;
00547
00548 j = n2;
00549
00550 do
00551 {
00552
00553
00554
00555
00556
00557 i1 = i0 + n2;
00558 i2 = i1 + n2;
00559 i3 = i2 + n2;
00560
00561
00562
00563 r1 = (pSrc[2u * i0] >> 4u) + (pSrc[2u * i2] >> 4u);
00564
00565 r2 = (pSrc[2u * i0] >> 4u) - (pSrc[2u * i2] >> 4u);
00566
00567
00568 t1 = (pSrc[2u * i1] >> 4u) + (pSrc[2u * i3] >> 4u);
00569
00570
00571 s1 = (pSrc[(2u * i0) + 1u] >> 4u) + (pSrc[(2u * i2) + 1u] >> 4u);
00572
00573 s2 = (pSrc[(2u * i0) + 1u] >> 4u) - (pSrc[(2u * i2) + 1u] >> 4u);
00574
00575
00576
00577
00578 pSrc[2u * i0] = (r1 + t1);
00579
00580 r1 = r1 - t1;
00581
00582 t2 = (pSrc[(2u * i1) + 1u] >> 4u) + (pSrc[(2u * i3) + 1u] >> 4u);
00583
00584 pSrc[(2u * i0) + 1u] = (s1 + t2);
00585
00586
00587 s1 = s1 - t2;
00588
00589
00590 t1 = (pSrc[(2u * i1) + 1u] >> 4u) - (pSrc[(2u * i3) + 1u] >> 4u);
00591
00592 t2 = (pSrc[2u * i1] >> 4u) - (pSrc[2u * i3] >> 4u);
00593
00594
00595 ia2 = 2u * ia1;
00596 co2 = pCoef[ia2 * 2u];
00597 si2 = pCoef[(ia2 * 2u) + 1u];
00598
00599
00600 pSrc[2u * i1] = (((int32_t) (((q63_t) r1 * co2) >> 32)) -
00601 ((int32_t) (((q63_t) s1 * si2) >> 32))) << 1u;
00602
00603
00604 pSrc[2u * i1 + 1u] = (((int32_t) (((q63_t) s1 * co2) >> 32)) +
00605 ((int32_t) (((q63_t) r1 * si2) >> 32))) << 1u;
00606
00607
00608 r1 = r2 - t1;
00609
00610 r2 = r2 + t1;
00611
00612
00613 s1 = s2 + t2;
00614
00615 s2 = s2 - t2;
00616
00617 co1 = pCoef[ia1 * 2u];
00618 si1 = pCoef[(ia1 * 2u) + 1u];
00619
00620
00621 pSrc[2u * i2] = (((int32_t) (((q63_t) r1 * co1) >> 32)) -
00622 ((int32_t) (((q63_t) s1 * si1) >> 32))) << 1u;
00623
00624
00625 pSrc[(2u * i2) + 1u] = (((int32_t) (((q63_t) s1 * co1) >> 32)) +
00626 ((int32_t) (((q63_t) r1 * si1) >> 32))) << 1u;
00627
00628
00629 ia3 = 3u * ia1;
00630 co3 = pCoef[ia3 * 2u];
00631 si3 = pCoef[(ia3 * 2u) + 1u];
00632
00633
00634 pSrc[2u * i3] = (((int32_t) (((q63_t) r2 * co3) >> 32)) -
00635 ((int32_t) (((q63_t) s2 * si3) >> 32))) << 1u;
00636
00637
00638 pSrc[(2u * i3) + 1u] = (((int32_t) (((q63_t) s2 * co3) >> 32)) +
00639 ((int32_t) (((q63_t) r2 * si3) >> 32))) << 1u;
00640
00641
00642 ia1 = ia1 + twidCoefModifier;
00643
00644
00645 i0 = i0 + 1u;
00646
00647 } while(--j);
00648
00649
00650
00651
00652
00653
00654
00655 twidCoefModifier <<= 2u;
00656
00657
00658 for (k = fftLen / 4u; k > 4u; k >>= 2u)
00659 {
00660
00661 n1 = n2;
00662 n2 >>= 2u;
00663 ia1 = 0u;
00664
00665 for (j = 0; j <= (n2 - 1u); j++)
00666 {
00667
00668 ia2 = ia1 + ia1;
00669 ia3 = ia2 + ia1;
00670 co1 = pCoef[ia1 * 2u];
00671 si1 = pCoef[(ia1 * 2u) + 1u];
00672 co2 = pCoef[ia2 * 2u];
00673 si2 = pCoef[(ia2 * 2u) + 1u];
00674 co3 = pCoef[ia3 * 2u];
00675 si3 = pCoef[(ia3 * 2u) + 1u];
00676
00677 ia1 = ia1 + twidCoefModifier;
00678
00679 for (i0 = j; i0 < fftLen; i0 += n1)
00680 {
00681
00682
00683 i1 = i0 + n2;
00684 i2 = i1 + n2;
00685 i3 = i2 + n2;
00686
00687
00688
00689 r1 = pSrc[2u * i0] + pSrc[2u * i2];
00690
00691 r2 = pSrc[2u * i0] - pSrc[2u * i2];
00692
00693
00694 s1 = pSrc[(2u * i0) + 1u] + pSrc[(2u * i2) + 1u];
00695
00696 s2 = pSrc[(2u * i0) + 1u] - pSrc[(2u * i2) + 1u];
00697
00698
00699 t1 = pSrc[2u * i1] + pSrc[2u * i3];
00700
00701
00702 pSrc[2u * i0] = (r1 + t1) >> 2u;
00703
00704 r1 = r1 - t1;
00705
00706 t2 = pSrc[(2u * i1) + 1u] + pSrc[(2u * i3) + 1u];
00707
00708 pSrc[(2u * i0) + 1u] = (s1 + t2) >> 2u;
00709
00710
00711 s1 = s1 - t2;
00712
00713
00714 t1 = pSrc[(2u * i1) + 1u] - pSrc[(2u * i3) + 1u];
00715
00716 t2 = pSrc[2u * i1] - pSrc[2u * i3];
00717
00718
00719 pSrc[2u * i1] = (((int32_t) (((q63_t) r1 * co2) >> 32u)) -
00720 ((int32_t) (((q63_t) s1 * si2) >> 32u))) >> 1u;
00721
00722
00723 pSrc[(2u * i1) + 1u] =
00724 (((int32_t) (((q63_t) s1 * co2) >> 32u)) +
00725 ((int32_t) (((q63_t) r1 * si2) >> 32u))) >> 1u;
00726
00727
00728 r1 = r2 - t1;
00729
00730 r2 = r2 + t1;
00731
00732
00733 s1 = s2 + t2;
00734
00735 s2 = s2 - t2;
00736
00737
00738 pSrc[2u * i2] = (((int32_t) (((q63_t) r1 * co1) >> 32)) -
00739 ((int32_t) (((q63_t) s1 * si1) >> 32))) >> 1u;
00740
00741
00742 pSrc[(2u * i2) + 1u] = (((int32_t) (((q63_t) s1 * co1) >> 32)) +
00743 ((int32_t) (((q63_t) r1 * si1) >> 32))) >> 1u;
00744
00745
00746 pSrc[(2u * i3)] = (((int32_t) (((q63_t) r2 * co3) >> 32)) -
00747 ((int32_t) (((q63_t) s2 * si3) >> 32))) >> 1u;
00748
00749
00750 pSrc[(2u * i3) + 1u] = (((int32_t) (((q63_t) s2 * co3) >> 32)) +
00751 ((int32_t) (((q63_t) r2 * si3) >> 32))) >> 1u;
00752 }
00753 }
00754 twidCoefModifier <<= 2u;
00755 }
00756
00757
00758
00759
00760
00761
00762
00763
00764
00765
00766
00767
00768
00769 j = fftLen >> 2;
00770 ptr1 = &pSrc[0];
00771
00772
00773 do
00774 {
00775 #ifndef ARM_MATH_BIG_ENDIAN
00776
00777 xaya = *__SIMD64(ptr1)++; xa = (q31_t)xaya; ya = (q31_t)(xaya >> 32);
00778
00779
00780 xbyb = *__SIMD64(ptr1)++; xb = (q31_t)xbyb; yb = (q31_t)(xbyb >> 32);
00781
00782
00783 xcyc = *__SIMD64(ptr1)++; xc = (q31_t)xcyc; yc = (q31_t)(xcyc >> 32);
00784
00785
00786 xdyd = *__SIMD64(ptr1)++; xd = (q31_t)xdyd; yd = (q31_t)(xdyd >> 32);
00787
00788 #else
00789
00790
00791 xaya = *__SIMD64(ptr1)++; ya = (q31_t)xaya; xa = (q31_t)(xaya >> 32);
00792
00793
00794 xbyb = *__SIMD64(ptr1)++; yb = (q31_t)xbyb; xb = (q31_t)(xbyb >> 32);
00795
00796
00797 xcyc = *__SIMD64(ptr1)++; yc = (q31_t)xcyc; xc = (q31_t)(xcyc >> 32);
00798
00799
00800 xdyd = *__SIMD64(ptr1)++; yd = (q31_t)xdyd; xd = (q31_t)(xdyd >> 32);
00801
00802
00803 #endif
00804
00805
00806 xa_out = xa + xb + xc + xd;
00807
00808
00809 ya_out = ya + yb + yc + yd;
00810
00811
00812 ptr1 = ptr1 - 8u;
00813
00814
00815 *ptr1++ = xa_out;
00816 *ptr1++ = ya_out;
00817
00818 xc_out = (xa-xb+xc-xd);
00819 yc_out = (ya-yb+yc-yd);
00820
00821
00822 *ptr1++ = xc_out;
00823 *ptr1++ = yc_out;
00824
00825 xb_out = (xa-yb-xc+yd);
00826 yb_out = (ya+xb-yc-xd);
00827
00828
00829 *ptr1++ = xb_out;
00830 *ptr1++ = yb_out;
00831
00832 xd_out = (xa+yb-xc-yd);
00833 yd_out = (ya-xb-yc+xd);
00834
00835
00836 *ptr1++ = xd_out;
00837 *ptr1++ = yd_out;
00838
00839
00840 }while(--j);
00841
00842
00843
00844
00845
00846
00847
00848 }
00849
00850
00851
00852
00853
00854
00855
00856
00857
00858
00859
00860 void arm_bitreversal_q31(
00861 q31_t * pSrc,
00862 uint32_t fftLen,
00863 uint16_t bitRevFactor,
00864 uint16_t * pBitRevTable)
00865 {
00866 uint32_t fftLenBy2, fftLenBy2p1, i, j;
00867 q31_t in;
00868
00869
00870 j = 0u;
00871 fftLenBy2 = fftLen / 2u;
00872 fftLenBy2p1 = (fftLen / 2u) + 1u;
00873
00874
00875 for (i = 0u; i <= (fftLenBy2 - 2u); i += 2u)
00876 {
00877 if(i < j)
00878 {
00879
00880 in = pSrc[2u * i];
00881 pSrc[2u * i] = pSrc[2u * j];
00882 pSrc[2u * j] = in;
00883
00884
00885 in = pSrc[(2u * i) + 1u];
00886 pSrc[(2u * i) + 1u] = pSrc[(2u * j) + 1u];
00887 pSrc[(2u * j) + 1u] = in;
00888
00889
00890 in = pSrc[2u * (i + fftLenBy2p1)];
00891 pSrc[2u * (i + fftLenBy2p1)] = pSrc[2u * (j + fftLenBy2p1)];
00892 pSrc[2u * (j + fftLenBy2p1)] = in;
00893
00894
00895 in = pSrc[(2u * (i + fftLenBy2p1)) + 1u];
00896 pSrc[(2u * (i + fftLenBy2p1)) + 1u] =
00897 pSrc[(2u * (j + fftLenBy2p1)) + 1u];
00898 pSrc[(2u * (j + fftLenBy2p1)) + 1u] = in;
00899
00900 }
00901
00902
00903 in = pSrc[2u * (i + 1u)];
00904 pSrc[2u * (i + 1u)] = pSrc[2u * (j + fftLenBy2)];
00905 pSrc[2u * (j + fftLenBy2)] = in;
00906
00907
00908 in = pSrc[(2u * (i + 1u)) + 1u];
00909 pSrc[(2u * (i + 1u)) + 1u] = pSrc[(2u * (j + fftLenBy2)) + 1u];
00910 pSrc[(2u * (j + fftLenBy2)) + 1u] = in;
00911
00912
00913 j = *pBitRevTable;
00914
00915
00916 pBitRevTable += bitRevFactor;
00917 }
00918 }