shift bit & performance?

Dean Johnson dtj at uberh4x0r.org
Tue Oct 21 15:33:33 EDT 2003


On Tue, 2003-10-21 at 14:32, Eduardo Cesar Cabrera Flores wrote:
> Hi, 
> 
> sometime ago, somebody sent an info about performance working with "<<" & 
> ">>" doing shift bits instead of using "*" or "/"
>  Could anybody help me about it?
> 

There is certainly performance to be had from using a logical shift instead of a 
multiply or divide, but its of declining value. I am fairly sure that with modern
compilers you do a integer divide by a constant power of 2, that it will generate
a logical shift. That aint rocket science.

	-Dean

_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf



More information about the Beowulf mailing list