MCPcopy
hub / github.com/questdb/questdb / isPow2

Method isPow2

core/src/main/java/io/questdb/std/Numbers.java:1054–1056  ·  view source on GitHub ↗
(int value)

Source from the content-addressed store, hash-verified

1052 }
1053
1054 public static boolean isPow2(int value) {
1055 return value > 0 && (value & (value - 1)) == 0;
1056 }
1057
1058 public static boolean isPow2(long value) {
1059 return value > 0 && (value & (value - 1)) == 0;

Callers 7

getQueueCapacityMethod · 0.95
RingQueueMethod · 0.95
IOURingImplMethod · 0.95

Calls

no outgoing calls

Tested by 4