[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090807074251.GB3004@localdomain.by>
Date: Fri, 7 Aug 2009 10:42:51 +0300
From: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
To: Andi Kleen <andi@...stfloor.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Make shr to divide by power of 2
On (08/07/09 08:50), Andi Kleen wrote:
> Sergey Senozhatsky <sergey.senozhatsky@...il.com> writes:
> >
> > Of course, compiler supposed to do something like
> > add $0x7,%eax
> > shr $0x3,%eax
> > instead of div. Should we rely on this?
>
> Yes. We should rely on this.
>
grep -cR '>> 3' bitblit.c
5
and only 1 '/8'.
Sergey
Download attachment "signature.asc" of type "application/pgp-signature" (316 bytes)
Powered by blists - more mailing lists