Re: [PATCH] strings: helper for maximum decimal encoding of anunsigned integer

From: Jim Rees
Date: Tue Aug 21 2012 - 17:36:34 EST


J. Bruce Fields wrote:

From: "J. Bruce Fields" <bfields@xxxxxxxxxx>

I've seen a couple examples recently where we've gotten this wrong.
Maybe something like this would help? Is there some better way?

(Approximation due to Jim Rees).

Please add Suggested-by: Jim Rees <rees@xxxxxxxxx>. I'm thinking of
patenting the algorithm.
--
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/