[lkml]   [2019]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v5 3/6] math64: New DIV64_U64_ROUND_CLOSEST helper
On Mon, Feb 11, 2019 at 4:22 PM Sergei Shtylyov
<> wrote:
> On 02/11/2019 04:58 PM, Simon Horman wrote:
> > Provide DIV64_U64_ROUND_CLOSEST helper which performs division rounded to
> > the closes integer using an unsigned 64bit dividend and divisor.
> Closest?
> > This will be used in a follow-up patch to allow calculation of clock
> > divisors with high frequency parents in the R-Car Gen3 CPG MSSR driver
> > where ovefolow occurs if either the dividend or divisor is 32bit.


> > Signed-off-by: Simon Horman <>

With the above fixed:
Reviewed-by: Geert Uytterhoeven <>

Note that I can fix the above while applying to my clk-renesas branch.

Andrew: an Acked-by would be appreciated.



Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

 \ /
  Last update: 2019-02-11 16:45    [W:0.033 / U:22.424 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site