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.