1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

NFM demod: smoothersterp optimization

This commit is contained in:
f4exb 2017-05-13 16:01:27 +02:00
parent efb52beb09
commit 70d2ce6cec

View File

@ -247,6 +247,12 @@ private:
float smootherstep(float x)
{
if (x == 1.0f) {
return 1.0f;
} else if (x == 0.0f) {
return 0.0f;
}
double x3 = x * x * x;
double x4 = x * x3;
double x5 = x * x4;