MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / is_power_of_two

Function is_power_of_two

libcppcryptfs/util/util.h:101–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100template <typename T>
101bool is_power_of_two(const T& num)
102{
103 return ((num != 1) && (num & (num - 1))) == 0;
104}
105
106BOOL GetPathHash(LPCWSTR path, wstring& hashstr);
107

Callers 1

GetSettingsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected