On Fri, May 16, 2008 at 11:37:37AM +0100, Chris Webb wrote:
...
>   -       vlong v;
>   -       int i;
>   -
>   -       v = 0;
>   -       for (i = 0; i < 6; i++)
>   -               v |= (vlong)(*p++) << i * 8;
>   -       return v;
>   +       return ((vlong) p[0]) + ((vlong) p[1]) << 8
>   +                             + ((vlong) p[2]) << 16
>   +                             + ((vlong) p[3]) << 24
>   +                             + ((vlong) p[4]) << 32
>   +                             + ((vlong) p[5]) << 40;

Back in the late nineties you could get gcc to do this sort of thing
for you by using -O3 instead of the -O2 that the vblade makefile
uses.  The -O3 results are not always better but are worth checking
out for folks for whom every CPU instruction counts.

-- 
  Ed L Cashin <[EMAIL PROTECTED]>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Aoetools-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aoetools-discuss

Reply via email to