Messages in this thread | | | From | Ben Pfaff <> | Subject | Re: [PATCH] Add kabs() | Date | Wed, 25 Apr 2012 10:20:48 -0700 |
| |
Alexey Dobriyan <adobriyan@gmail.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.
| |