u-boot/lib
Tero Kristo 0ce3dcbf61 lib: rational: copy the rational fraction lib routines from Linux
Copy the best rational approximation calculation routines from Linux.
Typical usecase for these routines is to calculate the M/N divider
values for PLLs to reach a specific clock rate.

This is based on linux kernel commit:
"lib/math/rational.c: fix possible incorrect result from rational
fractions helper"
(sha1: 323dd2c3ed0641f49e89b4e420f9eef5d3d5a881)

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2021-03-23 17:17:58 -05:00
..
acpi acpi: Correct reset handling in acpi_device_add_power_res() 2020-11-06 09:51:30 +08:00
aes fit: cipher: aes: allow to store the IV in the FIT image 2020-10-12 21:30:37 -04:00
at91
bzip2
crypto
dhry
efi
efi_driver
efi_loader efi_loader: use after free in efi_exit() 2020-12-29 02:09:04 +01:00
efi_selftest efi_selftest: provide unit test for the EFI_TCG2_PROTOCOL 2020-11-14 05:05:46 +01:00
libavb
libfdt
lzma
lzo
optee optee: add property no-map to secure reserved memory 2020-09-22 12:54:13 -06:00
rsa xilinx: zynq: Change types from u32 to uint32_t 2020-10-27 08:13:33 +01:00
tizen
zlib
zstd
.gitignore
Kconfig lib: rational: copy the rational fraction lib routines from Linux 2021-03-23 17:17:58 -05:00
Makefile lib: rational: copy the rational fraction lib routines from Linux 2021-03-23 17:17:58 -05:00
addr_map.c
aes.c
asm-offsets.c
asn1_decoder.c
bch.c
binman.c binman: Remove additional backslash 2020-11-30 13:14:43 -07:00
bitrev.c
charset.c charset: make u16_strnlen accessible at runtime 2020-11-29 05:18:37 +01:00
circbuf.c
crc7.c
crc8.c
crc16.c
crc32.c
crc32c.c
ctype.c
date.c
display_options.c lib: print_freq() should output kHz not KHz 2020-10-22 09:54:54 -04:00
div64.c
elf.c
errno.c
errno_str.c
fdtdec.c fdt: Use phandle to distinguish DT nodes with same name 2021-03-16 13:04:01 -05:00
fdtdec_common.c
fdtdec_test.c
getopt.c lib: Add getopt 2020-10-30 10:56:11 -04:00
gunzip.c
gzip.c
hang.c
hashtable.c lib/hashtable: remove superfluous check 2020-10-12 21:30:37 -04:00
hexdump.c
image-sparse.c
ldiv.c
linux_compat.c
linux_string.c
list_sort.c
lmb.c CONFIG_NR_DRAM_BANKS: Remove unreferenced code as its always defined 2020-08-26 09:19:16 +02:00
lz4.c
lz4_wrapper.c
md5.c
membuff.c
net_utils.c
of_live.c
oid_registry.c
panic.c
physmem.c
qsort.c
rand.c
rational.c lib: rational: copy the rational fraction lib routines from Linux 2021-03-23 17:17:58 -05:00
rbtree.c
rc4.c
sha1.c
sha256.c
sha512.c
slre.c
smbios-parser.c smbios: add parsing API 2020-11-05 14:58:45 +08:00
smbios.c smbios: Drop the unused Kconfig options 2020-11-06 10:26:32 +08:00
sscanf.c
string.c
strto.c
tables_csum.c
time.c time: Fix get_ticks being non-monotonic 2020-10-14 11:16:34 -04:00
tiny-printf.c
tpm-common.c
tpm-utils.h
tpm-v1.c
tpm-v2.c tpm: Change response length of tpm2_get_capability() 2020-11-09 17:28:18 +01:00
trace.c trace: conserve gd register on RISC-V 2020-10-27 21:13:15 +01:00
uuid.c
vsprintf.c
xxhash.c