mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
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 (cherry picked from commit b0056b31e90029553894d17c441cbb2c06d31412) |
||
|---|---|---|
| .. | ||
| 57710_init_values.c | ||
| 57710_int_offsets.h | ||
| 57711_init_values.c | ||
| 57711_int_offsets.h | ||
| 57712_init_values.c | ||
| 57712_int_offsets.h | ||
| bxe.c | ||
| bxe.h | ||
| bxe_dcb.h | ||
| bxe_debug.c | ||
| bxe_dump.h | ||
| bxe_elink.c | ||
| bxe_elink.h | ||
| bxe_ioctl.h | ||
| bxe_stats.c | ||
| bxe_stats.h | ||
| ecore_fw_defs.h | ||
| ecore_hsi.h | ||
| ecore_init.h | ||
| ecore_init_ops.h | ||
| ecore_mfw_req.h | ||
| ecore_reg.h | ||
| ecore_sp.c | ||
| ecore_sp.h | ||