[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87k413pw27.fsf@blp.benpfaff.org>
Date: Wed, 25 Apr 2012 10:20:48 -0700
From: Ben Pfaff <blp@...stanford.edu>
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Add kabs()
Alexey Dobriyan <adobriyan@...il.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists