Merge pull request #1179 from isorochan/master

Fix typo in fastAmplitude()
This commit is contained in:
AlexandreRouma 2023-09-07 20:05:24 +02:00 committed by GitHub
commit a55d1d9c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ namespace dsp {
inline float fastAmplitude() {
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; }
return im_abs + 0.4f * re_abs;
}
@ -125,4 +125,4 @@ namespace dsp {
float l;
float r;
};
}
}