math64: New DIV_S64_ROUND_CLOSEST helper
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Fri, 24 Jul 2020 12:21:47 +0000 (20:21 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 27 Jul 2020 22:47:18 +0000 (00:47 +0200)
commitaf60459a543483c5ad155a92daa8c3a6c00a0829
tree7c38ee31d9ee6f37e750033a6df3ca2094ff7187
parentab92ffd5f6ac3ebd4a7650ef906702ab86127b45
math64: New DIV_S64_ROUND_CLOSEST helper

Provide DIV_S64_ROUND_CLOSEST helper which uses div_s64 to perform
division rounded to the closest integer using signed 64bit
dividend and signed 32bit divisor.

Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
include/linux/math64.h