diff options
author | Pali Rohár <pali@kernel.org> | 2022-02-19 18:28:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-25 12:27:57 +0300 |
commit | 2c861b73a23b1237bdd054b6023bb27f6747c2b9 (patch) | |
tree | e9844b25100551469ea95c36d6fd59130506fcac /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 679875d1d8802669590ef4d69b0e7d13207ebd61 (diff) | |
download | linux-2c861b73a23b1237bdd054b6023bb27f6747c2b9.tar.xz |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions