We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64d55c9 commit c6026a3Copy full SHA for c6026a3
internal/engine/wazevo/frontend/lower.go
@@ -770,7 +770,7 @@ func (c *Compiler) lowerCurrentOpcode() {
770
dstAddr := builder.AllocateInstruction().AsIadd(addr, loopVar).Insert(builder).Return()
771
772
// chunk := ((i - 1) & 8191) + 1
773
- mask := builder.AllocateInstruction().AsIconst64(16383).Insert(builder).Return()
+ mask := builder.AllocateInstruction().AsIconst64(8191).Insert(builder).Return()
774
tmp1 := builder.AllocateInstruction().AsIsub(loopVar, one).Insert(builder).Return()
775
tmp2 := builder.AllocateInstruction().AsBand(tmp1, mask).Insert(builder).Return()
776
chunk := builder.AllocateInstruction().AsIadd(tmp2, one).Insert(builder).Return()
0 commit comments