Re: [patch v2] epoll use a single inode ...

H. Peter Anvin
2007-03-06T17:14:43Z

Linus Torvalds wrote:
>
>> However, this could be optimized. I think right now sprintf() uses a generic
>> divide-by-base, but a divide by 8 and 16 can of course be handled with a
>> shift, and divide by 10 can be replaced with a multiplication by
>> 0x1999999999999999ULL on most architectures.
>
> Nope. You need both the result of the division *and* the remainder, and
> you can't do that with a single multiply.

Oh, right. *D'oh*.

-hpa