diff options
| author | Pali Rohár <pali@kernel.org> | 2022-02-19 16:28:13 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-25 10:27:57 +0100 |
| commit | 2c861b73a23b1237bdd054b6023bb27f6747c2b9 (patch) | |
| tree | e9844b25100551469ea95c36d6fd59130506fcac /tools/perf/scripts/python | |
| parent | sc16is7xx: Separate GPIOs from modem control lines (diff) | |
| download | linux-2c861b73a23b1237bdd054b6023bb27f6747c2b9.tar.gz linux-2c861b73a23b1237bdd054b6023bb27f6747c2b9.zip | |
math64: New DIV_U64_ROUND_CLOSEST helper
Provide DIV_U64_ROUND_CLOSEST helper which uses div_u64 to perform
division rounded to the closest integer using unsigned 64bit
dividend and unsigned 32bit divisor.
Reviewed-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
Link: https://lore.kernel.org/r/20220219152818.4319-2-kabel@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
