Browse Source

Add TODO for analyze peak optimization

dds
PaulStoffregen 8 years ago
parent
commit
0af537f2ca
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      analyze_peak.cpp

+ 2
- 0
analyze_peak.cpp View File

@@ -42,6 +42,8 @@ void AudioAnalyzePeak::update(void)
max = max_sample;
do {
int16_t d=*p++;
// TODO: can we speed this up with SSUB16 and SEL
// http://www.m4-unleashed.com/parallel-comparison/
if (d<min) min=d;
if (d>max) max=d;
} while (p < end);

Loading…
Cancel
Save