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:
parent
efb52beb09
commit
70d2ce6cec
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user