Skip to content
Snippets Groups Projects
Commit 0014260b authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Fix nested loop logic in frfme()

parent ecebe07a
No related branches found
No related tags found
No related merge requests found
......@@ -96,8 +96,7 @@ void ffrf(
int ltpo = lpo + l40;
int imm = l40 * lpo;
for (int ilmp40 = 1; ilmp40 <= 3; ilmp40++) {
// NOTE: if trapping execution diverges, replace "break" with "continue"
if ((l40 == 1 && ilmp40 == 1) || (l40 == cil->le && ilmp40 == 3)) break; // ilmp40 loop
if ((l40 == 1 && ilmp40 == 1) || (l40 == cil->le && ilmp40 == 3)) continue; // ilmp40 loop
int lmpml = ilmp40 - 2;
int lmp = l40 + lmpml;
uimmp = uim * (-1.0 * lmpml);
......@@ -150,8 +149,7 @@ void ffrf(
int ltpo = lpo + l80;
int imm = l80 * lpo;
for (int ilmp80 = 1; ilmp80 <= 3; ilmp80++) {
// NOTE: if trapping execution diverges, replace "break" with "continue"
if ((l80 == 1 && ilmp80 == 1) || (l80 == cil->le && ilmp80 == 3)) break; // ilmp80 loop
if ((l80 == 1 && ilmp80 == 1) || (l80 == cil->le && ilmp80 == 3)) continue; // ilmp80 loop
int lmpml = ilmp80 - 2;
int lmp = l80 + lmpml;
uimmp = uim * (-1.0 * lmpml);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment