MCPcopy Create free account
hub / github.com/davisking/dlib / slow_count_bits

Function slow_count_bits

dlib/test/hash.cpp:205–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203// ----------------------------------------------------------------------------------------
204
205 uint64 slow_count_bits ( uint64 v)
206 {
207 uint64 count = 0;
208 for (int i = 0; i < 64; ++i)
209 {
210 if (v&1)
211 ++count;
212 v >>= 1;
213 }
214 return count;
215 }
216
217
218 uint32 slow_count_bits ( uint32 v)

Callers 1

test_hamming_stuffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected