Skip to content

Commit

Permalink
switched [loop unroll dynamic assignation] order
Browse files Browse the repository at this point in the history
  • Loading branch information
ExtReMLapin authored Jul 28, 2021
1 parent 4ff3cd0 commit ffeaa6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast_brainfuck.lua
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ local function thirdPassUnRolledAssignation(instList)
assignationCount = assignationCount + 1

-- [UNROLLED_ASSIGNATION] = "data[i+%i] = data[i+%i] + (-(data[i]/%i))*%i ",
table.insert(instList, loopStart + 1, {UNROLLED_ASSIGNATION, jmp, jmp, assignationTable[0], inc})
table.insert(instList, loopStart + assignationCount - 1, {UNROLLED_ASSIGNATION, jmp, jmp, assignationTable[0], inc})
end
end

Expand Down

0 comments on commit ffeaa6e

Please sign in to comment.