mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
73111cacfb
Added kh_next_probe_##name() helper function to encapsulate the repeated linear probing step calculation pattern. Replaced 2 instances of manual probing calculation: - k = (k+(++step)) & khash_mask(h) -> k = kh_next_probe_##name(k, &step, h) This eliminates the duplicated bit manipulation pattern and makes the probing logic more readable and less error-prone. Co-authored-by: Claude <noreply@anthropic.com>