Re: [PATCH 1/2] util_macros.h: fix/rework find_closest() macros

From: Alexandru Ardelean
Date: Tue Nov 05 2024 - 02:15:42 EST


On Fri, Nov 1, 2024 at 10:05 PM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Fri, 1 Nov 2024 11:07:04 +0200 Alexandru Ardelean <aardelean@xxxxxxxxxxxx> wrote:
>
> > I can also do a V2.
>
> That would be best, thanks.

Still working on the V2.
I ended up down a rabbit hole of signed-vs-unsigned arrays and X
(value to search for).
Will try to resolve this as elegantly as possible also with a kunit test.