coreboot/src
Julius Werner b506020076 commonlib: Change GCD function to always use 64 bits
It seems that we have some applications where we need to calculate a GCD
in 64 bits. Now, we could instantiate the algorithm multiple times for
different bit width combinations to be able to use the most efficient
one for each problem... but considering that the function usually only
gets called once per callsite per stage, and that software emulation of
64-bit division on 32-bit systems doesn't take *that* long either, we
would probably usually be paying more time loading the second instance
of the function than we save with faster divisions. So let's just make
things easy and always do it in 64-bit and then nobody has to spend time
thinking on which version to call.

Change-Id: I028361444c4048a0d76ba4f80c7334a9d9983c87
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80319
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
2024-02-08 13:13:58 +00:00
..
acpi device/device.h: Rename busses for clarity 2024-01-31 10:36:39 +00:00
arch commonlib: Change GCD function to always use 64 bits 2024-02-08 13:13:58 +00:00
commonlib commonlib: Change GCD function to always use 64 bits 2024-02-08 13:13:58 +00:00
console lib,console,sbom: Rename Makefiles from .inc to .mk 2024-01-24 10:12:57 +00:00
cpu cpu/x86/64bit: Turn jumping to long mode into a macro 2024-02-08 13:11:59 +00:00
device device/device.h: Fix spelling mistake 2024-01-31 10:36:49 +00:00
drivers commonlib: Change GCD function to always use 64 bits 2024-02-08 13:13:58 +00:00
ec device/device.h: Rename busses for clarity 2024-01-31 10:36:39 +00:00
include drivers/wifi: Add MTCL function to ACPI SSDT 2024-02-06 03:37:19 +00:00
lib lib: Move IP checksum to commonlib 2024-02-02 22:48:27 +00:00
mainboard mb/google/brox: Handle GPI_INT pin lower to GPI_WAKE 2024-02-08 06:02:54 +00:00
northbridge commonlib: Change GCD function to always use 64 bits 2024-02-08 13:13:58 +00:00
sbom src, util: Clean up makefile.inc in text, help & comments 2024-01-26 20:15:18 +00:00
security drivers/pc80/tpm: probe for TPM family of a device 2024-02-07 12:20:25 +00:00
soc commonlib: Change GCD function to always use 64 bits 2024-02-08 13:13:58 +00:00
southbridge sb/intel/i82371eb/isa: make IOAPIC ID const 2024-02-06 16:28:49 +00:00
superio device/device.h: Rename busses for clarity 2024-01-31 10:36:39 +00:00
vendorcode vc/amd/opensil: add openSIL stub implementation 2024-02-02 20:36:27 +00:00
Kconfig src, util: Clean up makefile.inc in text, help & comments 2024-01-26 20:15:18 +00:00