Skip to content

Commit

Permalink
Merge pull request #1179 from isorochan/master
Browse files Browse the repository at this point in the history
Fix typo in fastAmplitude()
  • Loading branch information
AlexandreRouma authored Sep 7, 2023
2 parents 9c1361a + 97187b7 commit a55d1d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/dsp/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -125,4 +125,4 @@ namespace dsp {
float l;
float r;
};
}
}

0 comments on commit a55d1d9

Please sign in to comment.