MCPcopy Create free account
hub / github.com/f9micro/f9-kernel / clz32

Function clz32

kernel/sched.c:52–57  ·  view source on GitHub ↗

* Count leading zeros using Cortex-M CLZ instruction. * Returns 32 if input is 0. * * Note: __builtin_clz has undefined behavior for 0, but ARM CLZ * instruction correctly returns 32. Use inline asm for correctness. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

schedule_selectFunction · 0.85
sched_preemption_changeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected