mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-25 01:04:44 +01:00
Fix typo in fastAmplitude()
This commit is contained in:
parent
9c1361a8a9
commit
97187b790f
@ -82,7 +82,7 @@ namespace dsp {
|
|||||||
|
|
||||||
inline float fastAmplitude() {
|
inline float fastAmplitude() {
|
||||||
float re_abs = fabsf(re);
|
float re_abs = fabsf(re);
|
||||||
float im_abs = fabsf(re);
|
float im_abs = fabsf(im);
|
||||||
if (re_abs > im_abs) { return re_abs + 0.4f * im_abs; }
|
if (re_abs > im_abs) { return re_abs + 0.4f * im_abs; }
|
||||||
return im_abs + 0.4f * re_abs;
|
return im_abs + 0.4f * re_abs;
|
||||||
}
|
}
|
||||||
@ -125,4 +125,4 @@ namespace dsp {
|
|||||||
float l;
|
float l;
|
||||||
float r;
|
float r;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user