MCPcopy Create free account
hub / github.com/coreboot/coreboot / popcnt

Function popcnt

util/cbfstool/flashmap/fmap.c:134–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static int popcnt(unsigned int u)
135{
136 int count;
137
138 /* K&R method */
139 for (count = 0; u; count++)
140 u &= (u - 1);
141
142 return count;
143}
144
145long fmap_find(const uint8_t *image, unsigned int image_len)
146{

Callers 1

fmap_findFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected