Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tripwire/tripwire-open-source
/ Parity
Function
Parity
src/cryptlib/misc.cpp:29–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
27
}
28
29
unsigned int Parity(unsigned long value)
30
{
31
for (unsigned int i=8*sizeof(value)/2; i>0; i/=2)
32
value ^= value >> i;
33
return (unsigned int)value&1;
34
}
35
36
unsigned int BytePrecision(unsigned long value)
37
{
Callers
1
GetBit
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected