mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
6684b5729d
That old mail address doesnt exist any more. This changes all occurences to my new address. Signed-off-by: Oskar Schirmer <oskar@scara.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
19 lines
600 B
C
19 lines
600 B
C
/*
|
|
* rational fractions
|
|
*
|
|
* Copyright (C) 2009 emlix GmbH, Oskar Schirmer <oskar@scara.com>
|
|
*
|
|
* helper functions when coping with rational numbers,
|
|
* e.g. when calculating optimum numerator/denominator pairs for
|
|
* pll configuration taking into account restricted register size
|
|
*/
|
|
|
|
#ifndef _LINUX_RATIONAL_H
|
|
#define _LINUX_RATIONAL_H
|
|
|
|
void rational_best_approximation(
|
|
unsigned long given_numerator, unsigned long given_denominator,
|
|
unsigned long max_numerator, unsigned long max_denominator,
|
|
unsigned long *best_numerator, unsigned long *best_denominator);
|
|
|
|
#endif /* _LINUX_RATIONAL_H */
|