MCPcopy Create free account
hub / github.com/cseagle/blc / bit_transitions

Function bit_transitions

address.cc:816–832  ·  view source on GitHub ↗

Treat \b val as a constant of size \b sz. Scanning across the bits of \b val return the number of transitions (from 0->1 or 1->0) If there are 2 or less transitions, this is an indication of a bit flag or a mask \param val is the given value \param sz is the size to treat the value as \return the number of transitions

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

scoreConstantFitMethod · 0.85
isPointerMethod · 0.85
setNZMaskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected