Skip to content

Commit

Permalink
core: Fix formatting mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdeljanov committed Jan 8, 2024
1 parent 24e941f commit cc7fe3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion symphonia-core/src/dsp/mdct/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ mod no_simd;
feature = "opt-simd-avx",
feature = "opt-simd-neon"
)))]

pub use no_simd::*;

#[cfg(test)]
Expand Down
6 changes: 2 additions & 4 deletions symphonia-core/src/dsp/mdct/no_simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ impl Imdct {

// Post-FFT twiddling and processing to expand the N/2 complex output values into 2N real
// output samples.
for (i, (x, &w)) in self.fft_out[..n4].iter().zip(self.twiddle[..n4].iter()).enumerate()
{
for (i, (x, &w)) in self.fft_out[..n4].iter().zip(self.twiddle[..n4].iter()).enumerate() {
// The real and imaginary components of the post-twiddled FFT samples are used to
// generate 4 reak output samples. Using the first half of the complex FFT output,
// populate each of the 4 output vectors.
Expand All @@ -117,8 +116,7 @@ impl Imdct {
vec3[fi] = val.re;
}

for (i, (x, &w)) in self.fft_out[n4..].iter().zip(self.twiddle[n4..].iter()).enumerate()
{
for (i, (x, &w)) in self.fft_out[n4..].iter().zip(self.twiddle[n4..].iter()).enumerate() {
// Using the second half of the FFT output samples, finish populating each of the 4
// output vectors.
let val = w * x.conj();
Expand Down
6 changes: 2 additions & 4 deletions symphonia-core/src/dsp/mdct/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ impl Imdct {

// Post-FFT twiddling and processing to expand the N/2 complex output values into 2N real
// output samples.
for (i, (x, &w)) in self.scratch[..n4].iter().zip(self.twiddle[..n4].iter()).enumerate()
{
for (i, (x, &w)) in self.scratch[..n4].iter().zip(self.twiddle[..n4].iter()).enumerate() {
// The real and imaginary components of the post-twiddled FFT samples are used to
// generate 4 reak output samples. Using the first half of the complex FFT output,
// populate each of the 4 output vectors.
Expand All @@ -126,8 +125,7 @@ impl Imdct {
vec3[fi] = val.re;
}

for (i, (x, &w)) in self.scratch[n4..].iter().zip(self.twiddle[n4..].iter()).enumerate()
{
for (i, (x, &w)) in self.scratch[n4..].iter().zip(self.twiddle[n4..].iter()).enumerate() {
// Using the second half of the FFT output samples, finish populating each of the 4
// output vectors.
let val = w * x.conj();
Expand Down

0 comments on commit cc7fe3a

Please sign in to comment.