Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cc6719ffa941
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 56b6fcf9feb6
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 15, 2020

  1. Fixed FFT normalization

    azonenberg committed Aug 15, 2020
    Copy the full SHA
    56b6fcf View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 scopeprotocols/FFTDecoder.cpp
3 changes: 2 additions & 1 deletion scopeprotocols/FFTDecoder.cpp
Original file line number Diff line number Diff line change
@@ -224,7 +224,8 @@ void FFTDecoder::NormalizeOutputAVX2(AnalogWaveform* cap, size_t nouts, size_t n
__m256i all_fours = _mm256_load_si256(reinterpret_cast<__m256i*>(fours_x4));
__m256i counts = _mm256_load_si256(reinterpret_cast<__m256i*>(count_x4));

float norm = 1.0f / npoints;
//double since we only look at positive half
float norm = 2.0f / npoints;
__m256 norm_f = { norm, norm, norm, norm, norm, norm, norm, norm };

float* pout = (float*)&cap->m_samples[0];