MCPcopy Create free account
hub / github.com/Kyle-Pu/Mathematics / isPower2

Method isPower2

Miscellaneous/PowerOf2.java:17–28  ·  view source on GitHub ↗

This method checks if a number is power of 2. @param num is the number to be checked. @return the exponent if the number is power of 2 and -1 if not.

(int num)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected