lkml.org 
[lkml]   [2009]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Make shr to divide by power of 2
From
Date
Sergey Senozhatsky <sergey.senozhatsky@gmail.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@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2009-08-07 08:53    [W:0.055 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site