lib: isolate rational fractions helper function
authorOskar Schirmer <os@emlix.com>
Thu, 11 Jun 2009 13:51:15 +0000 (14:51 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Jun 2009 15:51:08 +0000 (08:51 -0700)
commit8759ef32d992fc6c0bcbe40fca7aa302190918a5
tree316df64d3456597bf7f8ef7508654c82faf6a5fe
parent9f322ad064f9210e7d472dfe77e702274d5c9dba
lib: isolate rational fractions helper function

Provide a helper function to determine optimum numerator
denominator value pairs taking into account restricted
register size. Useful especially with PLL and other clock
configurations.

Signed-off-by: Oskar Schirmer <os@emlix.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/rational.h [new file with mode: 0644]
lib/Kconfig
lib/Makefile
lib/rational.c [new file with mode: 0644]