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

Function reverse

src/cryptlib/ztrees.cpp:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95/* the arguments must not have side effects */
96
97static unsigned reverse(unsigned int code, int len)
98/* Reverse the first len bits of a code. */
99{
100 register unsigned res = 0;
101 do res = (res << 1) | (code & 1), code>>=1; while (--len);
102 return res;
103}
104
105/* Allocate the match buffer and initialize the various tables. */
106CodeTree::CodeTree(int deflate_level, BufferedTransformation &outQ)

Callers 2

CodeTreeMethod · 0.85
gen_codesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected