mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-07 08:24:43 -04:00
NFM demod: smoothersterp optimization
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user