Commit ac668c69 authored by Dan Williams's avatar Dan Williams
Browse files

isci: cleanup/optimize pool implementation



The circ_buf macros are ~6% faster, as measured by perf, because they take
advantage of power-of-two math assumptions i.e. no test and branch for
rollover. Their semantics are clearer than the hidden side effects in pool.h
(like sci_pool_get() which hides an assignment).

Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 9b917987
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment