Commit f04752e0 authored by Marco Berzborn's avatar Marco Berzborn
Browse files

use powf and sqrtf from cmath

parent 8a40a920
......@@ -3,6 +3,7 @@
#include <algorithm>
#include <assert.h>
#include <math.h>
#include <cmath>
#include <sstream>
#include <memory.h>
......@@ -556,9 +557,9 @@ float ITASampleBuffer::RootMeanSquare( bool bPower /* = true */ ) const
float fRMS = 0.0f;
for( int i = 0; i < m_iLength; i++ )
fRMS += std::powf( m_pfData[ i ], 2 );
fRMS += powf( m_pfData[ i ], 2 );
return std::sqrtf( fRMS ) / ( bPower ? ( float ) m_iLength : 1.0f );
return sqrtf( fRMS ) / ( bPower ? ( float ) m_iLength : 1.0f );
}
float& ITASampleBuffer::operator[]( int iSample )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment