Re: [PATCH 01/26] lib: rational: copy the rational fraction lib routines from Linux

2020-11-10 Thread Tero Kristo
On 10/11/2020 14:55, Tom Rini wrote: On Tue, Nov 10, 2020 at 11:05:37AM +0200, Tero Kristo wrote: 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. Signed-off-

Re: [PATCH 01/26] lib: rational: copy the rational fraction lib routines from Linux

2020-11-10 Thread Tom Rini
On Tue, Nov 10, 2020 at 11:05:37AM +0200, Tero Kristo wrote: > 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. > > Signed-off-by: Tero Kristo Please say w

[PATCH 01/26] lib: rational: copy the rational fraction lib routines from Linux

2020-11-10 Thread Tero Kristo
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. Signed-off-by: Tero Kristo --- include/linux/rational.h | 20 lib/Kconfig | 7 +++ lib/M