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

Function genMask

arch/powerpc/il.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// #define MYLOG BinaryNinja::LogWarn
26
27static uint32_t genMask(uint32_t mb, uint32_t me)
28{
29 uint32_t maskBegin = ~0u >> mb;
30 uint32_t maskEnd = ~0u << (31 - me);
31
32 return (mb <= me) ? (maskBegin & maskEnd) : (maskBegin | maskEnd);
33}
34
35#define PPC_IL_OPTIONS_DEFAULT 0
36#define PPC_IL_EXTRA_DEFAULT 0

Callers 2

il.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected