1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-01 16:38:06 -04:00

Optimization: avoid cvtsd2ss instructions by using explicit floating point litterals. Spectrum histogram calculation optimization

This commit is contained in:
f4exb
2015-10-09 03:59:28 +02:00
parent 7a798f7dbf
commit 7742c0de2d
7 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ void ScopeVis::feed(const SampleVector::const_iterator& cbegin, const SampleVect
for(int i = 0; i < count; ++i)
{
*it++ = Complex(begin->real() / 32768.0, begin->imag() / 32768.0);
*it++ = Complex(begin->real() / 32768.0f, begin->imag() / 32768.0f);
++begin;
}