summaryrefslogtreecommitdiffstats
path: root/autoload.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-05-09 21:22:56 -0700
committerKaz Kylheku <kaz@kylheku.com>2025-05-09 21:22:56 -0700
commite7d52c9b22f569c4c02d59c4c958f7750af2e264 (patch)
tree2d8206de31547c6b23c9805c882b501271de2b36 /autoload.c
parent14fddd89cbb63cd6ee99810b6730992a3c8be475 (diff)
downloadtxr-e7d52c9b22f569c4c02d59c4c958f7750af2e264.tar.gz
txr-e7d52c9b22f569c4c02d59c4c958f7750af2e264.tar.bz2
txr-e7d52c9b22f569c4c02d59c4c958f7750af2e264.zip
buf-count-ones: optimize for common cases.
* buf.c (buf_count_ones): Short-circuit loop iteration if word or byte is zero. If the word/byte is a power of two (1 bit set) or if it has all bits set, then skip the bit trick.
Diffstat (limited to 'autoload.c')
0 files changed, 0 insertions, 0 deletions