![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 /* 0003 * rational fractions 0004 * 0005 * Copyright (C) 2009 emlix GmbH, Oskar Schirmer <oskar@scara.com> 0006 * 0007 * helper functions when coping with rational numbers, 0008 * e.g. when calculating optimum numerator/denominator pairs for 0009 * pll configuration taking into account restricted register size 0010 */ 0011 0012 #ifndef _LINUX_RATIONAL_H 0013 #define _LINUX_RATIONAL_H 0014 0015 void rational_best_approximation( 0016 unsigned long given_numerator, unsigned long given_denominator, 0017 unsigned long max_numerator, unsigned long max_denominator, 0018 unsigned long *best_numerator, unsigned long *best_denominator); 0019 0020 #endif /* _LINUX_RATIONAL_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |