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

Function Crop

src/cryptlib/misc.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65unsigned long Crop(unsigned long value, int size)
66{
67 if (size < 8*(int)sizeof(value))
68 return (value & ((1L << size) - 1));
69 else
70 return value;
71}
72

Callers 3

ConvertToLongMethod · 0.85
RandomizeMethod · 0.85
GetLongMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected