[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87d478i0d7.fsf@basil.nowhere.org>
Date: Fri, 07 Aug 2009 08:50:12 +0200
From: Andi Kleen <andi@...stfloor.org>
To: Sergey Senozhatsky <sergey.senozhatsky@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Make shr to divide by power of 2
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.
-Andi
--
ak@...ux.intel.com -- Speaking for myself only.
--
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