[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZMyOUAgIRqkz2ett@smile.fi.intel.com>
Date: Fri, 4 Aug 2023 08:36:16 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: Alexey Dobriyan <adobriyan@...il.com>,
linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH v1 1/1] math.h: Document abs_diff()
On Thu, Aug 03, 2023 at 10:23:48PM -0700, Randy Dunlap wrote:
> On 8/3/23 22:09, Andy Shevchenko wrote:
...
> > +/**
> > + * abs_diff - return absolute value of the difference between the arguments
> > + * @a: the first argument
> > + * @b: the second argument
> > + *
> > + * @a and @b has to be of the same type. With this restriction we compare
> Preferably s/has/have/.
Thank you! I fixed it locally, I hope Andrew can update this, but if needed
I will send a v2 with the proposed correction.
> > + * signed to signed and unsigned to unsigned. The result is the subtraction
> > + * the smaller of the two from the bigger, hence result is always a positive
> > + * value.
> > + *
> > + * Return: an absolute value of the difference between the @a and @b.
> > + */
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists