diff options
author | Vinod Polimera <quic_vpolimer@quicinc.com> | 2022-07-20 17:25:44 +0530 |
---|---|---|
committer | Shelley Chen <shchen@google.com> | 2022-08-03 03:26:13 +0000 |
commit | 75283119296e5d6ce3a1c6d857a92a43ff0afec0 (patch) | |
tree | 37fa1a7d7d853859e3c2e0a412a580912d90c33f /src/commonlib/Makefile.inc | |
parent | 65377eba7fa0c7d46e5e88a92f667ae40ea08ef2 (diff) | |
download | coreboot-75283119296e5d6ce3a1c6d857a92a43ff0afec0.tar.gz coreboot-75283119296e5d6ce3a1c6d857a92a43ff0afec0.tar.bz2 coreboot-75283119296e5d6ce3a1c6d857a92a43ff0afec0.zip |
commonlib: Add support for rational number approximation
This patch adds a function to calculate best rational approximation
for a given fraction and unit tests for it.
Change-Id: I2272d9bb31cde54e65721f95662b80754eee50c2
Signed-off-by: Vinod Polimera <quic_vpolimer@quicinc.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66010
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/commonlib/Makefile.inc')
-rw-r--r-- | src/commonlib/Makefile.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commonlib/Makefile.inc b/src/commonlib/Makefile.inc index 2477e07268d6..e90ed4f28397 100644 --- a/src/commonlib/Makefile.inc +++ b/src/commonlib/Makefile.inc @@ -21,6 +21,9 @@ ramstage-y += region.c smm-y += region.c postcar-y += region.c +romstage-y += rational.c +ramstage-y += rational.c + ramstage-$(CONFIG_PLATFORM_USES_FSP1_1) += fsp_relocate.c ifeq ($(CONFIG_FSP_M_XIP),) romstage-$(CONFIG_PLATFORM_USES_FSP2_0) += fsp_relocate.c |