Blame view
include/linux/rational.h
639 Bytes
b24413180 License cleanup: ... |
1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
8759ef32d lib: isolate rati... |
2 3 4 |
/* * rational fractions * |
6684b5729 lib: Change mail ... |
5 |
* Copyright (C) 2009 emlix GmbH, Oskar Schirmer <oskar@scara.com> |
8759ef32d lib: isolate rati... |
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
* * 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 */ |