Re: [PATCH] x86/math64: Provide a sane mul_u64_u32_div() implementation for x86_64

2019-08-29 Thread Peter Zijlstra
On Wed, Aug 28, 2019 at 06:11:23PM +0200, Peter Zijlstra wrote: > On Wed, Aug 28, 2019 at 05:19:21PM +0200, Peter Zijlstra wrote: > > On Mon, Aug 26, 2019 at 07:47:35AM -0700, kan.li...@linux.intel.com wrote: > > > > + return mul_u64_u32_div(slots, val, 0xff); > > > > But also; x86_64 seems to

[PATCH] x86/math64: Provide a sane mul_u64_u32_div() implementation for x86_64

2019-08-28 Thread Peter Zijlstra
On Wed, Aug 28, 2019 at 05:19:21PM +0200, Peter Zijlstra wrote: > On Mon, Aug 26, 2019 at 07:47:35AM -0700, kan.li...@linux.intel.com wrote: > > + return mul_u64_u32_div(slots, val, 0xff); > > But also; x86_64 seems to lack a sane implementation of that function, > and it currently compiles