summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2025-07-07 12:07:29 +1000
committerMaxime Coste <mawww@kakoune.org>2025-07-07 12:14:32 +1000
commitcb6cbb4e17b1080cc18a0195773ab763e7e11e64 (patch)
tree2276f5354e3ef7442aa990bb6230df640323f345 /src/command_manager.hh
parent0f47c28fe2ba7d8d0b6d8d1a904b4b261f8552dc (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/command_manager.hh')
0 files changed, 0 insertions, 0 deletions