mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
b0056b31e9
The kernel source contains several definitions of an ilog2 function; some are slower than necessary, and one of them is incorrect. Elimininate them all and define an ilog2 macro in libkern to replace them, in a way that is fast, correct for all argument types, and, in a GENERIC kernel, includes a check for an invalid zero parameter. Folks at Microsoft have verified that having a correct ilog2 definition for their MANA driver doesn't break it. Reviewed by: alc, markj, mhorne (older version), jhibbits (older version) Differential Revision: https://reviews.freebsd.org/D45170 Differential Revision: https://reviews.freebsd.org/D45235 |
||
---|---|---|
.. | ||
iommu.c | ||
iommu.h | ||
iommu_if.m | ||
iommu_pmap.c | ||
iommu_pmap.h | ||
iommu_pte.h | ||
smmu.c | ||
smmu_acpi.c | ||
smmu_fdt.c | ||
smmu_quirks.c | ||
smmureg.h | ||
smmuvar.h |