about summary refs log tree commit diff
path: root/src/afl-fuzz-one.c
diff options
context:
space:
mode:
authorKuan-Wei Chiu <visitorckw@gmail.com>2024-06-24 05:51:55 +0800
committerKuan-Wei Chiu <visitorckw@gmail.com>2024-06-24 06:52:07 +0800
commitac5815d994fe8ff151e0f13088891acc506662ed (patch)
tree2534f0f9524dbe69254441d693e41816bf850aab /src/afl-fuzz-one.c
parent540d741df0541e0e41e600672245ca1e867c5ef4 (diff)
downloadafl++-ac5815d994fe8ff151e0f13088891acc506662ed.tar.gz
Optimize bit counting using __builtin_popcount
Use the __builtin_popcount intrinsic to optimize the bit counting
function if the compiler supports it. This change replaces the manual
bit counting algorithm with the more efficient built-in function, which
leverages hardware support on compatible processors.

This modification ensures that the code remains backward-compatible by
falling back to the original implementation when __builtin_popcount is
not available.
Diffstat (limited to 'src/afl-fuzz-one.c')
0 files changed, 0 insertions, 0 deletions