MCPcopy Create free account
hub / github.com/questdb/questdb / getNetmaskLength

Method getNetmaskLength

core/src/main/java/io/questdb/std/Numbers.java:918–920  ·  view source on GitHub ↗
(int netmask)

Source from the content-addressed store, hash-verified

916 }
917
918 public static int getNetmaskLength(int netmask) {
919 return 32 - Integer.numberOfTrailingZeros(netmask);
920 }
921
922 /**
923 * Returns the precision of a non-null long.

Callers 2

getBroadcastAddressMethod · 0.95
getIPv4SubnetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected