diff options
| author | Maxime Coste <mawww@kakoune.org> | 2025-07-07 12:07:29 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2025-07-07 12:14:32 +1000 |
| commit | cb6cbb4e17b1080cc18a0195773ab763e7e11e64 (patch) | |
| tree | 2276f5354e3ef7442aa990bb6230df640323f345 /src/shell_manager.hh | |
| parent | 0f47c28fe2ba7d8d0b6d8d1a904b4b261f8552dc (diff) | |
Avoid branches in ThreadedRegexVM::DualThreadStack iteration
decrement and post_increment do not get cmov optimised as expected,
we can avoid this altogether by taking advantage of the fact that
capacity is always a power-of-two and we can hence use a bitwise and
we can use a bitwise and to loop around capacity.
Diffstat (limited to 'src/shell_manager.hh')
0 files changed, 0 insertions, 0 deletions
