MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / BytePrecision

Function BytePrecision

src/cryptlib/misc.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36unsigned int BytePrecision(unsigned long value)
37{
38 unsigned int i;
39 for (i=sizeof(value); i; --i)
40 if (value >> (i-1)*8)
41 break;
42
43 return i;
44}
45
46unsigned int BitPrecision(unsigned long value)
47{

Callers 3

ByteCountMethod · 0.85
DERLengthEncodeFunction · 0.85
GetLongMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected