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

Function bsearch

kernel/lib/bsearch.c:28–50  ·  view source on GitHub ↗

* Perform a binary search. * * The code below is a bit sneaky. After a comparison fails, we * divide the work in half by moving either left or right. If lim * is odd, moving left simply involves halving lim: e.g., when lim * is 5 we look at item 2, so we change lim to 2 so that we will * look at items 0 & 1. If lim is even, the same applies. If lim * is odd, moving right again involes ha

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ksym_lookupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected