3 ms·
Maybe he means that things like reducing (a * 5) to (a << 2 + a) are now obsolete.
by ssp 16y ago
Maybe he means that things like reducing (a * 5) to (a << 2 + a) are now obsolete.
- Robin_Message 16y agoThat was something like lea eax,[ebx*4 + ebx] anyway :)
- ComSubVie 16y agoWhere the latency of the (integer) multiplication is 3 clock cycles, of (integer) addition is 1 clock cycle and of (integer) shift it is also 1 clock cycle (according to the Intel® 64 and IA-32 Architectures Optimization Reference Manual [1]). Therefore the shifting is still faster than multiplication, however an optimization for 1 or 2 clock cycles doesn't make sense anymore... [1] http://www.intel.com/products/processor/manuals/ http://www.intel.com/products/processor/manuals/