MCPcopy Create free account
hub / github.com/dtrace4linux/linux / clp2

Function clp2

libdtrace/dt_cg.c:119–131  ·  view source on GitHub ↗

* When loading bit-fields, we want to convert a byte count in the range * 1-8 to the closest power of 2 (e.g. 3->4, 5->8, etc). The clp2() function * is a clever implementation from "Hacker's Delight" by Henry Warren, Jr. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

dt_cg_loadFunction · 0.70
dt_cg_field_getFunction · 0.70
dt_cg_field_setFunction · 0.70
dt_cg_storeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected