-
Thomas Haller authored
Taken from systemd's in4_addr_netmask_to_prefixlen(). Yes, this adds the requirement that "int" is 32 bits. But systemd already has the same requirement in u32ctz(), hence we anyway cannot build on other architectures. If that is ever necessary, it's easy to adjust.
e442e388