freebsd-src/sys/amd64/vmm
Doug Moore 9ff1462976 x86: simplify ceil(log2(x)) function
A function called mask_width in one place and log2 in the other
calculates its value in a more complex way than necessary. A simpler
implementation offered here saves a few bytes in the functions that
call it.

Reviewed by:	alc, avg
Differential Revision:	https://reviews.freebsd.org/D45483
2024-06-04 13:00:25 -05:00
..
amd vmm(4): Fix a typo in a kernel message 2024-04-21 09:44:18 +02:00
intel vmm: Expose more registers to VM_GET_REGISTER 2024-02-07 08:52:46 -05:00
io vhpet: Fix typo 2024-04-11 11:28:32 -06:00
vmm.c vm_iommu_map()/unmap(): stop transiently wiring already wired pages 2023-12-22 19:34:27 +02:00
vmm_dev.c vmm: Start reconciling amd64 and arm64 copies of vmm_dev.c 2024-05-08 12:11:03 -04:00
vmm_host.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vmm_host.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vmm_instruction_emul.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vmm_ioport.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vmm_ioport.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vmm_ktr.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vmm_lapic.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vmm_lapic.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vmm_mem.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vmm_mem.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vmm_snapshot.c vmm: Fix compiling error with BHYVE_SNAPSHOT 2024-02-06 10:38:34 -05:00
vmm_stat.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vmm_stat.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vmm_util.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vmm_util.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
x86.c x86: simplify ceil(log2(x)) function 2024-06-04 13:00:25 -05:00
x86.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00