opnsense-src/sys/arm64
Doug Moore feeeb1c7a1 libkern: add ilog2 macro
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)
2025-02-18 10:44:00 +01:00
..
acpica pci_cfgreg: Add shims to preserve ABI of pci_cfgreg(read|write) 2024-01-18 15:19:11 -08:00
arm64 arm64: Stop trashing x28 in savectx 2024-10-21 15:03:27 +00:00
broadcom if_genet: don't load DMA mapping when tx_queue is full 2024-07-04 10:31:54 -03:00
cavium cavium/thunder: Use device_set_desc() 2024-06-27 11:27:41 -04:00
conf Add an Armv8 rndr random number provider 2024-10-21 15:03:26 +00:00
coresight sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
freescale/imx sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
include arm64: Stop trashing x28 in savectx 2024-10-21 15:03:27 +00:00
intel sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
iommu libkern: add ilog2 macro 2025-02-18 10:44:00 +01:00
linux linux64: Fix the build on arm64 with bti checking 2024-09-02 08:48:10 +00:00
nvidia/tegra210 sys: Use the new arm_smccc_invoke macros 2024-10-21 15:03:27 +00:00
qoriq arm64: Remove a double word in a source code comment 2024-04-23 07:23:53 +02:00
qualcomm sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
rockchip arm64: rockchip: Remove a stray semicolon 2024-10-31 12:40:17 +08:00