MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / BitCount

Function BitCount

arch/arm64/disassembler/pcode.c:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "pcode.h"
7
8int BitCount(uint32_t x)
9{
10 int result = 0;
11 while (x)
12 {
13 if (x & 1)
14 result += 1;
15 x >>= 1;
16 }
17 return result;
18}
19
20bool BFXPreferred(uint32_t sf, uint32_t uns, uint32_t imms, uint32_t immr)
21{

Callers 4

MOV_dup_z_ziFunction · 0.85
SSHLL_advsimdFunction · 0.85
USHLL_advsimdFunction · 0.85
dup_z_ziFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected