Re: [PATCH] Add kabs()

From: Ben Pfaff
Date: Wed Apr 25 2012 - 13:42:16 EST


Alexey Dobriyan <adobriyan@xxxxxxxxx> writes:

> kabs() has the following nice properties which should have been there
> from day 1.
>
> kabs() return unsigned value.
> kabs() works for all integer types and return correct result.
> sizeof(kabs(x)) == sizeof(x)

It would be nice to document these properties in a source code
comment, as well as in the commit message.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/