Return the largest power-of-2 that divides n (isolate lowest set bit).
Source code in vllm/utils/math_utils.py
| def largest_power_of_2_divisor(n: int) -> int:
"""Return the largest power-of-2 that divides *n* (isolate lowest set bit)."""
return n & (-n)
|