Commit 2e3705c
committed
qrcode: Optimise masking and data layout hot loops
Build the masklayers row by row with a six-entry view of the extruded
function pattern layer and the column kept on the stack, walking
positions sequentially. Merge each bitstream bit into the layers
without an intermediate definition or a repeated address lookup. Keep
the module index on the stack in the per-mask extraction loop and
hoist the negated mask bit position out of the loop.1 parent cb014c3 commit 2e3705c
1 file changed
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1606 | 1606 | | |
1607 | 1607 | | |
1608 | 1608 | | |
1609 | | - | |
| 1609 | + | |
| 1610 | + | |
1610 | 1611 | | |
1611 | 1612 | | |
1612 | 1613 | | |
1613 | 1614 | | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
1619 | 1622 | | |
1620 | 1623 | | |
1621 | | - | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1622 | 1627 | | |
1623 | 1628 | | |
1624 | 1629 | | |
| |||
1634 | 1639 | | |
1635 | 1640 | | |
1636 | 1641 | | |
1637 | | - | |
1638 | | - | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
1639 | 1645 | | |
1640 | 1646 | | |
1641 | 1647 | | |
| |||
1783 | 1789 | | |
1784 | 1790 | | |
1785 | 1791 | | |
1786 | | - | |
| 1792 | + | |
1787 | 1793 | | |
1788 | 1794 | | |
1789 | | - | |
1790 | | - | |
| 1795 | + | |
1791 | 1796 | | |
1792 | 1797 | | |
1793 | 1798 | | |
| |||
0 commit comments