In a GENERIC-NODEBUG kernel, each instance of using ilog2 in place of fls()-1 saves about 4 amd64 instructions, including a conditional, and 16 or so bytes.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Differential D45330
subr_pctrie: use ilog2(x) instead of fls(x)-1 dougm on May 24 2024, 5:01 AM. Authored by Tags None Referenced Files
Details In a GENERIC-NODEBUG kernel, each instance of using ilog2 in place of fls()-1 saves about 4 amd64 instructions, including a conditional, and 16 or so bytes.
Diff Detail
|