NFM demod: smoothersterp optimization

This commit is contained in:
f4exb 2017-05-13 16:01:27 +02:00
parent efb52beb09
commit 70d2ce6cec
1 changed files with 6 additions and 0 deletions

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;