[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120914135430.GC8943@umich.edu>
Date: Fri, 14 Sep 2012 09:54:30 -0400
From: Jim Rees <rees@...ch.edu>
To: Jan Engelhardt <jengelh@...i.de>
Cc: Bernd Petrovitsch <bernd@...rovitsch.priv.at>,
"J. Bruce Fields" <bfields@...ldses.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] strings: helper for maximum decimal encoding of an
unsigned integer
Jan Engelhardt wrote:
Your way does not function as originally desired.
* base10len(i) no longer expands to a compile-time constant
* you will definitely have a variable base10len_vals in your
objects, so you waste a read operation whenever it is used.
No, I meant my original way:
#define base10len(i) (sizeof(i) * 8 * 3 / 10 + 1)
--
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